From 56db5de1319e0785c392bbdbc458345819ada457 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Wed, 8 Mar 2023 15:27:08 -0500 Subject: [PATCH 01/20] add reddit --- dbt_project.yml | 2 +- integration_tests/dbt_project.yml | 54 +++++++++- .../seeds/reddit_ads_account_data.csv | 2 + .../seeds/reddit_ads_account_report_data.csv | 57 ++++++++++ .../seeds/reddit_ads_ad_data.csv | 6 ++ .../seeds/reddit_ads_ad_group_data.csv | 20 ++++ .../seeds/reddit_ads_ad_group_report_data.csv | 101 ++++++++++++++++++ .../seeds/reddit_ads_ad_report_data.csv | 101 ++++++++++++++++++ .../seeds/reddit_ads_campaign_data.csv | 11 ++ .../seeds/reddit_ads_campaign_report_data.csv | 80 ++++++++++++++ .../seeds/reddit_ads_post_report_data.csv | 101 ++++++++++++++++++ .../int_ad_reporting__account_report.sql | 2 +- packages.yml | 4 + 13 files changed, 537 insertions(+), 4 deletions(-) create mode 100644 integration_tests/seeds/reddit_ads_account_data.csv create mode 100644 integration_tests/seeds/reddit_ads_account_report_data.csv create mode 100644 integration_tests/seeds/reddit_ads_ad_data.csv create mode 100644 integration_tests/seeds/reddit_ads_ad_group_data.csv create mode 100644 integration_tests/seeds/reddit_ads_ad_group_report_data.csv create mode 100644 integration_tests/seeds/reddit_ads_ad_report_data.csv create mode 100644 integration_tests/seeds/reddit_ads_campaign_data.csv create mode 100644 integration_tests/seeds/reddit_ads_campaign_report_data.csv create mode 100644 integration_tests/seeds/reddit_ads_post_report_data.csv diff --git a/dbt_project.yml b/dbt_project.yml index b6e2af1..6083e1a 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'ad_reporting' -version: '1.2.1' +version: '1.3.0' config-version: 2 diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 2f58eb4..ceab4cf 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'ad_reporting_integration_tests' -version: '1.2.1' +version: '1.3.0' profile: 'integration_tests' config-version: 2 @@ -137,6 +137,18 @@ vars: amazon_ads_targeting_keyword_report_identifier: "amazon_ads_targeting_keyword_report_data" amazon_ads_search_term_ad_keyword_report_identifier: "amazon_ads_search_term_ad_keyword_report_data" + reddit_ads_source: + reddit_ads_schema: reddit_ads_integration_tests_1 + reddit_ads_account_identifier: "reddit_ads_account_data" + reddit_ads_account_report_identifier: "reddit_ads_account_report_data" + reddit_ads_ad_identifier: "reddit_ads_ad_data" + reddit_ads_ad_report_identifier: "reddit_ads_ad_report_data" + reddit_ads_ad_group_identifier: "reddit_ads_ad_group_data" + reddit_ads_ad_group_report_identifier: "reddit_ads_ad_group_report_data" + reddit_ads_campaign_identifier: "reddit_ads_campaign_data" + reddit_ads_campaign_report_identifier: "reddit_ads_campaign_report_data" + + seeds: ad_reporting_integration_tests: +quote_columns: "{{ true if target.type in ('redshift','postgres') else false }}" @@ -529,4 +541,42 @@ seeds: _fivetran_synced: "timestamp" campaign_budget_amount: "float" click_through_rate: "float" - keyword_bid: "float" \ No newline at end of file + keyword_bid: "float" + + + ### Reddit Ads Seeds + + reddit_ads_account_data: + +column_types: + id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + reddit_ads_account_report_data: + +column_types: + account_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + reddit_ads_ad_data: + +column_types: + id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + campaign_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + ad_group_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + reddit_ads_ad_report_data: + +column_types: + ad_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + ad_group_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + reddit_ads_ad_group_data: + +column_types: + id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + campaign_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + ad_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + ad_group_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + reddit_ads_ad_group_report_data: + +column_types: + id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + campaign_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + ad_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + reddit_ads_campaign_data: + +column_types: + id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + account_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + reddit_ads_campaign_report_data: + +column_types: + account_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + campaign_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_account_data.csv b/integration_tests/seeds/reddit_ads_account_data.csv new file mode 100644 index 0000000..ec8a174 --- /dev/null +++ b/integration_tests/seeds/reddit_ads_account_data.csv @@ -0,0 +1,2 @@ +id,_fivetran_synced,attribution_type,click_attribution_window,created_at,currency,status,time_zone_id,view_attribution_window +1234,2023-01-09 22:21:17,ALL_CONVERSION,MONTH,2022-01-04 22:22:31,USD,,GMT,DAY \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_account_report_data.csv b/integration_tests/seeds/reddit_ads_account_report_data.csv new file mode 100644 index 0000000..b796cf8 --- /dev/null +++ b/integration_tests/seeds/reddit_ads_account_report_data.csv @@ -0,0 +1,57 @@ +account_id,date,_fivetran_synced,app_install_metrics_add_payment_info,app_install_metrics_add_to_cart,app_install_metrics_app_launch,app_install_metrics_completed_tutorial,app_install_metrics_install,app_install_metrics_level_achieved,app_install_metrics_purchase,app_install_metrics_search,app_install_metrics_sign_up,app_install_metrics_spend,app_install_metrics_spend_credits,app_install_metrics_view_content,clicks,comment_downvotes,comment_upvotes,comments_page_views,conversion_roas,cpc,ctr,ecpm,gallery_item_caption,gallery_item_id,impressions,legacy_click_conversions_attribution_window_day,legacy_click_conversions_attribution_window_month,legacy_click_conversions_attribution_window_week,legacy_view_conversions_attribution_window_day,legacy_view_conversions_attribution_window_month,legacy_view_conversions_attribution_window_week,priority,region,spend,video_fully_viewable_impressions,video_plays_expanded,video_plays_with_sound,video_started,video_viewable_impressions,video_watched_100_percent,video_watched_10_seconds,video_watched_25_percent,video_watched_3_seconds,video_watched_50_percent,video_watched_5_seconds,video_watched_75_percent,video_watched_95_percent,viewable_impressions,viewer_comments +1234,2022-11-25,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,307,,,,0,1360387.088,0.001970512911,2680660.321,,,155797,,,,,,,,,417638836,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-07,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,216,,,,0,1706610.731,0.002207234825,3766890.64,,,97860,,,,,,,,,368627918,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-14,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,96,,,,0,1634355.208,0.003319961267,5425995.988,,,28916,,,,,,,,,156898100,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-17,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,316,,,,0,1380874.101,0.002338904268,3229732.329,,,135106,,,,,,,,,436356216,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-11,2023-01-09 22:22:03,0,0,0,0,0,0,0,0,0,0,0,0,103,,,,0,1587584.99,0.002828194075,4489998.462,,,36419,,,,,,,,,163521254,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-15,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1940545.52,0.004615952733,8957466.396,,,5416,,,,,,,,,48513638,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-30,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,137,,,,0,1412544.847,0.003233267252,4567134.995,,,42372,,,,,,,,,193518644,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-19,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,105,,,,0,1372820.438,0.00293648796,4031270.688,,,35757,,,,,,,,,144146146,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-23,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,302,,,,0,1387865.238,0.002622688864,3639938.706,,,115149,,,,,,,,,419135302,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-03,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1786445.4,0.003219114386,5750772.087,,,13979,,,,,,,,,80390043,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-10,2023-01-09 22:22:03,0,0,0,0,0,0,0,0,0,0,0,0,131,,,,0,1398539,0.003365532833,4706828.923,,,38924,,,,,,,,,183208609,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-12,2023-01-09 22:22:03,0,0,0,0,0,0,0,0,0,0,0,0,101,,,,0,1608776.931,0.003452637336,5554523.297,,,29253,,,,,,,,,162486470,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-22,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,39,,,,0,1761694.385,0.004488950276,7908158.494,,,8688,,,,,,,,,68706081,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-21,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,110,,,,0,1524158.909,0.003287802254,5011133.096,,,33457,,,,,,,,,167657480,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-14,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,9,,,,0,1305312.111,0.003911342894,5105523.251,,,2301,,,,,,,,,11747809,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-06,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,213,,,,0,1635268.183,0.002597085899,4246931.939,,,82015,,,,,,,,,348312123,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-02,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,204,,,,0,1698539.765,0.002225373623,3779885.59,,,91670,,,,,,,,,346502112,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-01,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1286066.25,0.001792688392,2305516.038,,,15619,,,,,,,,,36009855,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-09,2023-01-09 22:22:03,0,0,0,0,0,0,0,0,0,0,0,0,132,,,,0,1513531.902,0.002561564883,3877010.169,,,51531,,,,,,,,,199786211,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-15,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,329,,,,0,1276506.988,0.002292826728,2926809.34,,,143491,,,,,,,,,419970799,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-28,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,40,,,,0,1468809.25,0.002381803025,3498414.315,,,16794,,,,,,,,,58752370,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-18,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,308,,,,0,1383411.896,0.002531250257,3501761.717,,,121679,,,,,,,,,426090864,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-18,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,118,,,,0,1373511.127,0.003281332555,4506946.776,,,35961,,,,,,,,,162074313,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-24,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,121,,,,0,1505473.479,0.002611755056,3931927.972,,,46329,,,,,,,,,182162291,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-27,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,114,,,,0,1551607.491,0.00401747956,6233551.381,,,28376,,,,,,,,,176883254,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-20,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,112,,,,0,1433348.759,0.003240740741,4645111.719,,,34560,,,,,,,,,160535061,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-22,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,315,,,,0,1346674.187,0.002210774543,2977193.011,,,142484,,,,,,,,,424202369,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-25,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,145,,,,0,1268328.503,0.00293183978,3718535.961,,,49457,,,,,,,,,183907633,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-17,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,126,,,,0,1425121.484,0.002644669731,3768975.652,,,47643,,,,,,,,,179565307,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-04,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,258,,,,0,1437084.446,0.002597507199,3732837.193,,,99326,,,,,,,,,370767787,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-05,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,232,,,,0,1517516.047,0.002401904959,3644929.32,,,96590,,,,,,,,,352063723,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-26,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,289,,,,0,1427009.751,0.002275895199,3247724.64,,,126983,,,,,,,,,412405818,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-19,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,117,,,,0,1471840.342,0.003910689217,5755910.154,,,29918,,,,,,,,,172205320,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-16,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,296,,,,0,1441871.348,0.002325764124,3353452.652,,,127270,,,,,,,,,426793919,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-29,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,35,,,,0,1495383.486,0.005213764338,7796577.089,,,6713,,,,,,,,,52338422,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-26,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,122,,,,0,1594319.197,0.003371190141,5374753.157,,,36189,,,,,,,,,194506942,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-21,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,312,,,,0,1376055.673,0.002397989378,3299766.888,,,130109,,,,,,,,,429329370,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-13,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,122,,,,0,1509428.672,0.003150419626,4755333.712,,,38725,,,,,,,,,184150298,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-27,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,319,,,,0,1360644.708,0.002546641866,3465074.779,,,125263,,,,,,,,,434045662,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-16,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,129,,,,0,1352431.589,0.003240229077,4382188.159,,,39812,,,,,,,,,174463675,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-23,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,106,,,,0,1616470.557,0.002863936021,4629468.254,,,37012,,,,,,,,,171345879,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-28,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,125,,,,0,1457684.552,0.004246356626,6189848.456,,,29437,,,,,,,,,182210569,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-24,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,287,,,,0,1457504.007,0.002346285593,3419720.653,,,122321,,,,,,,,,418303650,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-20,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,332,,,,0,1268982.235,0.002218539506,2815287.221,,,149648,,,,,,,,,421302102,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-31,2023-01-09 22:22:01,0,0,0,0,0,0,0,0,0,0,0,0,116,,,,0,1448120.983,0.00258426716,3742331.499,,,44887,,,,,,,,,167982034,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-17,2023-01-09 22:09:12,0,0,0,0,0,0,0,0,0,0,0,0,38,,,,0,2143373.342,0.002449242668,5249641.444,,,15515,,,,,,,,,81448187,18,0,0,289,62,8,12,47,46,21,,15,8,, +1234,2022-12-14,2023-01-09 22:09:12,0,0,0,0,0,0,0,0,0,0,0,0,209,,,,0,1296568.675,0.002398026505,3109206.047,,,87155,,,,,,,,,270982853,22,0,0,473,80,13,18,68,66,38,,21,15,, +1234,2022-12-13,2023-01-09 22:09:12,0,0,0,0,0,0,0,0,0,0,0,0,192,,,,0,1221596.943,0.002158273381,2636540.164,,,88960,,,,,,,,,234546613,26,0,0,511,93,11,14,76,74,36,,16,12,, +1234,2022-12-19,2023-01-09 22:09:12,0,0,0,0,0,0,0,0,0,0,0,0,134,,,,0,1994015.351,0.002905086069,5792786.216,,,46126,,,,,,,,,267198057,46,0,0,515,136,24,34,117,116,59,,39,25,, +1234,2022-12-20,2023-01-09 22:09:12,0,0,0,0,0,0,0,0,0,0,0,0,131,,,,0,2032703.313,0.002420010345,4919163.046,,,54132,,,,,,,,,266284134,46,0,0,672,148,18,24,126,121,58,,32,20,, +1234,2022-12-16,2023-01-09 22:09:12,0,0,0,0,0,0,0,0,0,0,0,0,124,,,,0,2180505.621,0.00230903877,5034872.016,,,53702,,,,,,,,,270382697,50,0,0,822,172,32,38,143,137,64,,42,34,, +1234,2022-12-15,2023-01-09 22:09:12,0,0,0,0,0,0,0,0,0,0,0,0,137,,,,0,1950930.08,0.002297925158,4483091.313,,,59619,,,,,,,,,267277421,76,1,0,1200,252,46,57,217,212,107,,69,51,, +1234,2022-12-12,2023-01-09 22:09:12,0,0,0,0,0,0,0,0,0,0,0,0,132,,,,0,1398132.818,0.002551612155,3567492.693,,,51732,,,,,,,,,184553532,56,1,1,866,181,29,39,154,152,84,,46,33,, +1234,2022-12-09,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,130,,,,0,1345586.446,0.002042002419,2747690.778,,,63663,,,,,,,,,174926238,251,0,1,4772,928,153,195,775,758,360,,219,164,, +1234,2022-12-08,2023-01-09 22:21:58,0,0,0,0,0,0,0,0,0,0,0,0,9,,,,0,1228903.222,0.001740139211,2138462.684,,,5172,,,,,,,,,11060129,38,0,2,733,133,14,26,111,108,48,,30,17,, +1234,2022-12-10,2023-01-09 22:21:59,0,0,0,0,0,0,0,0,0,0,0,0,35,,,,0,1445580.8,0.002073336888,2997175.997,,,16881,,,,,,,,,50595328,85,0,2,1677,296,47,59,245,237,110,,69,50,, \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_ad_data.csv b/integration_tests/seeds/reddit_ads_ad_data.csv new file mode 100644 index 0000000..47f846e --- /dev/null +++ b/integration_tests/seeds/reddit_ads_ad_data.csv @@ -0,0 +1,6 @@ +id,_fivetran_synced,account_id,ad_group_id,campaign_id,click_url,configured_status,effective_status,is_processing,name,post_id,post_url,preview_expiry,preview_url,rejection_reason,search_term +1361113042263562412,2023-01-09 22:21:19.329000 UTC,t2_9wbo179l,1361113039508633191,1361113034247431512,https://www.google.com/blog/blog?utm_source=reddit&utm_medium=paid_social&utm_term=subreddit&utm_campaign=campaign_name&utm_content=video,PAUSED,CAMPAIGN_PAUSED,FALSE,colombia,t3_sbso8a,,,,, +1376344571741100240,2023-01-09 22:21:19.329000 UTC,t2_9wbo179l,1376344567485216816,1376344562480400752,https://www.google.com/?utm_source=reddit&utm_medium=paid_social&utm_term=subreddit&utm_campaign=hello&utm_content=video_a,PAUSED,CAMPAIGN_PAUSED,FALSE,peru,t3_svplh7,,,,, +1381383687866921562,2023-01-09 22:21:19.329000 UTC,t2_9wbo179l,1381383685043855804,1376344562480400752,https://www.npr.com/?utm_source=reddit&utm_medium=paid_social&utm_term=subreddit&utm_campaign=hi&utm_content=video_b,PAUSED,CAMPAIGN_PAUSED,FALSE,argentina,t3_svp51i,,,,, +1420711548737881304,2023-01-09 22:21:19.329000 UTC,t2_9wbo179l,1420711542646192662,1420711536670279757,https://www.fivetran.com/hello?utm_source=reddit&utm_medium=paid_social&utm_term=tulum&utm_campaign=mexico&utm_content=reddit-image,PAUSED,CAMPAIGN_PAUSED,FALSE,brazil,t3_u34792,,,,, +1425765171007552992,2023-01-09 22:21:19.329000 UTC,t2_9wbo179l,1425765168505486102,1420711536670279757,https://www.fivetran.com/case-studies/case_study_1?utm_source=reddit&utm_medium=paid_social&utm_term=subreddit&utm_campaign=q2_campaign&utm_content=video,PAUSED,CAMPAIGN_PAUSED,FALSE,uruguay,t3_u8ab22,,,,, \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_ad_group_data.csv b/integration_tests/seeds/reddit_ads_ad_group_data.csv new file mode 100644 index 0000000..33adbba --- /dev/null +++ b/integration_tests/seeds/reddit_ads_ad_group_data.csv @@ -0,0 +1,20 @@ +account_id,id,_fivetran_synced,bid_strategy,bid_value,campaign_id,configured_status,effective_status,end_time,expand_targeting,goal_type,goal_value,is_processing,name,optimization_strategy_type,start_time +1234,1361113039508633191,2023-01-09 22:21:18,MANUAL_BIDDING,1500000,1361113034247431512,PAUSED,CAMPAIGN_PAUSED,2022-04-30 20:00:00,TRUE,DAILY_SPEND,84000000,FALSE,a,,2022-03-01 07:00:00 +1234,1381383685043855804,2023-01-09 22:21:18,MANUAL_BIDDING,1500000,1376344562480400752,PAUSED,CAMPAIGN_PAUSED,2022-04-30 20:00:00,TRUE,DAILY_SPEND,84000000,FALSE,b,,2022-03-01 07:00:00 +1234,1376344567485216816,2023-01-09 22:21:18,MAXIMIZE_VOLUME,2000000,1376344562480400752,PAUSED,CAMPAIGN_PAUSED,2022-04-30 20:00:00,TRUE,DAILY_SPEND,150000000,FALSE,c,,2022-02-12 08:00:00 +1234,1420711542646192662,2023-01-09 22:21:18,MAXIMIZE_VOLUME,1200000,1420711536670279757,PAUSED,CAMPAIGN_PAUSED,,TRUE,DAILY_SPEND,160000000,FALSE,d,,2022-04-27 03:30:00 +1234,1425765168505486102,2023-01-09 22:21:18,MAXIMIZE_VOLUME,1200000,1420711536670279757,PAUSED,CAMPAIGN_PAUSED,2022-04-30 00:00:00,TRUE,DAILY_SPEND,160000000,FALSE,e,,2022-04-21 00:00:00 +1234,1430216473887014079,2023-01-09 22:21:18,MAXIMIZE_VOLUME,1200000,1430216470366467725,PAUSED,CAMPAIGN_PAUSED,2022-05-10 02:30:00,TRUE,DAILY_SPEND,200000000,FALSE,aa,,2022-05-04 02:00:00 +1234,1456360341233292739,2023-01-09 22:21:18,MANUAL_BIDDING,1200000,1456360336221951846,PAUSED,CAMPAIGN_PAUSED,,TRUE,DAILY_SPEND,160000000,FALSE,bb,,2022-04-27 03:30:00 +1234,1456360341207923621,2023-01-09 22:21:18,MANUAL_BIDDING,1200000,1456360336221951846,PAUSED,CAMPAIGN_PAUSED,2022-04-30 00:00:00,TRUE,DAILY_SPEND,160000000,FALSE,cc,,2022-04-21 00:00:00 +1234,1480824085905817524,2023-01-09 22:21:18,MANUAL_BIDDING,2300000,1467799695972064685,PAUSED,CAMPAIGN_PAUSED,2022-07-31 23:30:00,TRUE,DAILY_SPEND,180000000,FALSE,dd,,2022-07-06 23:00:00 +1234,1467799701393171851,2023-01-09 22:21:18,MANUAL_BIDDING,2150000,1467799695972064685,PAUSED,CAMPAIGN_PAUSED,,TRUE,DAILY_SPEND,180000000,FALSE,ee,,2022-06-21 22:30:00 +1234,1535743345604192832,2023-01-09 22:21:18,MANUAL_BIDDING,2800000,1510393823694638543,ACTIVE,CAMPAIGN_PAUSED,2022-10-31 18:00:00,TRUE,DAILY_SPEND,48000000,FALSE,ff,,2022-10-05 17:30:00 +1234,1522247226241194321,2023-01-09 22:21:18,MANUAL_BIDDING,2800000,1510393823694638543,ACTIVE,CAMPAIGN_PAUSED,2022-11-30 18:00:00,TRUE,DAILY_SPEND,48000000,FALSE,w,,2022-11-02 17:30:00 +1234,1510393829097718070,2023-01-09 22:21:18,MANUAL_BIDDING,2800000,1510393823694638543,ACTIVE,CAMPAIGN_PAUSED,2022-11-30 18:00:00,TRUE,DAILY_SPEND,48000000,FALSE,x,,2022-11-02 17:30:00 +1234,1542438363648999385,2023-01-09 22:21:18,MANUAL_BIDDING,2800000,1542438351052756282,ACTIVE,CAMPAIGN_PAUSED,2022-10-31 23:30:00,TRUE,DAILY_SPEND,48000000,FALSE,y,,2022-10-01 23:00:00 +1234,1588160255185786391,2023-01-09 22:21:18,MANUAL_BIDDING,2530000,1576385495765735715,PAUSED,CAMPAIGN_PAUSED,2022-12-20 23:30:00,TRUE,DAILY_SPEND,111000000,FALSE,z,,2022-12-01 23:00:00 +1234,1576385497926868838,2023-01-09 22:21:18,MANUAL_BIDDING,2530000,1576385495765735715,PAUSED,CAMPAIGN_PAUSED,2022-12-20 23:30:00,TRUE,DAILY_SPEND,111000000,FALSE,q,,2022-12-01 23:00:00 +1234,1576392503155052368,2023-01-09 22:21:18,MANUAL_BIDDING,2530000,1576385495765735715,PAUSED,CAMPAIGN_PAUSED,2022-12-20 23:30:00,TRUE,DAILY_SPEND,111000000,FALSE,r,,2022-12-01 23:00:00 +1234,1593219016789025189,2023-01-09 22:21:18,MAXIMIZE_VOLUME,2000000,1593209133449106285,PAUSED,CAMPAIGN_PAUSED,2022-12-31 23:30:00,TRUE,DAILY_SPEND,92000000,FALSE,s,,2022-12-13 09:00:00 +1234,1593209137262956890,2023-01-09 22:21:18,MAXIMIZE_VOLUME,3730000,1593209133449106285,PAUSED,CAMPAIGN_PAUSED,2022-12-31 23:30:00,TRUE,DAILY_SPEND,175000000,FALSE,t,,2022-12-08 23:00:00 \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_ad_group_report_data.csv b/integration_tests/seeds/reddit_ads_ad_group_report_data.csv new file mode 100644 index 0000000..034b6ee --- /dev/null +++ b/integration_tests/seeds/reddit_ads_ad_group_report_data.csv @@ -0,0 +1,101 @@ +account_id,ad_group_id,date,_fivetran_synced,app_install_metrics_add_payment_info,app_install_metrics_add_to_cart,app_install_metrics_app_launch,app_install_metrics_completed_tutorial,app_install_metrics_install,app_install_metrics_level_achieved,app_install_metrics_purchase,app_install_metrics_search,app_install_metrics_sign_up,app_install_metrics_spend,app_install_metrics_spend_credits,app_install_metrics_view_content,clicks,comment_downvotes,comment_upvotes,comments_page_views,conversion_roas,cpc,ctr,ecpm,gallery_item_caption,gallery_item_id,impressions,legacy_click_conversions_attribution_window_day,legacy_click_conversions_attribution_window_month,legacy_click_conversions_attribution_window_week,legacy_view_conversions_attribution_window_day,legacy_view_conversions_attribution_window_month,legacy_view_conversions_attribution_window_week,priority,region,spend,video_fully_viewable_impressions,video_plays_expanded,video_plays_with_sound,video_started,video_viewable_impressions,video_watched_100_percent,video_watched_10_seconds,video_watched_25_percent,video_watched_3_seconds,video_watched_50_percent,video_watched_5_seconds,video_watched_75_percent,video_watched_95_percent,viewable_impressions,viewer_comments +1234,1510393829097718070,2022-10-09,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,30,,,,0,2005160.033,0.002794076558,5602570.644,,,10737,,,,,,,,,60154801,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-09,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1705044.25,0.001713306682,2921263.706,,,14008,,,,,,,,,40921062,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-09,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1048095.333,0.004139072848,4338142.936,,,10872,,,,,,,,,47164290,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-09,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,33,,,,0,1562001.758,0.002073645846,3239038.457,,,15914,,,,,,,,,51546058,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-10,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1534314.464,0.002293577982,3519069.872,,,12208,,,,,,,,,42960805,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-10,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2094054.273,0.002906976744,6087367.072,,,7568,,,,,,,,,46069194,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-10,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1728446.077,0.002474540782,4277110.307,,,10507,,,,,,,,,44939598,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-10,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,55,,,,0,895254.7636,0.00636500405,5698300.197,,,8641,,,,,,,,,49239012,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-11,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2070946.727,0.002353948213,4874901.348,,,9346,,,,,,,,,45560828,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-11,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1935094.952,0.001796868315,3477110.807,,,11687,,,,,,,,,40636994,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-11,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,18,,,,0,2131581.444,0.002286585366,4874042.937,,,7872,,,,,,,,,38368466,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-11,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,42,,,,0,927499.1905,0.005589566143,5184318.073,,,7514,,,,,,,,,38954966,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-12,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2123689.6,0.001857010214,3943713.278,,,10770,,,,,,,,,42473792,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-12,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2007943.421,0.003240661777,6507065.495,,,5863,,,,,,,,,38150925,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-12,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1852267.783,0.002399833055,4445133.452,,,9584,,,,,,,,,42602159,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-12,2023-01-09 22:21:49,0,0,0,0,0,0,0,0,0,0,0,0,39,,,,0,1006656.256,0.0128458498,12931355.07,,,3036,,,,,,,,,39259594,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-13,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1955247.286,0.001614391144,3156533.902,,,13008,,,,,,,,,41060193,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-13,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1971535.296,0.002324380165,4582597.538,,,11616,,,,,,,,,53231453,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-13,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1762241.714,0.003142889213,5538530.475,,,8909,,,,,,,,,49342768,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-13,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,46,,,,0,880780.087,0.008859784284,7803521.572,,,5192,,,,,,,,,40515884,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-14,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,35,,,,0,1046448.314,0.009828699803,10285226.34,,,3561,,,,,,,,,36625691,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-14,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2080103.2,0.002103049422,4374559.832,,,9510,,,,,,,,,41602064,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-14,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1878849.381,0.002068354181,3886125.973,,,10153,,,,,,,,,39455837,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-14,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960725.4,0.003513703443,6889407.59,,,5692,,,,,,,,,39214508,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-15,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2152102.8,0.003140703518,6759116.834,,,1592,,,,,,,,,10760514,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-15,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2066008.143,0.006487488415,13403203.89,,,1079,,,,,,,,,14462057,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-15,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2125368.143,0.002896152255,6155389.739,,,2417,,,,,,,,,14877577,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-15,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,1402248.333,0.01829268293,25650884.15,,,328,,,,,,,,,8413490,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-16,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,41,,,,0,927280.6098,0.005117324014,4745195.332,,,8012,,,,,,,,,38018505,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-16,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1784607.897,0.002736365352,4883339.215,,,10598,,,,,,,,,51753629,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-16,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1312920.938,0.0023896647,3137440.818,,,13391,,,,,,,,,42013470,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-16,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1580669.296,0.003456663679,5463842.146,,,7811,,,,,,,,,42678071,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-17,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1903813.091,0.002320185615,4417199.747,,,9482,,,,,,,,,41883888,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-17,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1804320.5,0.001447851492,2612388.128,,,19339,,,,,,,,,50520974,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-17,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1624521.464,0.002330614283,3786132.928,,,12014,,,,,,,,,45486601,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-17,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,48,,,,0,868205.0833,0.00705052879,6121304.935,,,6808,,,,,,,,,41673844,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-18,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2003290.227,0.002553389044,5115179.318,,,8616,,,,,,,,,44072385,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-18,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,49,,,,0,848027.0204,0.007834985609,6644279.501,,,6254,,,,,,,,,41553324,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-18,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1614260.583,0.002644045389,4268178.253,,,9077,,,,,,,,,38742254,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-18,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1639406.522,0.001914433161,3138534.21,,,12014,,,,,,,,,37706350,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-19,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1790684.909,0.003666055657,6564750.542,,,6001,,,,,,,,,39395068,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-19,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2257865.579,0.001824467064,4119401.383,,,10414,,,,,,,,,42899446,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-19,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1969758.95,0.002731121125,5379650.28,,,7323,,,,,,,,,39395179,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-19,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,56,,,,0,902064.7679,0.009061488673,8174049.676,,,6180,,,,,,,,,50515627,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-20,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960190.6,0.002065262288,4048307.724,,,9684,,,,,,,,,39203812,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-20,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,42,,,,0,920716.119,0.00845410628,7783831.924,,,4968,,,,,,,,,38670077,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-20,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1562767.615,0.00269179004,4206642.303,,,9659,,,,,,,,,40631958,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-20,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1751217.25,0.002341691872,4100811.201,,,10249,,,,,,,,,42029214,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-21,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,46,,,,0,892044.1087,0.007076923077,6312927.538,,,6500,,,,,,,,,41034029,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-21,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1883932.52,0.002648024574,4988699.608,,,9441,,,,,,,,,47098313,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-21,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1952633.6,0.002200462097,4296696.226,,,9089,,,,,,,,,39052672,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-21,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2130129.789,0.002254657648,4802713.421,,,8427,,,,,,,,,40472466,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-22,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,15,,,,0,1015290.533,0.01242750621,12617529.41,,,1207,,,,,,,,,15229358,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-22,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,2119840.667,0.003428571429,7268025.143,,,1750,,,,,,,,,12719044,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-22,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,10,,,,0,2459581.8,0.003084515731,7586618.754,,,3242,,,,,,,,,24595818,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-22,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,8,,,,0,2020232.625,0.003214142226,6493314.986,,,2489,,,,,,,,,16161861,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-23,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1776401.727,0.002914679385,5177641.494,,,7548,,,,,,,,,39080838,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-23,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,36,,,,0,1131407.222,0.006923076923,7832819.231,,,5200,,,,,,,,,40730660,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-23,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1702841.4,0.001720814978,2930274.986,,,14528,,,,,,,,,42571035,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-23,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,2128841.13,0.002362366475,5029102.917,,,9736,,,,,,,,,48963346,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-24,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1050531.8,0.007235890014,7601532.562,,,6219,,,,,,,,,47273931,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-24,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1647657.125,0.002063273728,3399567.658,,,11632,,,,,,,,,39543771,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-24,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1864886.577,0.001815769258,3386203.715,,,14319,,,,,,,,,48487051,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-24,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1802213,0.001836287873,3309381.877,,,14159,,,,,,,,,46857538,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-25,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,62,,,,0,744124.9194,0.007203439061,5360258.511,,,8607,,,,,,,,,46135745,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-25,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1870083.815,0.00284120804,5313297.169,,,9503,,,,,,,,,50492263,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-25,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1374477.448,0.001649132784,2266695.82,,,17585,,,,,,,,,39859846,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-25,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1756288.111,0.001961924139,3445704.04,,,13762,,,,,,,,,47419779,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-26,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,47,,,,0,957437.7234,0.009674763277,9262983.326,,,4858,,,,,,,,,44999573,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-26,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1901739.154,0.002640398091,5021348.431,,,9847,,,,,,,,,49445218,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-26,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1853571.56,0.003061849357,5675356.889,,,8165,,,,,,,,,46339289,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-26,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,2238452.583,0.001801937082,4033550.717,,,13319,,,,,,,,,53722862,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-27,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,936291.3556,0.007831534981,7332598.503,,,5746,,,,,,,,,42133111,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-27,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1764421.778,0.003351123247,5912794.837,,,8057,,,,,,,,,47639388,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-27,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2019917.667,0.004863362668,9823592.172,,,4318,,,,,,,,,42418271,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-27,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2128213.524,0.00204778157,4358116.431,,,10255,,,,,,,,,44692484,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-28,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1844539.261,0.002660805183,4907959.625,,,8644,,,,,,,,,42424403,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-28,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,52,,,,0,861070.5192,0.009809469911,8446645.35,,,5301,,,,,,,,,44775667,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-28,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1741785,0.002963841138,5162374.037,,,8435,,,,,,,,,43544625,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-28,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,2058634.96,0.003542581834,7292882.811,,,7057,,,,,,,,,51465874,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-29,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2559320.6,0.002748763057,7034965.915,,,1819,,,,,,,,,12796603,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-29,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,2518876,0.004291845494,10810626.61,,,1398,,,,,,,,,15113256,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-29,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,17,,,,0,775914,0.007910656119,6137988.832,,,2149,,,,,,,,,13190538,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-29,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,1605432.143,0.005196733482,8343002.97,,,1347,,,,,,,,,11238025,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-30,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,34,,,,0,1489352.441,0.003205128205,4773565.517,,,10608,,,,,,,,,50637983,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-30,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1725187.75,0.002251301534,3883917.827,,,14214,,,,,,,,,55206008,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-30,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1723513.148,0.002499537123,4307985.095,,,10802,,,,,,,,,46534855,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-30,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,44,,,,0,934995.4091,0.006520450504,6096591.286,,,6748,,,,,,,,,41139798,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393829097718070,2022-10-31,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1715421.375,0.001921998879,3297037.959,,,12487,,,,,,,,,41170113,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743345604192832,2022-10-31,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1751287.321,0.002105579786,3687475.184,,,13298,,,,,,,,,49036045,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438363648999385,2022-10-31,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1816478,0.00180533752,3279355.887,,,12740,,,,,,,,,41778994,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247226241194321,2022-10-31,2023-01-09 22:21:47,0,0,0,0,0,0,0,0,0,0,0,0,41,,,,0,877972.7317,0.006444514304,5658107.828,,,6362,,,,,,,,,35996882,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576392503155052368,2022-11-14,2023-01-09 22:21:44,0,0,0,0,0,0,0,0,0,0,0,0,9,,,,0,1305312.111,0.003911342894,5105523.251,,,2301,,,,,,,,,11747809,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576392503155052368,2022-11-15,2023-01-09 22:21:44,0,0,0,0,0,0,0,0,0,0,0,0,161,,,,0,1307082.081,0.002299671476,3005859.377,,,70010,,,,,,,,,210440215,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385497926868838,2022-11-15,2023-01-09 22:21:44,0,0,0,0,0,0,0,0,0,0,0,0,168,,,,0,1247205.857,0.002286305303,2851493.366,,,73481,,,,,,,,,209530584,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385497926868838,2022-11-16,2023-01-09 22:21:44,0,0,0,0,0,0,0,0,0,0,0,0,151,,,,0,1389892.139,0.002326405472,3233452.678,,,64907,,,,,,,,,209873713,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576392503155052368,2022-11-16,2023-01-09 22:21:44,0,0,0,0,0,0,0,0,0,0,0,0,145,,,,0,1496001.421,0.002325096612,3478347.834,,,62363,,,,,,,,,216920206,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576392503155052368,2022-11-17,2023-01-09 22:21:44,0,0,0,0,0,0,0,0,0,0,0,0,154,,,,0,1432717.435,0.002424127944,3473090.37,,,63528,,,,,,,,,220638485,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385497926868838,2022-11-17,2023-01-09 22:21:44,0,0,0,0,0,0,0,0,0,0,0,0,162,,,,0,1331590.932,0.002263265249,3013743.483,,,71578,,,,,,,,,215717731,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576392503155052368,2022-11-18,2023-01-09 22:21:44,0,0,0,0,0,0,0,0,0,0,0,0,155,,,,0,1380310,0.002488201111,3434488.875,,,62294,,,,,,,,,213948050,0,0,0,0,0,0,0,0,0,0,,0,0,, \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_ad_report_data.csv b/integration_tests/seeds/reddit_ads_ad_report_data.csv new file mode 100644 index 0000000..ab7d157 --- /dev/null +++ b/integration_tests/seeds/reddit_ads_ad_report_data.csv @@ -0,0 +1,101 @@ +account_id,ad_id,date,_fivetran_synced,app_install_metrics_add_payment_info,app_install_metrics_add_to_cart,app_install_metrics_app_launch,app_install_metrics_completed_tutorial,app_install_metrics_install,app_install_metrics_level_achieved,app_install_metrics_purchase,app_install_metrics_search,app_install_metrics_sign_up,app_install_metrics_spend,app_install_metrics_spend_credits,app_install_metrics_view_content,clicks,comment_downvotes,comment_upvotes,comments_page_views,conversion_roas,cpc,ctr,ecpm,gallery_item_caption,gallery_item_id,impressions,legacy_click_conversions_attribution_window_day,legacy_click_conversions_attribution_window_month,legacy_click_conversions_attribution_window_week,legacy_view_conversions_attribution_window_day,legacy_view_conversions_attribution_window_month,legacy_view_conversions_attribution_window_week,priority,region,spend,video_fully_viewable_impressions,video_plays_expanded,video_plays_with_sound,video_started,video_viewable_impressions,video_watched_100_percent,video_watched_10_seconds,video_watched_25_percent,video_watched_3_seconds,video_watched_50_percent,video_watched_5_seconds,video_watched_75_percent,video_watched_95_percent,viewable_impressions,viewer_comments +1234,1510393835426777445,2022-10-24,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1647657.125,0.002063273728,3399567.658,,,11632,,,,,,,,,39543771,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-14,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960725.4,0.003513703443,6889407.59,,,5692,,,,,,,,,39214508,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-31,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1715421.375,0.001921998879,3297037.959,,,12487,,,,,,,,,41170113,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-27,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2019917.667,0.004863362668,9823592.172,,,4318,,,,,,,,,42418271,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-19,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2257865.579,0.001824467064,4119401.383,,,10414,,,,,,,,,42899446,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-20,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1751217.25,0.002341691872,4100811.201,,,10249,,,,,,,,,42029214,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-30,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1725187.75,0.002251301534,3883917.827,,,14214,,,,,,,,,55206008,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-29,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,2518876,0.004291845494,10810626.61,,,1398,,,,,,,,,15113256,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-28,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,2058634.96,0.003542581834,7292882.811,,,7057,,,,,,,,,51465874,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-12,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2123689.6,0.001857010214,3943713.278,,,10770,,,,,,,,,42473792,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-23,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,2128841.13,0.002362366475,5029102.917,,,9736,,,,,,,,,48963346,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-18,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2003290.227,0.002553389044,5115179.318,,,8616,,,,,,,,,44072385,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-25,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1870083.815,0.00284120804,5313297.169,,,9503,,,,,,,,,50492263,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-22,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,2119840.667,0.003428571429,7268025.143,,,1750,,,,,,,,,12719044,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-17,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1903813.091,0.002320185615,4417199.747,,,9482,,,,,,,,,41883888,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-16,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1784607.897,0.002736365352,4883339.215,,,10598,,,,,,,,,51753629,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-26,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1853571.56,0.003061849357,5675356.889,,,8165,,,,,,,,,46339289,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-15,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2152102.8,0.003140703518,6759116.834,,,1592,,,,,,,,,10760514,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-21,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1883932.52,0.002648024574,4988699.608,,,9441,,,,,,,,,47098313,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-13,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1955247.286,0.001614391144,3156533.902,,,13008,,,,,,,,,41060193,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-09,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,30,,,,0,2005160.033,0.002794076558,5602570.644,,,10737,,,,,,,,,60154801,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-11,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2070946.727,0.002353948213,4874901.348,,,9346,,,,,,,,,45560828,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393835426777445,2022-10-10,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1534314.464,0.002293577982,3519069.872,,,12208,,,,,,,,,42960805,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-16,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,41,,,,0,927280.6098,0.005117324014,4745195.332,,,8012,,,,,,,,,38018505,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-27,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,936291.3556,0.007831534981,7332598.503,,,5746,,,,,,,,,42133111,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-09,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1048095.333,0.004139072848,4338142.936,,,10872,,,,,,,,,47164290,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-29,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,17,,,,0,775914,0.007910656119,6137988.832,,,2149,,,,,,,,,13190538,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-17,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,48,,,,0,868205.0833,0.00705052879,6121304.935,,,6808,,,,,,,,,41673844,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-12,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,39,,,,0,1006656.256,0.0128458498,12931355.07,,,3036,,,,,,,,,39259594,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-31,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,41,,,,0,877972.7317,0.006444514304,5658107.828,,,6362,,,,,,,,,35996882,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-11,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,42,,,,0,927499.1905,0.005589566143,5184318.073,,,7514,,,,,,,,,38954966,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-10,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,55,,,,0,895254.7636,0.00636500405,5698300.197,,,8641,,,,,,,,,49239012,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-23,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,36,,,,0,1131407.222,0.006923076923,7832819.231,,,5200,,,,,,,,,40730660,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-28,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,52,,,,0,861070.5192,0.009809469911,8446645.35,,,5301,,,,,,,,,44775667,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-24,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1050531.8,0.007235890014,7601532.562,,,6219,,,,,,,,,47273931,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-26,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,47,,,,0,957437.7234,0.009674763277,9262983.326,,,4858,,,,,,,,,44999573,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-13,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,46,,,,0,880780.087,0.008859784284,7803521.572,,,5192,,,,,,,,,40515884,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-19,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,56,,,,0,902064.7679,0.009061488673,8174049.676,,,6180,,,,,,,,,50515627,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-14,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,35,,,,0,1046448.314,0.009828699803,10285226.34,,,3561,,,,,,,,,36625691,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-20,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,42,,,,0,920716.119,0.00845410628,7783831.924,,,4968,,,,,,,,,38670077,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-30,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,44,,,,0,934995.4091,0.006520450504,6096591.286,,,6748,,,,,,,,,41139798,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-15,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,1402248.333,0.01829268293,25650884.15,,,328,,,,,,,,,8413490,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-18,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,49,,,,0,848027.0204,0.007834985609,6644279.501,,,6254,,,,,,,,,41553324,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-25,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,62,,,,0,744124.9194,0.007203439061,5360258.511,,,8607,,,,,,,,,46135745,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-22,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,15,,,,0,1015290.533,0.01242750621,12617529.41,,,1207,,,,,,,,,15229358,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1522247232378637129,2022-10-21,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,46,,,,0,892044.1087,0.007076923077,6312927.538,,,6500,,,,,,,,,41034029,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-17,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1624521.464,0.002330614283,3786132.928,,,12014,,,,,,,,,45486601,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-13,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1762241.714,0.003142889213,5538530.475,,,8909,,,,,,,,,49342768,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-31,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1751287.321,0.002105579786,3687475.184,,,13298,,,,,,,,,49036045,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-27,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1764421.778,0.003351123247,5912794.837,,,8057,,,,,,,,,47639388,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-23,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1776401.727,0.002914679385,5177641.494,,,7548,,,,,,,,,39080838,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-22,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,8,,,,0,2020232.625,0.003214142226,6493314.986,,,2489,,,,,,,,,16161861,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-26,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1901739.154,0.002640398091,5021348.431,,,9847,,,,,,,,,49445218,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-09,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,33,,,,0,1562001.758,0.002073645846,3239038.457,,,15914,,,,,,,,,51546058,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-12,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2007943.421,0.003240661777,6507065.495,,,5863,,,,,,,,,38150925,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-11,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,18,,,,0,2131581.444,0.002286585366,4874042.937,,,7872,,,,,,,,,38368466,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-21,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1952633.6,0.002200462097,4296696.226,,,9089,,,,,,,,,39052672,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-15,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2066008.143,0.006487488415,13403203.89,,,1079,,,,,,,,,14462057,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-28,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1741785,0.002963841138,5162374.037,,,8435,,,,,,,,,43544625,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-19,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1790684.909,0.003666055657,6564750.542,,,6001,,,,,,,,,39395068,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-10,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2094054.273,0.002906976744,6087367.072,,,7568,,,,,,,,,46069194,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-18,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1639406.522,0.001914433161,3138534.21,,,12014,,,,,,,,,37706350,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-20,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1562767.615,0.00269179004,4206642.303,,,9659,,,,,,,,,40631958,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-24,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1802213,0.001836287873,3309381.877,,,14159,,,,,,,,,46857538,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-30,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1723513.148,0.002499537123,4307985.095,,,10802,,,,,,,,,46534855,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-25,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1756288.111,0.001961924139,3445704.04,,,13762,,,,,,,,,47419779,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-29,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,1605432.143,0.005196733482,8343002.97,,,1347,,,,,,,,,11238025,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-14,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1878849.381,0.002068354181,3886125.973,,,10153,,,,,,,,,39455837,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1535743348805779455,2022-10-16,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1580669.296,0.003456663679,5463842.146,,,7811,,,,,,,,,42678071,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-29,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2559320.6,0.002748763057,7034965.915,,,1819,,,,,,,,,12796603,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-19,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1969758.95,0.002731121125,5379650.28,,,7323,,,,,,,,,39395179,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-21,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2130129.789,0.002254657648,4802713.421,,,8427,,,,,,,,,40472466,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-13,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1971535.296,0.002324380165,4582597.538,,,11616,,,,,,,,,53231453,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-22,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,10,,,,0,2459581.8,0.003084515731,7586618.754,,,3242,,,,,,,,,24595818,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-23,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1702841.4,0.001720814978,2930274.986,,,14528,,,,,,,,,42571035,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-17,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1804320.5,0.001447851492,2612388.128,,,19339,,,,,,,,,50520974,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-20,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960190.6,0.002065262288,4048307.724,,,9684,,,,,,,,,39203812,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-18,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1614260.583,0.002644045389,4268178.253,,,9077,,,,,,,,,38742254,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-15,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2125368.143,0.002896152255,6155389.739,,,2417,,,,,,,,,14877577,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-27,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2128213.524,0.00204778157,4358116.431,,,10255,,,,,,,,,44692484,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-16,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1312920.938,0.0023896647,3137440.818,,,13391,,,,,,,,,42013470,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-10,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1728446.077,0.002474540782,4277110.307,,,10507,,,,,,,,,44939598,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-31,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1816478,0.00180533752,3279355.887,,,12740,,,,,,,,,41778994,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-11,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1935094.952,0.001796868315,3477110.807,,,11687,,,,,,,,,40636994,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-28,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1844539.261,0.002660805183,4907959.625,,,8644,,,,,,,,,42424403,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-14,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2080103.2,0.002103049422,4374559.832,,,9510,,,,,,,,,41602064,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-26,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,2238452.583,0.001801937082,4033550.717,,,13319,,,,,,,,,53722862,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-30,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,34,,,,0,1489352.441,0.003205128205,4773565.517,,,10608,,,,,,,,,50637983,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-25,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1374477.448,0.001649132784,2266695.82,,,17585,,,,,,,,,39859846,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-12,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1852267.783,0.002399833055,4445133.452,,,9584,,,,,,,,,42602159,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-09,2023-01-09 22:21:56,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1705044.25,0.001713306682,2921263.706,,,14008,,,,,,,,,40921062,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438385001795138,2022-10-24,2023-01-09 22:21:54,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1864886.577,0.001815769258,3386203.715,,,14319,,,,,,,,,48487051,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385500655752213,2022-11-16,2023-01-09 22:21:51,0,0,0,0,0,0,0,0,0,0,0,0,151,,,,0,1389892.139,0.002326405472,3233452.678,,,64907,,,,,,,,,209873713,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385500655752213,2022-12-06,2023-01-09 22:21:51,0,0,0,0,0,0,0,0,0,0,0,0,71,,,,0,1647665.845,0.002638620485,4347564.851,,,26908,,,,,,,,,116984275,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385500655752213,2022-12-04,2023-01-09 22:21:51,0,0,0,0,0,0,0,0,0,0,0,0,83,,,,0,1520572.325,0.002293768136,3487840.348,,,36185,,,,,,,,,126207503,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385500655752213,2022-11-15,2023-01-09 22:21:51,0,0,0,0,0,0,0,0,0,0,0,0,168,,,,0,1247205.857,0.002286305303,2851493.366,,,73481,,,,,,,,,209530584,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385500655752213,2022-11-18,2023-01-09 22:21:51,0,0,0,0,0,0,0,0,0,0,0,0,153,,,,0,1386554.34,0.002576408184,3572329.949,,,59385,,,,,,,,,212142814,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385500655752213,2022-11-19,2023-01-09 22:21:51,0,0,0,0,0,0,0,0,0,0,0,0,30,,,,0,1583609.333,0.002366117202,3747005.284,,,12679,,,,,,,,,47508280,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385500655752213,2022-11-17,2023-01-09 22:21:51,0,0,0,0,0,0,0,0,0,0,0,0,162,,,,0,1331590.932,0.002263265249,3013743.483,,,71578,,,,,,,,,215717731,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385500655752213,2022-11-25,2023-01-09 22:21:51,0,0,0,0,0,0,0,0,0,0,0,0,158,,,,0,1319160.082,0.0018617366,2455928.606,,,84867,,,,,,,,,208427293,0,0,0,0,0,0,0,0,0,0,,0,0,, \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_campaign_data.csv b/integration_tests/seeds/reddit_ads_campaign_data.csv new file mode 100644 index 0000000..99bd760 --- /dev/null +++ b/integration_tests/seeds/reddit_ads_campaign_data.csv @@ -0,0 +1,11 @@ +id,_fivetran_synced,account_id,configured_status,effective_status,funding_instrument_id,is_processing,name,objective +1576385495765735715,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q422-content,CLICKS +1456360336221951846,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q222_content,CLICKS +1542438351052756282,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q322-content,CLICKS +1467799695972064685,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q222_ribbit,CLICKS +1430216470366467725,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q122_content,CLICKS +1376344562480400752,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q122_fivetran,CLICKS +1510393823694638543,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q322-data,CLICKS +1361113034247431512,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q122_adventures,CLICKS +1593209133449106285,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q422 boop,CLICKS +1420711536670279757,2023-01-09 22:21:20,1234,PAUSED,CAMPAIGN_PAUSED,,FALSE,Q122_beep,CLICKS \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_campaign_report_data.csv b/integration_tests/seeds/reddit_ads_campaign_report_data.csv new file mode 100644 index 0000000..cac4fed --- /dev/null +++ b/integration_tests/seeds/reddit_ads_campaign_report_data.csv @@ -0,0 +1,80 @@ +account_id,campaign_id,date,_fivetran_synced,app_install_metrics_add_payment_info,app_install_metrics_add_to_cart,app_install_metrics_app_launch,app_install_metrics_completed_tutorial,app_install_metrics_install,app_install_metrics_level_achieved,app_install_metrics_purchase,app_install_metrics_search,app_install_metrics_sign_up,app_install_metrics_spend,app_install_metrics_spend_credits,app_install_metrics_view_content,clicks,comment_downvotes,comment_upvotes,comments_page_views,conversion_roas,cpc,ctr,ecpm,gallery_item_caption,gallery_item_id,impressions,legacy_click_conversions_attribution_window_day,legacy_click_conversions_attribution_window_month,legacy_click_conversions_attribution_window_week,legacy_view_conversions_attribution_window_day,legacy_view_conversions_attribution_window_month,legacy_view_conversions_attribution_window_week,priority,region,spend,video_fully_viewable_impressions,video_plays_expanded,video_plays_with_sound,video_started,video_viewable_impressions,video_watched_100_percent,video_watched_10_seconds,video_watched_25_percent,video_watched_3_seconds,video_watched_50_percent,video_watched_5_seconds,video_watched_75_percent,video_watched_95_percent,viewable_impressions,viewer_comments +1234,1510393823694638543,2022-10-09,2023-01-09 22:22:10,0,0,0,0,0,0,0,0,0,0,0,0,108,,,,0,1470973.602,0.002878234683,4233807.238,,,37523,,,,,,,,,158865149,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-10,2023-01-09 22:22:10,0,0,0,0,0,0,0,0,0,0,0,0,105,,,,0,1316847.724,0.00369497132,4865714.572,,,28417,,,,,,,,,138269011,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-11,2023-01-09 22:22:10,0,0,0,0,0,0,0,0,0,0,0,0,82,,,,0,1498588.537,0.003315542617,4968634.158,,,24732,,,,,,,,,122884260,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-12,2023-01-09 22:22:10,0,0,0,0,0,0,0,0,0,0,0,0,78,,,,0,1536978.346,0.003965631196,6095089.278,,,19669,,,,,,,,,119884311,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-13,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,95,,,,0,1378093.105,0.003504371242,4829349.847,,,27109,,,,,,,,,130918845,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-14,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,76,,,,0,1517053.105,0.003916314542,5941257.137,,,19406,,,,,,,,,115296036,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-15,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,18,,,,0,1868670.056,0.006002000667,11215758.92,,,2999,,,,,,,,,33636061,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-16,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,97,,,,0,1365466.031,0.003671322054,5013065.554,,,26421,,,,,,,,,132450205,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-17,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,98,,,,0,1316778.908,0.00346240814,4559226.01,,,28304,,,,,,,,,129044333,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-18,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,94,,,,0,1312043.181,0.003496503497,4587563.569,,,26884,,,,,,,,,123332059,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-19,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,97,,,,0,1369176.711,0.004292985174,5877855.322,,,22595,,,,,,,,,132810141,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-20,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,92,,,,0,1318817.924,0.003698343785,4877442.073,,,24876,,,,,,,,,121331249,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-21,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,91,,,,0,1397637.516,0.003635637235,5081302.996,,,25030,,,,,,,,,127185014,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-22,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1521043.552,0.005325009181,8099570.878,,,5446,,,,,,,,,44110263,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-23,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,81,,,,0,1589812.889,0.003602561822,5727399.217,,,22484,,,,,,,,,128774844,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-24,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,95,,,,0,1407107.789,0.002967822555,4176046.236,,,32010,,,,,,,,,133675240,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-25,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,116,,,,0,1241791.267,0.003639558233,4519571.63,,,31872,,,,,,,,,144047787,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-26,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,98,,,,0,1436572.245,0.004285089637,6155840.84,,,22870,,,,,,,,,140784080,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-27,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,93,,,,0,1421406.129,0.005132167099,7294893.77,,,18121,,,,,,,,,132190770,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-28,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,102,,,,0,1370452.608,0.004905497042,6722751.214,,,20793,,,,,,,,,139786166,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-29,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,30,,,,0,1318060.633,0.006129955047,8079652.432,,,4894,,,,,,,,,39541819,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-30,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,103,,,,0,1387190.883,0.003242664652,4498194.843,,,31764,,,,,,,,,142880661,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1510393823694638543,2022-10-31,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,93,,,,0,1357021.935,0.002892960463,3925810.807,,,32147,,,,,,,,,126203040,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-09,2023-01-09 22:22:10,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1705044.25,0.001713306682,2921263.706,,,14008,,,,,,,,,40921062,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-10,2023-01-09 22:22:10,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1728446.077,0.002474540782,4277110.307,,,10507,,,,,,,,,44939598,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-11,2023-01-09 22:22:10,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1935094.952,0.001796868315,3477110.807,,,11687,,,,,,,,,40636994,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-12,2023-01-09 22:22:10,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1852267.783,0.002399833055,4445133.452,,,9584,,,,,,,,,42602159,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-13,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1971535.296,0.002324380165,4582597.538,,,11616,,,,,,,,,53231453,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-14,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2080103.2,0.002103049422,4374559.832,,,9510,,,,,,,,,41602064,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-15,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2125368.143,0.002896152255,6155389.739,,,2417,,,,,,,,,14877577,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-16,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1312920.938,0.0023896647,3137440.818,,,13391,,,,,,,,,42013470,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-17,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1804320.5,0.001447851492,2612388.128,,,19339,,,,,,,,,50520974,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-18,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1614260.583,0.002644045389,4268178.253,,,9077,,,,,,,,,38742254,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-19,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1969758.95,0.002731121125,5379650.28,,,7323,,,,,,,,,39395179,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-20,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960190.6,0.002065262288,4048307.724,,,9684,,,,,,,,,39203812,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-21,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2130129.789,0.002254657648,4802713.421,,,8427,,,,,,,,,40472466,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-22,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,10,,,,0,2459581.8,0.003084515731,7586618.754,,,3242,,,,,,,,,24595818,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-23,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1702841.4,0.001720814978,2930274.986,,,14528,,,,,,,,,42571035,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-24,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1864886.577,0.001815769258,3386203.715,,,14319,,,,,,,,,48487051,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-25,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1374477.448,0.001649132784,2266695.82,,,17585,,,,,,,,,39859846,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-26,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,2238452.583,0.001801937082,4033550.717,,,13319,,,,,,,,,53722862,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-27,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2128213.524,0.00204778157,4358116.431,,,10255,,,,,,,,,44692484,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-28,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1844539.261,0.002660805183,4907959.625,,,8644,,,,,,,,,42424403,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-29,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2559320.6,0.002748763057,7034965.915,,,1819,,,,,,,,,12796603,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-30,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,34,,,,0,1489352.441,0.003205128205,4773565.517,,,10608,,,,,,,,,50637983,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1542438351052756282,2022-10-31,2023-01-09 22:22:08,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1816478,0.00180533752,3279355.887,,,12740,,,,,,,,,41778994,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-14,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,9,,,,0,1305312.111,0.003911342894,5105523.251,,,2301,,,,,,,,,11747809,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-15,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,329,,,,0,1276506.988,0.002292826728,2926809.34,,,143491,,,,,,,,,419970799,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-16,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,296,,,,0,1441871.348,0.002325764124,3353452.652,,,127270,,,,,,,,,426793919,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-17,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,316,,,,0,1380874.101,0.002338904268,3229732.329,,,135106,,,,,,,,,436356216,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-18,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,308,,,,0,1383411.896,0.002531250257,3501761.717,,,121679,,,,,,,,,426090864,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-19,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,105,,,,0,1372820.438,0.00293648796,4031270.688,,,35757,,,,,,,,,144146146,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-20,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,332,,,,0,1268982.235,0.002218539506,2815287.221,,,149648,,,,,,,,,421302102,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-21,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,312,,,,0,1376055.673,0.002397989378,3299766.888,,,130109,,,,,,,,,429329370,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-22,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,315,,,,0,1346674.187,0.002210774543,2977193.011,,,142484,,,,,,,,,424202369,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-23,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,302,,,,0,1387865.238,0.002622688864,3639938.706,,,115149,,,,,,,,,419135302,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-24,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,287,,,,0,1457504.007,0.002346285593,3419720.653,,,122321,,,,,,,,,418303650,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-25,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,307,,,,0,1360387.088,0.001970512911,2680660.321,,,155797,,,,,,,,,417638836,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-26,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,289,,,,0,1427009.751,0.002275895199,3247724.64,,,126983,,,,,,,,,412405818,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-27,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,319,,,,0,1360644.708,0.002546641866,3465074.779,,,125263,,,,,,,,,434045662,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-11-28,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,40,,,,0,1468809.25,0.002381803025,3498414.315,,,16794,,,,,,,,,58752370,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-12-01,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1286066.25,0.001792688392,2305516.038,,,15619,,,,,,,,,36009855,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-12-02,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,204,,,,0,1698539.765,0.002225373623,3779885.59,,,91670,,,,,,,,,346502112,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-12-03,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1786445.4,0.003219114386,5750772.087,,,13979,,,,,,,,,80390043,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-12-04,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,258,,,,0,1437084.446,0.002597507199,3732837.193,,,99326,,,,,,,,,370767787,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-12-05,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,232,,,,0,1517516.047,0.002401904959,3644929.32,,,96590,,,,,,,,,352063723,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-12-06,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,213,,,,0,1635268.183,0.002597085899,4246931.939,,,82015,,,,,,,,,348312123,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1576385495765735715,2022-12-07,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,216,,,,0,1706610.731,0.002207234825,3766890.64,,,97860,,,,,,,,,368627918,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,1593209133449106285,2022-12-08,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,9,,,,0,1228903.222,0.001740139211,2138462.684,,,5172,,,,,,,,,11060129,38,0,2,733,133,14,26,111,108,48,,30,17,, +1234,1593209133449106285,2022-12-09,2023-01-09 22:22:05,0,0,0,0,0,0,0,0,0,0,0,0,130,,,,0,1345586.446,0.002042002419,2747690.778,,,63663,,,,,,,,,174926238,251,0,1,4772,928,153,195,775,758,360,,219,164,, +1234,1593209133449106285,2022-12-10,2023-01-09 22:22:06,0,0,0,0,0,0,0,0,0,0,0,0,35,,,,0,1445580.8,0.002073336888,2997175.997,,,16881,,,,,,,,,50595328,85,0,2,1677,296,47,59,245,237,110,,69,50,, +1234,1593209133449106285,2022-12-12,2023-01-09 22:09:15,0,0,0,0,0,0,0,0,0,0,0,0,132,,,,0,1398132.818,0.002551612155,3567492.693,,,51732,,,,,,,,,184553532,56,1,1,866,181,29,39,154,152,84,,46,33,, +1234,1593209133449106285,2022-12-13,2023-01-09 22:09:15,0,0,0,0,0,0,0,0,0,0,0,0,192,,,,0,1221596.943,0.002158273381,2636540.164,,,88960,,,,,,,,,234546613,26,0,0,511,93,11,14,76,74,36,,16,12,, +1234,1593209133449106285,2022-12-14,2023-01-09 22:09:15,0,0,0,0,0,0,0,0,0,0,0,0,209,,,,0,1296568.675,0.002398026505,3109206.047,,,87155,,,,,,,,,270982853,22,0,0,473,80,13,18,68,66,38,,21,15,, +1234,1593209133449106285,2022-12-15,2023-01-09 22:09:15,0,0,0,0,0,0,0,0,0,0,0,0,137,,,,0,1950930.08,0.002297925158,4483091.313,,,59619,,,,,,,,,267277421,76,1,0,1200,252,46,57,217,212,107,,69,51,, +1234,1593209133449106285,2022-12-16,2023-01-09 22:09:15,0,0,0,0,0,0,0,0,0,0,0,0,124,,,,0,2180505.621,0.00230903877,5034872.016,,,53702,,,,,,,,,270382697,50,0,0,822,172,32,38,143,137,64,,42,34,, +1234,1593209133449106285,2022-12-17,2023-01-09 22:09:15,0,0,0,0,0,0,0,0,0,0,0,0,38,,,,0,2143373.342,0.002449242668,5249641.444,,,15515,,,,,,,,,81448187,18,0,0,289,62,8,12,47,46,21,,15,8,, +1234,1593209133449106285,2022-12-19,2023-01-09 22:09:15,0,0,0,0,0,0,0,0,0,0,0,0,134,,,,0,1994015.351,0.002905086069,5792786.216,,,46126,,,,,,,,,267198057,46,0,0,515,136,24,34,117,116,59,,39,25,, +1234,1593209133449106285,2022-12-20,2023-01-09 22:09:15,0,0,0,0,0,0,0,0,0,0,0,0,131,,,,0,2032703.313,0.002420010345,4919163.046,,,54132,,,,,,,,,266284134,46,0,0,672,148,18,24,126,121,58,,32,20,, \ No newline at end of file diff --git a/integration_tests/seeds/reddit_ads_post_report_data.csv b/integration_tests/seeds/reddit_ads_post_report_data.csv new file mode 100644 index 0000000..5a31cea --- /dev/null +++ b/integration_tests/seeds/reddit_ads_post_report_data.csv @@ -0,0 +1,101 @@ +account_id,date,post_id,_fivetran_synced,app_install_metrics_add_payment_info,app_install_metrics_add_to_cart,app_install_metrics_app_launch,app_install_metrics_completed_tutorial,app_install_metrics_install,app_install_metrics_level_achieved,app_install_metrics_purchase,app_install_metrics_search,app_install_metrics_sign_up,app_install_metrics_spend,app_install_metrics_spend_credits,app_install_metrics_view_content,clicks,comment_downvotes,comment_upvotes,comments_page_views,conversion_roas,cpc,ctr,ecpm,gallery_item_caption,gallery_item_id,impressions,legacy_click_conversions_attribution_window_day,legacy_click_conversions_attribution_window_month,legacy_click_conversions_attribution_window_week,legacy_view_conversions_attribution_window_day,legacy_view_conversions_attribution_window_month,legacy_view_conversions_attribution_window_week,priority,region,spend,video_fully_viewable_impressions,video_plays_expanded,video_plays_with_sound,video_started,video_viewable_impressions,video_watched_100_percent,video_watched_10_seconds,video_watched_25_percent,video_watched_3_seconds,video_watched_50_percent,video_watched_5_seconds,video_watched_75_percent,video_watched_95_percent,viewable_impressions,viewer_comments +1234,2022-10-09,5678,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,30,,,,0,2005160.033,0.002794076558,5602570.644,,,10737,,,,,,,,,60154801,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-24,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1647657.125,0.002063273728,3399567.658,,,11632,,,,,,,,,39543771,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-23,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,2128841.13,0.002362366475,5029102.917,,,9736,,,,,,,,,48963346,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-15,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2152102.8,0.003140703518,6759116.834,,,1592,,,,,,,,,10760514,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-19,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2257865.579,0.001824467064,4119401.383,,,10414,,,,,,,,,42899446,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-29,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,2518876,0.004291845494,10810626.61,,,1398,,,,,,,,,15113256,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-27,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2019917.667,0.004863362668,9823592.172,,,4318,,,,,,,,,42418271,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-31,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1715421.375,0.001921998879,3297037.959,,,12487,,,,,,,,,41170113,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-25,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1870083.815,0.00284120804,5313297.169,,,9503,,,,,,,,,50492263,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-14,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960725.4,0.003513703443,6889407.59,,,5692,,,,,,,,,39214508,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-12,5678,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2123689.6,0.001857010214,3943713.278,,,10770,,,,,,,,,42473792,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-30,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1725187.75,0.002251301534,3883917.827,,,14214,,,,,,,,,55206008,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-17,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1903813.091,0.002320185615,4417199.747,,,9482,,,,,,,,,41883888,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-13,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1955247.286,0.001614391144,3156533.902,,,13008,,,,,,,,,41060193,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-20,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1751217.25,0.002341691872,4100811.201,,,10249,,,,,,,,,42029214,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-18,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2003290.227,0.002553389044,5115179.318,,,8616,,,,,,,,,44072385,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-28,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,2058634.96,0.003542581834,7292882.811,,,7057,,,,,,,,,51465874,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-21,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1883932.52,0.002648024574,4988699.608,,,9441,,,,,,,,,47098313,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-10,5678,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1534314.464,0.002293577982,3519069.872,,,12208,,,,,,,,,42960805,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-26,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1853571.56,0.003061849357,5675356.889,,,8165,,,,,,,,,46339289,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-11,5678,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2070946.727,0.002353948213,4874901.348,,,9346,,,,,,,,,45560828,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-22,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,2119840.667,0.003428571429,7268025.143,,,1750,,,,,,,,,12719044,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-16,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1784607.897,0.002736365352,4883339.215,,,10598,,,,,,,,,51753629,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-17,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,48,,,,0,868205.0833,0.00705052879,6121304.935,,,6808,,,,,,,,,41673844,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-14,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,35,,,,0,1046448.314,0.009828699803,10285226.34,,,3561,,,,,,,,,36625691,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-29,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,17,,,,0,775914,0.007910656119,6137988.832,,,2149,,,,,,,,,13190538,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-25,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,62,,,,0,744124.9194,0.007203439061,5360258.511,,,8607,,,,,,,,,46135745,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-31,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,41,,,,0,877972.7317,0.006444514304,5658107.828,,,6362,,,,,,,,,35996882,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-16,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,41,,,,0,927280.6098,0.005117324014,4745195.332,,,8012,,,,,,,,,38018505,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-10,t3_x2vup1,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,55,,,,0,895254.7636,0.00636500405,5698300.197,,,8641,,,,,,,,,49239012,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-12,t3_x2vup1,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,39,,,,0,1006656.256,0.0128458498,12931355.07,,,3036,,,,,,,,,39259594,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-24,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1050531.8,0.007235890014,7601532.562,,,6219,,,,,,,,,47273931,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-27,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,936291.3556,0.007831534981,7332598.503,,,5746,,,,,,,,,42133111,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-18,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,49,,,,0,848027.0204,0.007834985609,6644279.501,,,6254,,,,,,,,,41553324,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-13,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,46,,,,0,880780.087,0.008859784284,7803521.572,,,5192,,,,,,,,,40515884,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-28,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,52,,,,0,861070.5192,0.009809469911,8446645.35,,,5301,,,,,,,,,44775667,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-26,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,47,,,,0,957437.7234,0.009674763277,9262983.326,,,4858,,,,,,,,,44999573,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-11,t3_x2vup1,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,42,,,,0,927499.1905,0.005589566143,5184318.073,,,7514,,,,,,,,,38954966,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-09,t3_x2vup1,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1048095.333,0.004139072848,4338142.936,,,10872,,,,,,,,,47164290,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-15,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,1402248.333,0.01829268293,25650884.15,,,328,,,,,,,,,8413490,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-21,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,46,,,,0,892044.1087,0.007076923077,6312927.538,,,6500,,,,,,,,,41034029,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-22,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,15,,,,0,1015290.533,0.01242750621,12617529.41,,,1207,,,,,,,,,15229358,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-19,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,56,,,,0,902064.7679,0.009061488673,8174049.676,,,6180,,,,,,,,,50515627,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-23,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,36,,,,0,1131407.222,0.006923076923,7832819.231,,,5200,,,,,,,,,40730660,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-30,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,44,,,,0,934995.4091,0.006520450504,6096591.286,,,6748,,,,,,,,,41139798,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-20,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,42,,,,0,920716.119,0.00845410628,7783831.924,,,4968,,,,,,,,,38670077,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-23,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1776401.727,0.002914679385,5177641.494,,,7548,,,,,,,,,39080838,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-09,t3_xiiuai,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,33,,,,0,1562001.758,0.002073645846,3239038.457,,,15914,,,,,,,,,51546058,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-29,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,1605432.143,0.005196733482,8343002.97,,,1347,,,,,,,,,11238025,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-27,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1764421.778,0.003351123247,5912794.837,,,8057,,,,,,,,,47639388,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-11,t3_xiiuai,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,18,,,,0,2131581.444,0.002286585366,4874042.937,,,7872,,,,,,,,,38368466,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-24,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1802213,0.001836287873,3309381.877,,,14159,,,,,,,,,46857538,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-19,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1790684.909,0.003666055657,6564750.542,,,6001,,,,,,,,,39395068,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-30,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1723513.148,0.002499537123,4307985.095,,,10802,,,,,,,,,46534855,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-25,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1756288.111,0.001961924139,3445704.04,,,13762,,,,,,,,,47419779,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-21,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1952633.6,0.002200462097,4296696.226,,,9089,,,,,,,,,39052672,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-15,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2066008.143,0.006487488415,13403203.89,,,1079,,,,,,,,,14462057,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-22,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,8,,,,0,2020232.625,0.003214142226,6493314.986,,,2489,,,,,,,,,16161861,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-10,t3_xiiuai,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2094054.273,0.002906976744,6087367.072,,,7568,,,,,,,,,46069194,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-28,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1741785,0.002963841138,5162374.037,,,8435,,,,,,,,,43544625,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-13,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1762241.714,0.003142889213,5538530.475,,,8909,,,,,,,,,49342768,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-20,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1562767.615,0.00269179004,4206642.303,,,9659,,,,,,,,,40631958,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-14,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1878849.381,0.002068354181,3886125.973,,,10153,,,,,,,,,39455837,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-31,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1751287.321,0.002105579786,3687475.184,,,13298,,,,,,,,,49036045,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-18,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1639406.522,0.001914433161,3138534.21,,,12014,,,,,,,,,37706350,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-17,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1624521.464,0.002330614283,3786132.928,,,12014,,,,,,,,,45486601,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-26,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1901739.154,0.002640398091,5021348.431,,,9847,,,,,,,,,49445218,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-12,t3_xiiuai,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2007943.421,0.003240661777,6507065.495,,,5863,,,,,,,,,38150925,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-16,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1580669.296,0.003456663679,5463842.146,,,7811,,,,,,,,,42678071,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-17,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1804320.5,0.001447851492,2612388.128,,,19339,,,,,,,,,50520974,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-27,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2128213.524,0.00204778157,4358116.431,,,10255,,,,,,,,,44692484,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-25,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1374477.448,0.001649132784,2266695.82,,,17585,,,,,,,,,39859846,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-18,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1614260.583,0.002644045389,4268178.253,,,9077,,,,,,,,,38742254,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-26,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,2238452.583,0.001801937082,4033550.717,,,13319,,,,,,,,,53722862,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-15,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2125368.143,0.002896152255,6155389.739,,,2417,,,,,,,,,14877577,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-13,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1971535.296,0.002324380165,4582597.538,,,11616,,,,,,,,,53231453,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-21,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2130129.789,0.002254657648,4802713.421,,,8427,,,,,,,,,40472466,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-28,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1844539.261,0.002660805183,4907959.625,,,8644,,,,,,,,,42424403,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-29,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2559320.6,0.002748763057,7034965.915,,,1819,,,,,,,,,12796603,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-09,t3_xqr2gh,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1705044.25,0.001713306682,2921263.706,,,14008,,,,,,,,,40921062,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-10,t3_xqr2gh,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1728446.077,0.002474540782,4277110.307,,,10507,,,,,,,,,44939598,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-20,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960190.6,0.002065262288,4048307.724,,,9684,,,,,,,,,39203812,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-22,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,10,,,,0,2459581.8,0.003084515731,7586618.754,,,3242,,,,,,,,,24595818,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-19,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1969758.95,0.002731121125,5379650.28,,,7323,,,,,,,,,39395179,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-14,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2080103.2,0.002103049422,4374559.832,,,9510,,,,,,,,,41602064,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-23,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1702841.4,0.001720814978,2930274.986,,,14528,,,,,,,,,42571035,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-31,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1816478,0.00180533752,3279355.887,,,12740,,,,,,,,,41778994,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-24,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1864886.577,0.001815769258,3386203.715,,,14319,,,,,,,,,48487051,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-30,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,34,,,,0,1489352.441,0.003205128205,4773565.517,,,10608,,,,,,,,,50637983,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-16,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1312920.938,0.0023896647,3137440.818,,,13391,,,,,,,,,42013470,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-11,t3_xqr2gh,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1935094.952,0.001796868315,3477110.807,,,11687,,,,,,,,,40636994,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-10-12,t3_xqr2gh,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1852267.783,0.002399833055,4445133.452,,,9584,,,,,,,,,42602159,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-23,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,154,,,,0,1365631.558,0.002490257273,3400773.92,,,61841,,,,,,,,,210307260,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-03,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,14,,,,0,1839016.357,0.002066725716,3800742.397,,,6774,,,,,,,,,25746229,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-07,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,71,,,,0,1723582.239,0.001843724844,3177811.395,,,38509,,,,,,,,,122374339,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-22,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,156,,,,0,1360858.795,0.002018685784,2747146.303,,,77278,,,,,,,,,212293972,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-25,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,158,,,,0,1319160.082,0.0018617366,2455928.606,,,84867,,,,,,,,,208427293,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-11-26,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,143,,,,0,1447518.357,0.002166207168,3135624.64,,,66014,,,,,,,,,206995125,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-02,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,71,,,,0,1616851.761,0.002139585342,3459392.328,,,33184,,,,,,,,,114796475,0,0,0,0,0,0,0,0,0,0,,0,0,, +1234,2022-12-05,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,82,,,,0,1458452.268,0.002312464749,3372619.459,,,35460,,,,,,,,,119593086,0,0,0,0,0,0,0,0,0,0,,0,0,, \ No newline at end of file diff --git a/models/intermediate/int_ad_reporting__account_report.sql b/models/intermediate/int_ad_reporting__account_report.sql index c1befc7..f2e5b9e 100644 --- a/models/intermediate/int_ad_reporting__account_report.sql +++ b/models/intermediate/int_ad_reporting__account_report.sql @@ -2,7 +2,7 @@ {{ config(enabled=is_enabled(enabled_packages)) }} with -{% for package in ['twitter_ads', 'facebook_ads', 'google_ads', 'microsoft_ads'] %} +{% for package in ['twitter_ads', 'facebook_ads', 'google_ads', 'microsoft_ads','reddit_ads'] %} {% if package in enabled_packages %} {{ package }} as ( {{ get_query( diff --git a/packages.yml b/packages.yml index 71eac45..797c8d4 100644 --- a/packages.yml +++ b/packages.yml @@ -28,3 +28,7 @@ packages: - package: fivetran/amazon_ads version: [">=0.1.0", "<0.2.0"] + + - package: fivetran/reddit_ads + version: [">=0.1.0", "<0.2.0"] + From 223ebfbaa6c313b559e2c1b99b4476ca7487a29d Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Wed, 8 Mar 2023 15:41:14 -0500 Subject: [PATCH 02/20] changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e27c1ef..a0d1273 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# dbt_ad_reporting v1.3.0 + +## Introducing Reddit Ads +- We have added Reddit Ads as another platform in our Ad Reporting package ecosystem. ([PR #83](https://github.com/fivetran/dbt_ad_reporting/pull/83)) + # dbt_ad_reporting v1.2.1 ## Updates From 13d242897773b6bda4ff798fed0e6ea5b17c0685 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Fri, 10 Mar 2023 12:55:33 -0500 Subject: [PATCH 03/20] updates --- .buildkite/scripts/run_models.sh | 4 +- README.md | 19 +++++- docs/catalog.json | 1 - docs/index.html | 102 ------------------------------- docs/manifest.json | 1 - docs/run_results.json | 1 - macros/get_enabled_packages.sql | 3 +- packages.yml | 9 ++- 8 files changed, 29 insertions(+), 111 deletions(-) delete mode 100644 docs/catalog.json delete mode 100644 docs/index.html delete mode 100644 docs/manifest.json delete mode 100644 docs/run_results.json diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index b0ecbe2..fa67f4e 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 --vars '{ad_reporting__linkedin_ads_enabled: false, 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__facebook_ads_enabled: false}' -dbt test --target "$db" --vars '{ad_reporting__linkedin_ads_enabled: false, 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__facebook_ads_enabled: false}' +dbt run --target "$db" --full-refresh --vars '{ad_reporting__linkedin_ads_enabled: false, 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__facebook_ads_enabled: false, ad_reporting__reddit_ads_enabled: false}' +dbt test --target "$db" --vars '{ad_reporting__linkedin_ads_enabled: false, 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__facebook_ads_enabled: false, ad_reporting__reddit_ads_enabled: false}' diff --git a/README.md b/README.md index 9170671..d3085c9 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ - [Snapchat Ads](https://github.com/fivetran/dbt_snapchat_ads) - [TikTok Ads](https://github.com/fivetran/dbt_tiktok_ads) - [Twitter Ads](https://github.com/fivetran/dbt_twitter) + - [Reddit Ads](https://github.com/fivetran/dbt_reddit_ads) > NOTE: You do _not_ need to have all of these connector types to use this package, though you should have at least two. - Generates a comprehensive data dictionary of your source and modeled Ad Reporting data via the [dbt docs site](https://fivetran.github.io/dbt_ad_reporting/) @@ -54,6 +55,7 @@ Refer to the table below for a detailed view of final models materialized by def - [Snapchat Ads](https://fivetran.com/docs/applications/snapchat-ads) - [TikTok Ads](https://fivetran.com/docs/applications/tiktok-ads) - [Twitter Ads](https://fivetran.com/docs/applications/twitter-ads) + - [Reddit Ads](https://fivetran.com/docs/applications/reddit-ads) > While you need only one of the above connectors to utilize this package, we recommend having at least two to gain the rollup benefit of this package. - **Database support**: This package has been tested on **BigQuery**, **Snowflake**, **Redshift**, **Postgres** and **Databricks**. Ensure you are using one of these supported databases. @@ -110,7 +112,10 @@ vars: snapchat_database: your_database_name tiktok_ads_schema: tiktok_ads - tiktok_ads_database: your_database_name + tiktok_ads_database: your_database_name + + reddit_ads_schema: reddit_ads + reddit_ads_database: your_database_name ``` ## Step 4: Enabling/Disabling Models @@ -131,6 +136,7 @@ vars: ad_reporting__facebook_ads_enabled: False # by default this is assumed to be True ad_reporting__snapchat_ads_enabled: False # by default this is assumed to be True ad_reporting__tiktok_ads_enabled: False # by default this is assumed to be True + ad_reporting__reddit_ads_enabled: False # by default this is assumed to be True ``` ### Enable/Disable Specific Reports within Platforms For **Apple Search Ads**, if you are not utilizing the search functionality, you may choose to update the respective variable below. @@ -202,6 +208,11 @@ models: +schema: tiktok_ads tiktok_ads_source: +schema: tiktok_ads_source + + reddit_ads: + +schema: reddit_ads + reddit_ads_source: + +schema: reddit_ads_source ``` > Provide a blank `+schema: ` to write to the `target_schema` without any suffix. @@ -353,6 +364,12 @@ packages: - package: fivetran/tiktok_ads_source version: [">=0.2.0", "<0.3.0"] + + - package: fivetran/reddit_ads + version: [">=0.1.0", "<0.2.0"] + + - package: fivetran/reddit_ads_source + version: [">=0.1.0", "<0.2.0"] ``` # 🙌 How is this package maintained and can I contribute? ## Package Maintenance diff --git a/docs/catalog.json b/docs/catalog.json deleted file mode 100644 index 3cee892..0000000 --- a/docs/catalog.json +++ /dev/null @@ -1 +0,0 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.1", "generated_at": "2023-02-15T16:03:52.092565Z", "invocation_id": "34decfdc-e532-4953-b7aa-af2cb487294c", "env": {}}, "nodes": {"seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "double precision", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_ad_group_level_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 6, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 7, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 8, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_advertised_product_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 9, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 12, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 13, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "text", "index": 4, "name": "bidding_strategy", "comment": null}, "campaign_type": {"type": "text", "index": 5, "name": "campaign_type", "comment": null}, "creation_date": {"type": "text", "index": 6, "name": "creation_date", "comment": null}, "daily_budget": {"type": "integer", "index": 7, "name": "daily_budget", "comment": null}, "end_date": {"type": "integer", "index": 8, "name": "end_date", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "placement": {"type": "integer", "index": 10, "name": "placement", "comment": null}, "portfolio_id": {"type": "integer", "index": 11, "name": "portfolio_id", "comment": null}, "premium_bid_adjustment": {"type": "boolean", "index": 12, "name": "premium_bid_adjustment", "comment": null}, "profile_id": {"type": "integer", "index": 13, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_date": {"type": "date", "index": 15, "name": "start_date", "comment": null}, "state": {"type": "text", "index": 16, "name": "state", "comment": null}, "targeting_type": {"type": "text", "index": 17, "name": "targeting_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_campaign_level_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "integer", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "integer", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 10, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 12, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 13, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "double precision", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "text", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "integer", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_portfolio_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "boolean", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "integer", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_product_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "text", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "integer", "index": 9, "name": "sku", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data"}, "seed.ad_reporting_integration_tests.amazon_ads_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "text", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "text", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "integer", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "boolean", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "text", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "integer", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "text", "index": 13, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_profile_data"}, "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_search_term_ad_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 11, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 13, "name": "keyword_bid", "comment": null}, "search_term": {"type": "text", "index": 14, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 15, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data"}, "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_targeting_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "text", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 10, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 12, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 13, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 15, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "text", "index": 16, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 17, "name": "match_type", "comment": null}, "targeting": {"type": "text", "index": 18, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "boolean", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "integer", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "integer", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "integer", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "integer", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "integer", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "integer", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "integer", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_group_report_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creation_time": {"type": "timestamp without time zone", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "integer", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "integer", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "text", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_history_data"}, "seed.ad_reporting_integration_tests.apple_search_ad_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_ad_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_ad_report_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "integer", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "text", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "text", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "integer", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "text", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "integer", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "integer", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "integer", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "integer", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "integer", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "text", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "text", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_history_data"}, "seed.ad_reporting_integration_tests.apple_search_campaign_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_campaign_report_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "double precision", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "boolean", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "text", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "text": {"type": "text", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_history_data"}, "seed.ad_reporting_integration_tests.apple_search_keyword_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_keyword_report_data"}, "seed.ad_reporting_integration_tests.apple_search_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "currency": {"type": "text", "index": 2, "name": "currency", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "text", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "text", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data"}, "seed.ad_reporting_integration_tests.apple_search_search_term_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_search_term_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "boolean", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "double precision", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "text", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "boolean", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "text", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "text", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "integer", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "integer", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "text", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "integer", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "text", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "text", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.apple_search_search_term_report_data"}, "seed.ad_reporting_integration_tests.facebook_ads_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_account_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "bigint", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "bigint", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_ad_set_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_ad_set_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_basic_ad_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "bigint", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "integer", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_basic_ad_data"}, "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"page_link": {"type": "character varying", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "character varying", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "bigint", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "text", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "text", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "text", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "text", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "text", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "text", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "text", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "text", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "text", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data"}, "seed.ad_reporting_integration_tests.google_ads_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "integer", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "boolean", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "boolean", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "integer", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "double precision", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "text", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "boolean", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "text", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "integer", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "integer", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_history_data"}, "seed.ad_reporting_integration_tests.google_ads_account_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_account_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_account_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_group_criterion_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "bigint", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_group_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "text", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 18, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "name": {"type": "integer", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "integer", "index": 5, "name": "type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "integer", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "text", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "text", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "text", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "text", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "integer", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_ad_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "bigint", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "date", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "date", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "text", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "integer", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_campaign_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "text", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 16, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_campaign_stats_data"}, "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_keyword_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "text", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "bigint", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "text", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_account_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_analytics_by_campaign_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "integer", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "integer", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "integer", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "integer", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "double precision", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "double precision", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "integer", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_campaign_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_analytics_by_creative_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "integer", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_analytics_by_creative_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_campaign_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_group_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "integer", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "integer", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_campaign_history_data"}, "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "text", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.linkedin_ad_creative_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "text", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_account_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "text", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "text", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_account_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "date", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "integer", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "language": {"type": "text", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_group_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "text", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "text", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 9, "name": "network", "comment": null}, "language": {"type": "text", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "text", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "text", "index": 12, "name": "budget_association_status", "comment": null}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "text", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_keyword_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_search_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "text", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.microsoft_ads_search_performance_daily_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "text", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "integer", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_ad_group_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_advertiser_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "text", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "text", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "integer", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "integer", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "text", "index": 12, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_advertiser_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_advertiser_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "text", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_campaign_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "boolean", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "integer", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "bigint", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "text", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_keyword_report_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_pin_promotion_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "text", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "text", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_history_data"}, "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_pin_promotion_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.pinterest_ads_pin_promotion_report_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "text", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "text", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "text", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "integer", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 5, "name": "swipes", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_squad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_history_data"}, "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_squad_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_squad_id": {"type": "text", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "integer", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_squad_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data"}, "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_campaign_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "text", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "integer", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "text", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data"}, "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_creative_url_tag_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "text", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "text", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_url_tag_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "text", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "integer", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "integer", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "boolean", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data"}, "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_ad_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_report_hourly_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_adgroup_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "text", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "text", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "integer", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "integer", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "integer", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "integer", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "integer", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "text", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "integer", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "text", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "integer", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "text", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "integer", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "integer", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "text", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "text", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "integer", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "text", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "integer", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "text", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "text", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "text", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "integer", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "text", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "text", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "integer", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "text", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "integer", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "integer", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "integer", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "integer", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "integer", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "integer", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "integer", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "text", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "text", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "integer", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "integer", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "boolean", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "boolean", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "boolean", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "integer", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "integer", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "integer", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "integer", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "integer", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "integer", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "text", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "text", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "text", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "text", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "text", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "text", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "text", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "integer", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "text", "index": 64, "name": "age", "comment": null}, "languages": {"type": "text", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "text", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "text", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "text", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "text", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "integer", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "text", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data"}, "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_adgroup_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data"}, "seed.ad_reporting_integration_tests.tiktok_advertiser_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_advertiser_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "address": {"type": "text", "index": 3, "name": "address", "comment": null}, "company": {"type": "text", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "integer", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "email": {"type": "text", "index": 9, "name": "email", "comment": null}, "industry": {"type": "integer", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "integer", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "integer", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "integer", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "integer", "index": 14, "name": "reason", "comment": null}, "role": {"type": "text", "index": 15, "name": "role", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "integer", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "text", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "double precision", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "text", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "text", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "text", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "text", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "text", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "integer", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "text", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "text", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "text", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "boolean", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "integer", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "text", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "text", "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": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data"}, "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_campaign_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_report_hourly_data"}, "seed.ad_reporting_integration_tests.twitter_account_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "integer", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "integer", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "text", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "integer", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "character varying", "index": 9, "name": "name", "comment": null}, "salt": {"type": "integer", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "text", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "text", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data"}, "seed.ad_reporting_integration_tests.twitter_account_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_account_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "placement": {"type": "text", "index": 3, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}, "engagements": {"type": "integer", "index": 5, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 6, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 8, "name": "likes", "comment": null}, "replies": {"type": "integer", "index": 9, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 10, "name": "retweets", "comment": null}, "unfollows": {"type": "integer", "index": 11, "name": "unfollows", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "integer", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "integer", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "text", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "integer", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "text", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "text", "index": 12, "name": "id", "comment": null}, "name": {"type": "text", "index": 13, "name": "name", "comment": null}, "servable": {"type": "boolean", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "boolean", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "text", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data"}, "seed.ad_reporting_integration_tests.twitter_campaign_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_line_item_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_domain": {"type": "text", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "boolean", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "integer", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "text", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "text", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "text", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "text", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "boolean", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "integer", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 15, "name": "id", "comment": null}, "name": {"type": "text", "index": 16, "name": "name", "comment": null}, "objective": {"type": "text", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "text", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "integer", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "integer", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_history_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_line_item_keywords_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "segment": {"type": "text", "index": 5, "name": "segment", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 7, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 8, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 9, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 10, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 11, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 13, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 16, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 17, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 18, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 21, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 22, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 25, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 26, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 27, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 30, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 31, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 32, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 35, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 36, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 37, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 40, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 41, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 42, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 45, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 47, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 50, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 51, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 54, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 56, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 59, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 60, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 61, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 62, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 63, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 64, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 65, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 70, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 80, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 85, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 90, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 94, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 99, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 100, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 101, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 106, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 107, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 108, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 111, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 112, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 113, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 165, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 167, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 170, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 171, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 172, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 175, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 176, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 177, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 180, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 181, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 182, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 183, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 184, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 210, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 211, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 212, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 213, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 214, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 229, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 230, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 231, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 232, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 233, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 234, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 235, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 236, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 237, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 238, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 239, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 240, "name": "url_clicks", "comment": null}, "video_15_s_views": {"type": "integer", "index": 241, "name": "video_15_s_views", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 242, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 243, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 244, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 245, "name": "video_cta_clicks", "comment": null}, "video_total_views": {"type": "integer", "index": 246, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 247, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 248, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 249, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 250, "name": "video_views_75", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data"}, "seed.ad_reporting_integration_tests.twitter_line_item_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_line_item_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_line_item_report_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_promoted_tweet_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "text", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data"}, "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_promoted_tweet_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "timestamp without time zone", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "integer", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "text", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_tweet_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "integer", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "integer", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "integer", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "integer", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "boolean", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "integer", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "text", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "integer", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "integer", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "integer", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "integer", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "integer", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "text", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "integer", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "integer", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "boolean", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "text", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "boolean", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "text", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "integer", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "integer", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data"}, "seed.ad_reporting_integration_tests.twitter_tweet_url_data": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_tweet_url_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "text", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "text", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "indices": {"type": "text", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "bigint", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "text", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data"}, "model.ad_reporting.ad_reporting__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_ad_reporting", "name": "ad_reporting__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "clicks": {"type": "bigint", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 7, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, "model.ad_reporting.ad_reporting__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_ad_reporting", "name": "ad_reporting__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "clicks": {"type": "bigint", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 11, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, "model.ad_reporting.ad_reporting__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_ad_reporting", "name": "ad_reporting__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "text", "index": 9, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 10, "name": "ad_name", "comment": null}, "clicks": {"type": "bigint", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, "model.ad_reporting.ad_reporting__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_ad_reporting", "name": "ad_reporting__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "clicks": {"type": "bigint", "index": 7, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 9, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, "model.ad_reporting.ad_reporting__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_ad_reporting", "name": "ad_reporting__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "text", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 10, "name": "keyword_text", "comment": null}, "keyword_match_type": {"type": "text", "index": 11, "name": "keyword_match_type", "comment": null}, "clicks": {"type": "bigint", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 14, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, "model.ad_reporting.ad_reporting__search_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_ad_reporting", "name": "ad_reporting__search_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "text", "index": 9, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 10, "name": "keyword_text", "comment": null}, "search_query": {"type": "text", "index": 11, "name": "search_query", "comment": null}, "search_match_type": {"type": "text", "index": 12, "name": "search_match_type", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, "model.ad_reporting.ad_reporting__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_ad_reporting", "name": "ad_reporting__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "platform": {"type": "text", "index": 2, "name": "platform", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "base_url": {"type": "text", "index": 9, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 10, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 11, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 12, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 13, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 14, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 15, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 16, "name": "utm_term", "comment": null}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 19, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, "model.amazon_ads.amazon_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads", "name": "amazon_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 4, "name": "country_code", "comment": null}, "profile_id": {"type": "integer", "index": 5, "name": "profile_id", "comment": null}, "cost": {"type": "double precision", "index": 6, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 7, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 8, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__account_report"}, "model.amazon_ads.amazon_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads", "name": "amazon_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 4, "name": "country_code", "comment": null}, "profile_id": {"type": "integer", "index": 5, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 6, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "integer", "index": 7, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 8, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "integer", "index": 9, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 10, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 11, "name": "ad_group_id", "comment": null}, "serving_status": {"type": "text", "index": 12, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 13, "name": "state", "comment": null}, "default_bid": {"type": "double precision", "index": 14, "name": "default_bid", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 15, "name": "campaign_bidding_strategy", "comment": null}, "cost": {"type": "double precision", "index": 16, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__ad_group_report"}, "model.amazon_ads.amazon_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads", "name": "amazon_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 4, "name": "country_code", "comment": null}, "profile_id": {"type": "integer", "index": 5, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 6, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "integer", "index": 7, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 8, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "integer", "index": 9, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 10, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 11, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 12, "name": "ad_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}, "advertised_asin": {"type": "text", "index": 15, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "text", "index": 16, "name": "advertised_sku", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 17, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 18, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 19, "name": "campaign_budget_type", "comment": null}, "cost": {"type": "double precision", "index": 20, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 22, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__ad_report"}, "model.amazon_ads.amazon_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads", "name": "amazon_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 4, "name": "country_code", "comment": null}, "profile_id": {"type": "integer", "index": 5, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 6, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "integer", "index": 7, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 8, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "integer", "index": 9, "name": "campaign_id", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 10, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 11, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 12, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 13, "name": "campaign_budget_type", "comment": null}, "cost": {"type": "double precision", "index": 14, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__campaign_report"}, "model.amazon_ads.amazon_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads", "name": "amazon_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 4, "name": "country_code", "comment": null}, "profile_id": {"type": "integer", "index": 5, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 6, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "integer", "index": 7, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 8, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "integer", "index": 9, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 10, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 11, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "integer", "index": 12, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 13, "name": "keyword_text", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 15, "name": "state", "comment": null}, "keyword_bid": {"type": "double precision", "index": 16, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "text", "index": 17, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 18, "name": "match_type", "comment": null}, "cost": {"type": "double precision", "index": 19, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 21, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__keyword_report"}, "model.amazon_ads.amazon_ads__portfolio_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads", "name": "amazon_ads__portfolio_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 4, "name": "country_code", "comment": null}, "profile_id": {"type": "integer", "index": 5, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 6, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "integer", "index": 7, "name": "portfolio_id", "comment": null}, "budget_amount": {"type": "integer", "index": 8, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 9, "name": "budget_currency_code", "comment": null}, "budget_start_date": {"type": "integer", "index": 10, "name": "budget_start_date", "comment": null}, "budget_end_date": {"type": "integer", "index": 11, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 12, "name": "budget_policy", "comment": null}, "in_budget": {"type": "boolean", "index": 13, "name": "in_budget", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 15, "name": "state", "comment": null}, "cost": {"type": "double precision", "index": 16, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__portfolio_report"}, "model.amazon_ads.amazon_ads__search_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads", "name": "amazon_ads__search_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "country_code": {"type": "text", "index": 4, "name": "country_code", "comment": null}, "profile_id": {"type": "integer", "index": 5, "name": "profile_id", "comment": null}, "portfolio_name": {"type": "text", "index": 6, "name": "portfolio_name", "comment": null}, "portfolio_id": {"type": "integer", "index": 7, "name": "portfolio_id", "comment": null}, "campaign_name": {"type": "text", "index": 8, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "integer", "index": 9, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 10, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 11, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "integer", "index": 12, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 13, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 14, "name": "match_type", "comment": null}, "serving_status": {"type": "text", "index": 15, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 16, "name": "state", "comment": null}, "search_term": {"type": "text", "index": 17, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 18, "name": "targeting", "comment": null}, "cost": {"type": "double precision", "index": 19, "name": "cost", "comment": null}, "clicks": {"type": "bigint", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 21, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.amazon_ads__search_report"}, "model.amazon_ads.int_amazon_ads__portfolio_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads", "name": "int_amazon_ads__portfolio_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"budget_amount": {"type": "integer", "index": 1, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 2, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 3, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 4, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 5, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 6, "name": "creation_date", "comment": null}, "portfolio_id": {"type": "integer", "index": 7, "name": "portfolio_id", "comment": null}, "in_budget": {"type": "boolean", "index": 8, "name": "in_budget", "comment": null}, "last_updated_date": {"type": "text", "index": 9, "name": "last_updated_date", "comment": null}, "portfolio_name": {"type": "text", "index": 10, "name": "portfolio_name", "comment": null}, "profile_id": {"type": "integer", "index": 11, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 12, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 13, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 2, "name": "creation_date", "comment": null}, "default_bid": {"type": "double precision", "index": 3, "name": "default_bid", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "last_updated_date": {"type": "text", "index": 5, "name": "last_updated_date", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "serving_status": {"type": "text", "index": 7, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "double precision", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__ad_group_level_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 2, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 4, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 5, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__ad_group_level_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 6, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 7, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 8, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__advertised_product_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "advertised_asin": {"type": "text", "index": 3, "name": "advertised_asin", "comment": null}, "advertised_sku": {"type": "text", "index": 4, "name": "advertised_sku", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 5, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 6, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 7, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "integer", "index": 8, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 11, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report"}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__advertised_product_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 9, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 12, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 13, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bidding_strategy": {"type": "text", "index": 1, "name": "bidding_strategy", "comment": null}, "campaign_type": {"type": "text", "index": 2, "name": "campaign_type", "comment": null}, "creation_date": {"type": "text", "index": 3, "name": "creation_date", "comment": null}, "daily_budget": {"type": "integer", "index": 4, "name": "daily_budget", "comment": null}, "end_date": {"type": "integer", "index": 5, "name": "end_date", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "last_updated_date": {"type": "text", "index": 7, "name": "last_updated_date", "comment": null}, "campaign_name": {"type": "text", "index": 8, "name": "campaign_name", "comment": null}, "placement": {"type": "integer", "index": 9, "name": "placement", "comment": null}, "portfolio_id": {"type": "integer", "index": 10, "name": "portfolio_id", "comment": null}, "premium_bid_adjustment": {"type": "boolean", "index": 11, "name": "premium_bid_adjustment", "comment": null}, "profile_id": {"type": "integer", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "start_date": {"type": "date", "index": 14, "name": "start_date", "comment": null}, "state": {"type": "text", "index": 15, "name": "state", "comment": null}, "targeting_type": {"type": "text", "index": 16, "name": "targeting_type", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 17, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history"}, "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "text", "index": 4, "name": "bidding_strategy", "comment": null}, "campaign_type": {"type": "text", "index": 5, "name": "campaign_type", "comment": null}, "creation_date": {"type": "text", "index": 6, "name": "creation_date", "comment": null}, "daily_budget": {"type": "integer", "index": 7, "name": "daily_budget", "comment": null}, "end_date": {"type": "integer", "index": 8, "name": "end_date", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "placement": {"type": "integer", "index": 10, "name": "placement", "comment": null}, "portfolio_id": {"type": "integer", "index": 11, "name": "portfolio_id", "comment": null}, "premium_bid_adjustment": {"type": "boolean", "index": 12, "name": "premium_bid_adjustment", "comment": null}, "profile_id": {"type": "integer", "index": 13, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_date": {"type": "date", "index": 15, "name": "start_date", "comment": null}, "state": {"type": "text", "index": 16, "name": "state", "comment": null}, "targeting_type": {"type": "text", "index": 17, "name": "targeting_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.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__campaign_level_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_applicable_budget_rule_id": {"type": "integer", "index": 1, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "integer", "index": 2, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 3, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 4, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 5, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 6, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "integer", "index": 7, "name": "campaign_id", "comment": null}, "campaign_rule_based_budget_amount": {"type": "double precision", "index": 8, "name": "campaign_rule_based_budget_amount", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 11, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report"}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__campaign_level_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "integer", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "integer", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 10, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 12, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 13, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__keyword_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "bid": {"type": "double precision", "index": 2, "name": "bid", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 4, "name": "creation_date", "comment": null}, "keyword_id": {"type": "integer", "index": 5, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 6, "name": "keyword_text", "comment": null}, "last_updated_date": {"type": "text", "index": 7, "name": "last_updated_date", "comment": null}, "match_type": {"type": "text", "index": 8, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "integer", "index": 9, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "text", "index": 10, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 11, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history"}, "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__keyword_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "double precision", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "text", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "integer", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__portfolio_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"budget_amount": {"type": "integer", "index": 1, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 2, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 3, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 4, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 5, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 6, "name": "creation_date", "comment": null}, "portfolio_id": {"type": "integer", "index": 7, "name": "portfolio_id", "comment": null}, "in_budget": {"type": "boolean", "index": 8, "name": "in_budget", "comment": null}, "last_updated_date": {"type": "text", "index": 9, "name": "last_updated_date", "comment": null}, "portfolio_name": {"type": "text", "index": 10, "name": "portfolio_name", "comment": null}, "profile_id": {"type": "integer", "index": 11, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 12, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 13, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 14, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history"}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__portfolio_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "boolean", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "integer", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__product_ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "asin": {"type": "text", "index": 2, "name": "asin", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 4, "name": "creation_date", "comment": null}, "ad_id": {"type": "integer", "index": 5, "name": "ad_id", "comment": null}, "last_updated_date": {"type": "text", "index": 6, "name": "last_updated_date", "comment": null}, "serving_status": {"type": "text", "index": 7, "name": "serving_status", "comment": null}, "sku": {"type": "integer", "index": 8, "name": "sku", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history"}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__product_ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "text", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "integer", "index": 9, "name": "sku", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"}, "model.amazon_ads_source.stg_amazon_ads__profile": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"profile_id": {"type": "integer", "index": 1, "name": "profile_id", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "text", "index": 3, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "text", "index": 4, "name": "account_name", "comment": null}, "account_sub_type": {"type": "integer", "index": 5, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 6, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "boolean", "index": 7, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "text", "index": 8, "name": "country_code", "comment": null}, "currency_code": {"type": "text", "index": 9, "name": "currency_code", "comment": null}, "daily_budget": {"type": "integer", "index": 10, "name": "daily_budget", "comment": null}, "timezone": {"type": "text", "index": 11, "name": "timezone", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile"}, "model.amazon_ads_source.stg_amazon_ads__profile_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__profile_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "text", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "text", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "integer", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "boolean", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "text", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "integer", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "text", "index": 13, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp"}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__search_term_ad_keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_keyword_status": {"type": "text", "index": 2, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 3, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 4, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 5, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 8, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 9, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 11, "name": "keyword_bid", "comment": null}, "keyword_id": {"type": "integer", "index": 12, "name": "keyword_id", "comment": null}, "search_term": {"type": "text", "index": 13, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 14, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 11, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 13, "name": "keyword_bid", "comment": null}, "search_term": {"type": "text", "index": 14, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 15, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__targeting_keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_keyword_status": {"type": "text", "index": 2, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 3, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 4, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 5, "name": "campaign_budget_type", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 8, "name": "cost", "comment": null}, "date_day": {"type": "date", "index": 9, "name": "date_day", "comment": null}, "impressions": {"type": "integer", "index": 10, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 11, "name": "keyword_bid", "comment": null}, "keyword_id": {"type": "integer", "index": 12, "name": "keyword_id", "comment": null}, "keyword_type": {"type": "text", "index": 13, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 14, "name": "match_type", "comment": null}, "targeting": {"type": "text", "index": 15, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "name": "stg_amazon_ads__targeting_keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "text", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 10, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 12, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 13, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 15, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "text", "index": 16, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 17, "name": "match_type", "comment": null}, "targeting": {"type": "text", "index": 18, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads", "name": "apple_search_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "ad_group_status": {"type": "text", "index": 9, "name": "ad_group_status", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 10, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 11, "name": "end_at", "comment": null}, "taps": {"type": "bigint", "index": 12, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 13, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 14, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 15, "name": "total_downloads", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report"}, "model.apple_search_ads.apple_search_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads", "name": "apple_search_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "integer", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "ad_status": {"type": "text", "index": 11, "name": "ad_status", "comment": null}, "taps": {"type": "bigint", "index": 12, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 13, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 14, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 15, "name": "total_downloads", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, "model.apple_search_ads.apple_search_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads", "name": "apple_search_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "campaign_status": {"type": "text", "index": 7, "name": "campaign_status", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 8, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 9, "name": "end_at", "comment": null}, "taps": {"type": "bigint", "index": 10, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 11, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 12, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 13, "name": "total_downloads", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, "model.apple_search_ads.apple_search_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads", "name": "apple_search_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "integer", "index": 8, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 10, "name": "match_type", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "keyword_status": {"type": "text", "index": 12, "name": "keyword_status", "comment": null}, "taps": {"type": "bigint", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 16, "name": "total_downloads", "comment": null}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, "model.apple_search_ads.apple_search_ads__organization_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads", "name": "apple_search_ads__organization_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 3, "name": "organization_name", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "taps": {"type": "bigint", "index": 5, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 7, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 8, "name": "total_downloads", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 10, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, "model.apple_search_ads.apple_search_ads__search_term_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads", "name": "apple_search_ads__search_term_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "organization_name": {"type": "text", "index": 3, "name": "organization_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "keyword_id": {"type": "integer", "index": 8, "name": "keyword_id", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}, "search_term_text": {"type": "text", "index": 10, "name": "search_term_text", "comment": null}, "match_type": {"type": "text", "index": 11, "name": "match_type", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "taps": {"type": "bigint", "index": 13, "name": "taps", "comment": null}, "new_downloads": {"type": "bigint", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "bigint", "index": 15, "name": "redownloads", "comment": null}, "total_downloads": {"type": "bigint", "index": 16, "name": "total_downloads", "comment": null}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"modified_at": {"type": "timestamp without time zone", "index": 1, "name": "modified_at", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 4, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "text", "index": 6, "name": "ad_group_status", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 7, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 8, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "boolean", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "integer", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "integer", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "integer", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "integer", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "integer", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "integer", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "integer", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 8, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"created_at": {"type": "timestamp without time zone", "index": 1, "name": "created_at", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 2, "name": "modified_at", "comment": null}, "organization_id": {"type": "integer", "index": 3, "name": "organization_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 6, "name": "ad_name", "comment": null}, "ad_id": {"type": "integer", "index": 7, "name": "ad_id", "comment": null}, "ad_status": {"type": "text", "index": 8, "name": "ad_status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creation_time": {"type": "timestamp without time zone", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "integer", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "integer", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "text", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 4, "name": "ad_id", "comment": null}, "impressions": {"type": "integer", "index": 5, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 8, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 9, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 10, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report"}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"modified_at": {"type": "timestamp without time zone", "index": 1, "name": "modified_at", "comment": null}, "organization_id": {"type": "integer", "index": 2, "name": "organization_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "text", "index": 5, "name": "campaign_status", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 7, "name": "end_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.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_2_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "integer", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "text", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "text", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "integer", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "text", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "integer", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "integer", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "integer", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "integer", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "integer", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "text", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "text", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 8, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report"}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"modified_at": {"type": "timestamp without time zone", "index": 1, "name": "modified_at", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "bid_amount": {"type": "double precision", "index": 5, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 6, "name": "bid_currency", "comment": null}, "match_type": {"type": "text", "index": 7, "name": "match_type", "comment": null}, "keyword_status": {"type": "text", "index": 8, "name": "keyword_status", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "double precision", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "boolean", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "text", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "text": {"type": "text", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "keyword_id": {"type": "integer", "index": 2, "name": "keyword_id", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 4, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "new_downloads": {"type": "integer", "index": 6, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 7, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 8, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report"}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "integer", "index": 1, "name": "organization_id", "comment": null}, "currency": {"type": "text", "index": 2, "name": "currency", "comment": null}, "payment_model": {"type": "text", "index": 3, "name": "payment_model", "comment": null}, "organization_name": {"type": "text", "index": 4, "name": "organization_name", "comment": null}, "time_zone": {"type": "text", "index": 5, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization"}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__organization_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "currency": {"type": "text", "index": 2, "name": "currency", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "text", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "text", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__search_term_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "_fivetran_id": {"type": "text", "index": 2, "name": "_fivetran_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "bid_amount": {"type": "double precision", "index": 6, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 7, "name": "bid_currency", "comment": null}, "keyword_text": {"type": "text", "index": 8, "name": "keyword_text", "comment": null}, "keyword_display_status": {"type": "text", "index": 9, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "integer", "index": 10, "name": "keyword_id", "comment": null}, "spend": {"type": "double precision", "index": 11, "name": "spend", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "match_type": {"type": "text", "index": 13, "name": "match_type", "comment": null}, "search_term_source": {"type": "text", "index": 14, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "text", "index": 15, "name": "search_term_text", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}, "new_downloads": {"type": "integer", "index": 18, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 19, "name": "redownloads", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report"}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_apple_search_ads_source", "name": "stg_apple_search_ads__search_term_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "boolean", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "double precision", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "text", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "boolean", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "text", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "text", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "integer", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "integer", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "text", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "integer", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "text", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "text", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp"}, "model.facebook_ads.facebook_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads", "name": "facebook_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_status": {"type": "text", "index": 4, "name": "account_status", "comment": null}, "business_country_code": {"type": "text", "index": 5, "name": "business_country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "timezone_name": {"type": "text", "index": 8, "name": "timezone_name", "comment": null}, "clicks": {"type": "bigint", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 11, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, "model.facebook_ads.facebook_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads", "name": "facebook_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "bigint", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "text", "index": 7, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "clicks": {"type": "bigint", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 11, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 12, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, "model.facebook_ads.facebook_ads__ad_set_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads", "name": "facebook_ads__ad_set_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "bigint", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "text", "index": 7, "name": "ad_set_name", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 8, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 9, "name": "end_at", "comment": null}, "bid_strategy": {"type": "text", "index": 10, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "integer", "index": 11, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "integer", "index": 12, "name": "budget_remaining", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, "model.facebook_ads.facebook_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads", "name": "facebook_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 7, "name": "end_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "daily_budget": {"type": "integer", "index": 9, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "integer", "index": 10, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "double precision", "index": 11, "name": "budget_remaining", "comment": null}, "clicks": {"type": "bigint", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 14, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, "model.facebook_ads.facebook_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads", "name": "facebook_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_set_id": {"type": "bigint", "index": 6, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "text", "index": 7, "name": "ad_set_name", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "creative_id": {"type": "bigint", "index": 10, "name": "creative_id", "comment": null}, "creative_name": {"type": "text", "index": 11, "name": "creative_name", "comment": null}, "base_url": {"type": "text", "index": 12, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 13, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 14, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 15, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 16, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 17, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 18, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 19, "name": "utm_term", "comment": null}, "clicks": {"type": "bigint", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 21, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 22, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, "model.facebook_ads.facebook_ads__url_tags": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads", "name": "facebook_ads__url_tags", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "bigint", "index": 2, "name": "creative_id", "comment": null}, "key": {"type": "text", "index": 3, "name": "key", "comment": null}, "value": {"type": "text", "index": 4, "name": "value", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, "model.facebook_ads.int_facebook_ads__creative_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_facebook_ads", "name": "int_facebook_ads__creative_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "creative_id": {"type": "bigint", "index": 2, "name": "creative_id", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "creative_name": {"type": "text", "index": 4, "name": "creative_name", "comment": null}, "url": {"type": "character varying", "index": 5, "name": "url", "comment": null}, "base_url": {"type": "text", "index": 6, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 7, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 8, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 9, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 10, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 11, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 12, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "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_source.stg_facebook_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_name": {"type": "character varying", "index": 3, "name": "account_name", "comment": null}, "account_status": {"type": "text", "index": 4, "name": "account_status", "comment": null}, "business_country_code": {"type": "text", "index": 5, "name": "business_country_code", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "timezone_name": {"type": "text", "index": 8, "name": "timezone_name", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"updated_at": {"type": "timestamp without time zone", "index": 1, "name": "updated_at", "comment": null}, "ad_id": {"type": "bigint", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 3, "name": "ad_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "ad_set_id": {"type": "bigint", "index": 5, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "creative_id": {"type": "bigint", "index": 7, "name": "creative_id", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "bigint", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "bigint", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__ad_set_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"updated_at": {"type": "timestamp without time zone", "index": 1, "name": "updated_at", "comment": null}, "ad_set_id": {"type": "bigint", "index": 2, "name": "ad_set_id", "comment": null}, "ad_set_name": {"type": "text", "index": 3, "name": "ad_set_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 7, "name": "end_at", "comment": null}, "bid_strategy": {"type": "text", "index": 8, "name": "bid_strategy", "comment": null}, "daily_budget": {"type": "integer", "index": 9, "name": "daily_budget", "comment": null}, "budget_remaining": {"type": "integer", "index": 10, "name": "budget_remaining", "comment": null}, "status": {"type": "text", "index": 11, "name": "status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history"}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__ad_set_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__basic_ad", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "bigint", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 2, "name": "ad_name", "comment": null}, "ad_set_name": {"type": "text", "index": 3, "name": "ad_set_name", "comment": null}, "date_day": {"type": "date", "index": 4, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 5, "name": "account_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "integer", "index": 9, "name": "reach", "comment": null}, "frequency": {"type": "double precision", "index": 10, "name": "frequency", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__basic_ad_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "bigint", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "integer", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp"}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"updated_at": {"type": "timestamp without time zone", "index": 1, "name": "updated_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "start_at": {"type": "timestamp without time zone", "index": 6, "name": "start_at", "comment": null}, "end_at": {"type": "timestamp without time zone", "index": 7, "name": "end_at", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "daily_budget": {"type": "integer", "index": 9, "name": "daily_budget", "comment": null}, "lifetime_budget": {"type": "integer", "index": 10, "name": "lifetime_budget", "comment": null}, "budget_remaining": {"type": "double precision", "index": 11, "name": "budget_remaining", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.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_2_facebook_ads_source", "name": "stg_facebook_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__creative_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "creative_id": {"type": "bigint", "index": 3, "name": "creative_id", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "creative_name": {"type": "text", "index": 5, "name": "creative_name", "comment": null}, "page_link": {"type": "character varying", "index": 6, "name": "page_link", "comment": null}, "template_page_link": {"type": "character varying", "index": 7, "name": "template_page_link", "comment": null}, "url_tags": {"type": "text", "index": 8, "name": "url_tags", "comment": null}, "asset_feed_spec_link_urls": {"type": "text", "index": 9, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "text", "index": 10, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "text", "index": 11, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "text", "index": 12, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "text", "index": 13, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "text", "index": 14, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "text", "index": 15, "name": "template_app_link_spec_ios", "comment": null}, "template_app_link_spec_ipad": {"type": "text", "index": 16, "name": "template_app_link_spec_ipad", "comment": null}, "template_app_link_spec_android": {"type": "text", "index": 17, "name": "template_app_link_spec_android", "comment": null}, "template_app_link_spec_iphone": {"type": "text", "index": 18, "name": "template_app_link_spec_iphone", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_facebook_ads_source", "name": "stg_facebook_ads__creative_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"page_link": {"type": "character varying", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "character varying", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "bigint", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "text", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "text", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "text", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "text", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "text", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "text", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "text", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "text", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "text", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"}, "model.google_ads.google_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads", "name": "google_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 5, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "integer", "index": 6, "name": "time_zone", "comment": null}, "spend": {"type": "numeric", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__account_report"}, "model.google_ads.google_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads", "name": "google_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_status": {"type": "text", "index": 8, "name": "ad_group_status", "comment": null}, "ad_group_type": {"type": "text", "index": 9, "name": "ad_group_type", "comment": null}, "spend": {"type": "numeric", "index": 10, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "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.google_ads__ad_group_report"}, "model.google_ads.google_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads", "name": "google_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "integer", "index": 9, "name": "ad_name", "comment": null}, "ad_status": {"type": "text", "index": 10, "name": "ad_status", "comment": null}, "ad_type": {"type": "integer", "index": 11, "name": "ad_type", "comment": null}, "display_url": {"type": "integer", "index": 12, "name": "display_url", "comment": null}, "source_final_urls": {"type": "text", "index": 13, "name": "source_final_urls", "comment": null}, "spend": {"type": "numeric", "index": 14, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__ad_report"}, "model.google_ads.google_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads", "name": "google_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 6, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 7, "name": "advertising_channel_subtype", "comment": null}, "status": {"type": "text", "index": 8, "name": "status", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 11, "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.google_ads__campaign_report"}, "model.google_ads.google_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads", "name": "google_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "bigint", "index": 8, "name": "criterion_id", "comment": null}, "type": {"type": "text", "index": 9, "name": "type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 11, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 12, "name": "keyword_text", "comment": null}, "spend": {"type": "numeric", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 15, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__keyword_report"}, "model.google_ads.google_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads", "name": "google_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "integer", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "text", "index": 7, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "base_url": {"type": "text", "index": 9, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 10, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 11, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 12, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 13, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 14, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 15, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 16, "name": "utm_term", "comment": null}, "spend": {"type": "numeric", "index": 17, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads.google_ads__url_report"}, "model.google_ads_source.stg_google_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "currency_code": {"type": "text", "index": 3, "name": "currency_code", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "time_zone": {"type": "integer", "index": 5, "name": "time_zone", "comment": null}, "account_name": {"type": "integer", "index": 6, "name": "account_name", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "integer", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "boolean", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "boolean", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "integer", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "double precision", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "text", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "boolean", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "text", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "integer", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "integer", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp"}, "model.google_ads_source.stg_google_ads__account_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__account_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_network_type": {"type": "text", "index": 3, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 4, "name": "device", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 6, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__account_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_group_criterion_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"criterion_id": {"type": "bigint", "index": 1, "name": "criterion_id", "comment": null}, "ad_group_id": {"type": "text", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "bigint", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 7, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 8, "name": "keyword_text", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history"}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_group_criterion_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "bigint", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "text", "index": 1, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "ad_group_type": {"type": "text", "index": 3, "name": "ad_group_type", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 7, "name": "ad_group_status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history"}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_group_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "text", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "device": {"type": "text", "index": 5, "name": "device", "comment": null}, "ad_network_type": {"type": "text", "index": 6, "name": "ad_network_type", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats"}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_group_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "text", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 18, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp"}, "model.google_ads_source.stg_google_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "text", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "integer", "index": 3, "name": "ad_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "ad_type": {"type": "integer", "index": 5, "name": "ad_type", "comment": null}, "ad_status": {"type": "text", "index": 6, "name": "ad_status", "comment": null}, "display_url": {"type": "integer", "index": 7, "name": "display_url", "comment": null}, "source_final_urls": {"type": "text", "index": 8, "name": "source_final_urls", "comment": null}, "final_urls": {"type": "text", "index": 9, "name": "final_urls", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}, "final_url": {"type": "text", "index": 11, "name": "final_url", "comment": null}, "base_url": {"type": "text", "index": 12, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 13, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 14, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 15, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 16, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 17, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 18, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 19, "name": "utm_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "name": {"type": "integer", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "integer", "index": 5, "name": "type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "integer", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "text", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp"}, "model.google_ads_source.stg_google_ads__ad_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "ad_group_id": {"type": "text", "index": 3, "name": "ad_group_id", "comment": null}, "keyword_ad_group_criterion": {"type": "text", "index": 4, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "text", "index": 5, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 6, "name": "device", "comment": null}, "ad_id": {"type": "bigint", "index": 7, "name": "ad_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 10, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 11, "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"}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__ad_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "text", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "text", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "text", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "integer", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp"}, "model.google_ads_source.stg_google_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "bigint", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "date", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "date", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "text", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "integer", "index": 11, "name": "tracking_url_template", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "bigint", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "date", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "date", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "text", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "integer", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp"}, "model.google_ads_source.stg_google_ads__campaign_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__campaign_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "bigint", "index": 1, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_network_type": {"type": "text", "index": 4, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 5, "name": "device", "comment": null}, "clicks": {"type": "integer", "index": 6, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 7, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 8, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__campaign_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "text", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 16, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp"}, "model.google_ads_source.stg_google_ads__keyword_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__keyword_stats", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"keyword_id": {"type": "text", "index": 1, "name": "keyword_id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "date_day": {"type": "date", "index": 3, "name": "date_day", "comment": null}, "ad_group_id": {"type": "text", "index": 4, "name": "ad_group_id", "comment": null}, "criterion_id": {"type": "bigint", "index": 5, "name": "criterion_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_google_ads_source", "name": "stg_google_ads__keyword_stats_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "text", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "bigint", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "text", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp"}, "model.linkedin.linkedin_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_linkedin_ads", "name": "linkedin_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 3, "name": "account_name", "comment": null}, "version_tag": {"type": "numeric", "index": 4, "name": "version_tag", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "clicks": {"type": "bigint", "index": 10, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 11, "name": "impressions", "comment": null}, "cost": {"type": "double precision", "index": 12, "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.linkedin_ads__account_report"}, "model.linkedin.linkedin_ads__campaign_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_linkedin_ads", "name": "linkedin_ads__campaign_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "campaign_group_id": {"type": "integer", "index": 2, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 3, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 5, "name": "account_name", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "is_backfilled": {"type": "boolean", "index": 8, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "timestamp without time zone", "index": 9, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "timestamp without time zone", "index": 10, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 11, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "cost": {"type": "double precision", "index": 15, "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.linkedin_ads__campaign_group_report"}, "model.linkedin.linkedin_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_linkedin_ads", "name": "linkedin_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "version_tag": {"type": "numeric", "index": 4, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "integer", "index": 5, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 6, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 7, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 8, "name": "account_name", "comment": null}, "campaign_status": {"type": "text", "index": 9, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "text", "index": 10, "name": "campaign_group_status", "comment": null}, "type": {"type": "text", "index": 11, "name": "type", "comment": null}, "cost_type": {"type": "text", "index": 12, "name": "cost_type", "comment": null}, "creative_selection": {"type": "text", "index": 13, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "double precision", "index": 14, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "text", "index": 15, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 16, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 17, "name": "unit_cost_currency_code", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "format": {"type": "text", "index": 19, "name": "format", "comment": null}, "locale_country": {"type": "text", "index": 20, "name": "locale_country", "comment": null}, "locale_language": {"type": "text", "index": 21, "name": "locale_language", "comment": null}, "objective_type": {"type": "text", "index": 22, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "text", "index": 23, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "boolean", "index": 24, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "boolean", "index": 25, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "timestamp without time zone", "index": 26, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "timestamp without time zone", "index": 27, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 28, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 29, "name": "created_at", "comment": null}, "clicks": {"type": "bigint", "index": 30, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 31, "name": "impressions", "comment": null}, "cost": {"type": "double precision", "index": 32, "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.linkedin_ads__campaign_report"}, "model.linkedin.linkedin_ads__creative_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_linkedin_ads", "name": "linkedin_ads__creative_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "creative_id": {"type": "integer", "index": 2, "name": "creative_id", "comment": null}, "version_tag": {"type": "numeric", "index": 3, "name": "version_tag", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "integer", "index": 6, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 7, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 8, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 9, "name": "account_name", "comment": null}, "type": {"type": "text", "index": 10, "name": "type", "comment": null}, "click_uri": {"type": "text", "index": 11, "name": "click_uri", "comment": null}, "creative_status": {"type": "text", "index": 12, "name": "creative_status", "comment": null}, "campaign_status": {"type": "text", "index": 13, "name": "campaign_status", "comment": null}, "campaign_group_status": {"type": "text", "index": 14, "name": "campaign_group_status", "comment": null}, "call_to_action_label_type": {"type": "text", "index": 15, "name": "call_to_action_label_type", "comment": null}, "currency": {"type": "text", "index": 16, "name": "currency", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 17, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 18, "name": "created_at", "comment": null}, "clicks": {"type": "bigint", "index": 19, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 20, "name": "impressions", "comment": null}, "cost": {"type": "bigint", "index": 21, "name": "cost", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, "model.linkedin.linkedin_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_linkedin_ads", "name": "linkedin_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "click_uri": {"type": "text", "index": 2, "name": "click_uri", "comment": null}, "base_url": {"type": "text", "index": 3, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 4, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 5, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 6, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 7, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 8, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 9, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 10, "name": "utm_term", "comment": null}, "creative_id": {"type": "integer", "index": 11, "name": "creative_id", "comment": null}, "version_tag": {"type": "numeric", "index": 12, "name": "version_tag", "comment": null}, "campaign_id": {"type": "integer", "index": 13, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 14, "name": "campaign_name", "comment": null}, "campaign_group_id": {"type": "integer", "index": 15, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 16, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "integer", "index": 17, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 18, "name": "account_name", "comment": null}, "currency": {"type": "text", "index": 19, "name": "currency", "comment": null}, "clicks": {"type": "bigint", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 21, "name": "impressions", "comment": null}, "cost": {"type": "bigint", "index": 22, "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.linkedin_ads__url_report"}, "model.linkedin_source.stg_linkedin_ads__account_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "account_name": {"type": "text", "index": 2, "name": "account_name", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "version_tag": {"type": "numeric", "index": 4, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 7, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "is_latest_version": {"type": "boolean", "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__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost": {"type": "double precision", "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_2_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "integer", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "integer", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "integer", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "integer", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "double precision", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "double precision", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "integer", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp"}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_creative", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "creative_id": {"type": "integer", "index": 2, "name": "creative_id", "comment": null}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost": {"type": "integer", "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__ad_analytics_by_creative_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "integer", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_group_id": {"type": "integer", "index": 1, "name": "campaign_group_id", "comment": null}, "campaign_group_name": {"type": "text", "index": 2, "name": "campaign_group_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "is_backfilled": {"type": "boolean", "index": 5, "name": "is_backfilled", "comment": null}, "run_schedule_start_at": {"type": "timestamp without time zone", "index": 6, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "timestamp without time zone", "index": 7, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "is_latest_version": {"type": "boolean", "index": 10, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history"}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 2, "name": "campaign_name", "comment": null}, "version_tag": {"type": "numeric", "index": 3, "name": "version_tag", "comment": null}, "campaign_group_id": {"type": "integer", "index": 4, "name": "campaign_group_id", "comment": null}, "account_id": {"type": "bigint", "index": 5, "name": "account_id", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}, "cost_type": {"type": "text", "index": 8, "name": "cost_type", "comment": null}, "creative_selection": {"type": "text", "index": 9, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "double precision", "index": 10, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "text", "index": 11, "name": "daily_budget_currency_code", "comment": null}, "unit_cost_amount": {"type": "double precision", "index": 12, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "text", "index": 13, "name": "unit_cost_currency_code", "comment": null}, "format": {"type": "text", "index": 14, "name": "format", "comment": null}, "locale_country": {"type": "text", "index": 15, "name": "locale_country", "comment": null}, "locale_language": {"type": "text", "index": 16, "name": "locale_language", "comment": null}, "objective_type": {"type": "text", "index": 17, "name": "objective_type", "comment": null}, "optimization_target_type": {"type": "text", "index": 18, "name": "optimization_target_type", "comment": null}, "is_audience_expansion_enabled": {"type": "boolean", "index": 19, "name": "is_audience_expansion_enabled", "comment": null}, "is_offsite_delivery_enabled": {"type": "boolean", "index": 20, "name": "is_offsite_delivery_enabled", "comment": null}, "run_schedule_start_at": {"type": "timestamp without time zone", "index": 21, "name": "run_schedule_start_at", "comment": null}, "run_schedule_end_at": {"type": "timestamp without time zone", "index": 22, "name": "run_schedule_end_at", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 23, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 24, "name": "created_at", "comment": null}, "is_latest_version": {"type": "boolean", "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_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "integer", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "integer", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__creative_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "integer", "index": 1, "name": "creative_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "version_tag": {"type": "numeric", "index": 4, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "click_uri": {"type": "text", "index": 6, "name": "click_uri", "comment": null}, "call_to_action_label_type": {"type": "text", "index": 7, "name": "call_to_action_label_type", "comment": null}, "last_modified_at": {"type": "timestamp without time zone", "index": 8, "name": "last_modified_at", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "is_latest_version": {"type": "boolean", "index": 10, "name": "is_latest_version", "comment": null}, "base_url": {"type": "text", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 18, "name": "utm_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history"}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_linkedin_ads_source", "name": "stg_linkedin_ads__creative_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "text", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, "model.microsoft_ads.microsoft_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads", "name": "microsoft_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "account_timezone": {"type": "text", "index": 4, "name": "account_timezone", "comment": null}, "device_os": {"type": "text", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 7, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 8, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 11, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads", "name": "microsoft_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 7, "name": "ad_group_id", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 11, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 12, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 13, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 14, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, "model.microsoft_ads.microsoft_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads", "name": "microsoft_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 9, "name": "ad_id", "comment": null}, "ad_type": {"type": "text", "index": 10, "name": "ad_type", "comment": null}, "device_os": {"type": "text", "index": 11, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 12, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 13, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 14, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, "model.microsoft_ads.microsoft_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads", "name": "microsoft_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "campaign_type": {"type": "text", "index": 6, "name": "campaign_type", "comment": null}, "campaign_timezone": {"type": "text", "index": 7, "name": "campaign_timezone", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "device_os": {"type": "text", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 10, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 11, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 12, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, "model.microsoft_ads.microsoft_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads", "name": "microsoft_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 9, "name": "ad_id", "comment": null}, "keyword_name": {"type": "text", "index": 10, "name": "keyword_name", "comment": null}, "keyword_id": {"type": "bigint", "index": 11, "name": "keyword_id", "comment": null}, "match_type": {"type": "text", "index": 12, "name": "match_type", "comment": null}, "device_os": {"type": "text", "index": 13, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 14, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 15, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 16, "name": "currency_code", "comment": null}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 19, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, "model.microsoft_ads.microsoft_ads__search_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads", "name": "microsoft_ads__search_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 9, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 10, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "text", "index": 11, "name": "keyword_name", "comment": null}, "match_type": {"type": "text", "index": 12, "name": "match_type", "comment": null}, "search_query": {"type": "text", "index": 13, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 14, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 15, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 16, "name": "network", "comment": null}, "clicks": {"type": "bigint", "index": 17, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 18, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 19, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, "model.microsoft_ads.microsoft_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads", "name": "microsoft_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_name": {"type": "character varying", "index": 2, "name": "account_name", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 7, "name": "ad_group_id", "comment": null}, "ad_name": {"type": "text", "index": 8, "name": "ad_name", "comment": null}, "ad_id": {"type": "bigint", "index": 9, "name": "ad_id", "comment": null}, "device_os": {"type": "text", "index": 10, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 11, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 12, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 13, "name": "currency_code", "comment": null}, "base_url": {"type": "text", "index": 14, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 15, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 16, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 17, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 18, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 19, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 20, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 21, "name": "utm_term", "comment": null}, "clicks": {"type": "bigint", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 23, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 24, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__account_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "text", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "text", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__account_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "text", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "text", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 2, "name": "account_name", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 3, "name": "modified_at", "comment": null}, "time_zone": {"type": "text", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 6, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "text", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__ad_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 9, "name": "network", "comment": null}, "language": {"type": "text", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__ad_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 9, "name": "network", "comment": null}, "language": {"type": "text", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "language": {"type": "text", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "language": {"type": "text", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 2, "name": "ad_group_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 4, "name": "modified_at", "comment": null}, "start_date": {"type": "date", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "integer", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "date", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "integer", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "bigint", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 2, "name": "ad_name", "comment": null}, "final_url": {"type": "text", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 5, "name": "modified_at", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "text", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "text", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "text", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "text", "index": 12, "name": "budget_association_status", "comment": null}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "text", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "text", "index": 12, "name": "budget_association_status", "comment": null}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 2, "name": "campaign_name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 4, "name": "modified_at", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"keyword_id": {"type": "bigint", "index": 1, "name": "keyword_id", "comment": null}, "keyword_name": {"type": "text", "index": 2, "name": "keyword_name", "comment": null}, "modified_at": {"type": "timestamp without time zone", "index": 3, "name": "modified_at", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "text", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "text", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__search_daily_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "text", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_microsoft_ads_source", "name": "stg_microsoft_ads__search_daily_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "text", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp"}, "model.pinterest.pinterest_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest", "name": "pinterest_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 5, "name": "campaign_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 8, "name": "ad_group_id", "comment": null}, "created_at": {"type": "text", "index": 9, "name": "created_at", "comment": null}, "start_time": {"type": "text", "index": 10, "name": "start_time", "comment": null}, "end_time": {"type": "integer", "index": 11, "name": "end_time", "comment": null}, "ad_group_status": {"type": "text", "index": 12, "name": "ad_group_status", "comment": null}, "spend": {"type": "numeric", "index": 13, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 15, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, "model.pinterest.pinterest_ads__advertiser_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest", "name": "pinterest_ads__advertiser_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "advertiser_status": {"type": "text", "index": 4, "name": "advertiser_status", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "billing_type": {"type": "text", "index": 7, "name": "billing_type", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 9, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, "model.pinterest.pinterest_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest", "name": "pinterest_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "campaign_status": {"type": "text", "index": 6, "name": "campaign_status", "comment": null}, "spend": {"type": "numeric", "index": 7, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 9, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, "model.pinterest.pinterest_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest", "name": "pinterest_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "advertiser_name": {"type": "text", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "bigint", "index": 7, "name": "ad_group_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 8, "name": "keyword_id", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 10, "name": "parent_type", "comment": null}, "keyword_value": {"type": "text", "index": 11, "name": "keyword_value", "comment": null}, "spend": {"type": "numeric", "index": 12, "name": "spend", "comment": null}, "clicks": {"type": "bigint", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 14, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, "model.pinterest.pinterest_ads__pin_promotion_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest", "name": "pinterest_ads__pin_promotion_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 6, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "bigint", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 9, "name": "ad_group_status", "comment": null}, "creative_type": {"type": "text", "index": 10, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 11, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "text", "index": 12, "name": "pin_name", "comment": null}, "pin_status": {"type": "text", "index": 13, "name": "pin_status", "comment": null}, "destination_url": {"type": "text", "index": 14, "name": "destination_url", "comment": null}, "base_url": {"type": "text", "index": 15, "name": "base_url", "comment": null}, "clicks": {"type": "bigint", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 18, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, "model.pinterest.pinterest_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest", "name": "pinterest_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 6, "name": "campaign_status", "comment": null}, "ad_group_id": {"type": "bigint", "index": 7, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 8, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 9, "name": "ad_group_status", "comment": null}, "destination_url": {"type": "text", "index": 10, "name": "destination_url", "comment": null}, "creative_type": {"type": "text", "index": 11, "name": "creative_type", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 12, "name": "pin_promotion_id", "comment": null}, "pin_name": {"type": "text", "index": 13, "name": "pin_name", "comment": null}, "pin_status": {"type": "text", "index": 14, "name": "pin_status", "comment": null}, "base_url": {"type": "text", "index": 15, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 16, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 17, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 18, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 19, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 20, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 21, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 22, "name": "utm_term", "comment": null}, "clicks": {"type": "bigint", "index": 23, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 24, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 25, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest.pinterest_ads__url_report"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 2, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 3, "name": "ad_group_status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "end_time": {"type": "integer", "index": 7, "name": "end_time", "comment": null}, "start_time": {"type": "text", "index": 8, "name": "start_time", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "text", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "integer", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 4, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 5, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__ad_group_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__advertiser_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 2, "name": "advertiser_name", "comment": null}, "advertiser_status": {"type": "text", "index": 3, "name": "advertiser_status", "comment": null}, "billing_profile_status": {"type": "text", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "text", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency_code": {"type": "text", "index": 8, "name": "currency_code", "comment": null}, "merchant_id": {"type": "integer", "index": 9, "name": "merchant_id", "comment": null}, "owner_user_id": {"type": "integer", "index": 10, "name": "owner_user_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__advertiser_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "text", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "text", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "integer", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "integer", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "text", "index": 12, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__advertiser_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 5, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__advertiser_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "bigint", "index": 1, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 2, "name": "campaign_name", "comment": null}, "advertiser_id": {"type": "bigint", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_status": {"type": "text", "index": 4, "name": "campaign_status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "created_at": {"type": "text", "index": 6, "name": "created_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "text", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 3, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 4, "name": "campaign_status", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__keyword_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"keyword_id": {"type": "bigint", "index": 1, "name": "keyword_id", "comment": null}, "keyword_value": {"type": "text", "index": 2, "name": "keyword_value", "comment": null}, "_fivetran_id": {"type": "text", "index": 3, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "bigint", "index": 5, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}, "archived": {"type": "boolean", "index": 7, "name": "archived", "comment": null}, "bid": {"type": "integer", "index": 8, "name": "bid", "comment": null}, "campaign_id": {"type": "bigint", "index": 9, "name": "campaign_id", "comment": null}, "match_type": {"type": "text", "index": 10, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 11, "name": "parent_type", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 12, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__keyword_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "boolean", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "integer", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "bigint", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "text", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__keyword_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "keyword_id": {"type": "bigint", "index": 2, "name": "keyword_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 3, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 8, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 11, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__keyword_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"pin_promotion_id": {"type": "bigint", "index": 1, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "destination_url": {"type": "text", "index": 4, "name": "destination_url", "comment": null}, "base_url": {"type": "text", "index": 5, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 6, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 7, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 8, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 9, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 10, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 11, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 12, "name": "utm_term", "comment": null}, "pin_name": {"type": "text", "index": 13, "name": "pin_name", "comment": null}, "pin_id": {"type": "bigint", "index": 14, "name": "pin_id", "comment": null}, "pin_status": {"type": "text", "index": 15, "name": "pin_status", "comment": null}, "creative_type": {"type": "text", "index": 16, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "text", "index": 17, "name": "_fivetran_synced", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 18, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "text", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "text", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp"}, "model.snapchat_ads.snapchat_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads", "name": "snapchat_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 3, "name": "ad_account_name", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "swipes": {"type": "bigint", "index": 5, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 7, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, "model.snapchat_ads.snapchat_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads", "name": "snapchat_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 3, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "text", "index": 4, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 5, "name": "ad_name", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "swipes": {"type": "bigint", "index": 7, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads", "name": "snapchat_ads__ad_squad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 3, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "text", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_squad_id": {"type": "text", "index": 6, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "text", "index": 7, "name": "ad_squad_name", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "swipes": {"type": "bigint", "index": 9, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 10, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 11, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, "model.snapchat_ads.snapchat_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads", "name": "snapchat_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 3, "name": "ad_account_name", "comment": null}, "campaign_id": {"type": "text", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "swipes": {"type": "bigint", "index": 7, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 8, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 9, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, "model.snapchat_ads.snapchat_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads", "name": "snapchat_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 3, "name": "ad_account_name", "comment": null}, "ad_id": {"type": "text", "index": 4, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 5, "name": "ad_name", "comment": null}, "ad_squad_id": {"type": "text", "index": 6, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "text", "index": 7, "name": "ad_squad_name", "comment": null}, "campaign_id": {"type": "text", "index": 8, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 9, "name": "campaign_name", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "base_url": {"type": "text", "index": 11, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 12, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 13, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 14, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 15, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 16, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 17, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 18, "name": "utm_term", "comment": null}, "swipes": {"type": "bigint", "index": 19, "name": "swipes", "comment": null}, "impressions": {"type": "bigint", "index": 20, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 21, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_account_id": {"type": "text", "index": 1, "name": "ad_account_id", "comment": null}, "ad_account_name": {"type": "text", "index": 2, "name": "ad_account_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "advertiser": {"type": "text", "index": 4, "name": "advertiser", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "timezone": {"type": "text", "index": 6, "name": "timezone", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 8, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 9, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "text", "index": 1, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 2, "name": "ad_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "ad_squad_id": {"type": "text", "index": 4, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "text", "index": 5, "name": "creative_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "text", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "text", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_hourly_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "text", "index": 1, "name": "ad_id", "comment": null}, "date_hour": {"type": "timestamp without time zone", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "numeric(28,6)", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "numeric(28,6)", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "numeric(28,6)", "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(28,6)", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "numeric(28,6)", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "numeric(28,6)", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "numeric(28,6)", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "numeric(28,6)", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "numeric(28,6)", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "numeric", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "numeric(28,6)", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "numeric(28,6)", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "numeric", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 19, "name": "swipes", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "text", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "integer", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 5, "name": "swipes", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_squad_id": {"type": "text", "index": 1, "name": "ad_squad_id", "comment": null}, "ad_squad_name": {"type": "text", "index": 2, "name": "ad_squad_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "campaign_id": {"type": "text", "index": 4, "name": "campaign_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_hourly_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_squad_id": {"type": "text", "index": 1, "name": "ad_squad_id", "comment": null}, "date_hour": {"type": "timestamp without time zone", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "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": "integer", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "integer", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "integer", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "numeric", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "integer", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "numeric", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 19, "name": "swipes", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_squad_id": {"type": "text", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "integer", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "text", "index": 1, "name": "campaign_id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_hourly_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "text", "index": 1, "name": "campaign_id", "comment": null}, "date_hour": {"type": "timestamp without time zone", "index": 2, "name": "date_hour", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 3, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 4, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "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": "integer", "index": 7, "name": "attachment_view_completion", "comment": null}, "quartile_1": {"type": "integer", "index": 8, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 9, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 10, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 11, "name": "saves", "comment": null}, "shares": {"type": "integer", "index": 12, "name": "shares", "comment": null}, "screen_time": {"type": "numeric", "index": 13, "name": "screen_time", "comment": null}, "video_views": {"type": "integer", "index": 14, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 15, "name": "view_completion", "comment": null}, "view_time": {"type": "numeric", "index": 16, "name": "view_time", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 18, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 19, "name": "swipes", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "text", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "integer", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__creative_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "text", "index": 1, "name": "creative_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "ad_account_id": {"type": "text", "index": 3, "name": "ad_account_id", "comment": null}, "creative_name": {"type": "text", "index": 4, "name": "creative_name", "comment": null}, "url": {"type": "text", "index": 5, "name": "url", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 7, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 8, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__creative_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "text", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__creative_url_tag_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "text", "index": 1, "name": "creative_id", "comment": null}, "param_key": {"type": "text", "index": 2, "name": "param_key", "comment": null}, "param_value": {"type": "text", "index": 3, "name": "param_value", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 5, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_snapchat_ads_source", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "text", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "text", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "action_days": {"type": "integer", "index": 5, "name": "action_days", "comment": null}, "action_categories": {"type": "text", "index": 6, "name": "action_categories", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "age": {"type": "text", "index": 8, "name": "age", "comment": null}, "audience_type": {"type": "integer", "index": 9, "name": "audience_type", "comment": null}, "budget": {"type": "integer", "index": 10, "name": "budget", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "display_name": {"type": "integer", "index": 12, "name": "display_name", "comment": null}, "interest_category": {"type": "text", "index": 13, "name": "interest_category", "comment": null}, "frequency": {"type": "integer", "index": 14, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "integer", "index": 15, "name": "frequency_schedule", "comment": null}, "gender": {"type": "text", "index": 16, "name": "gender", "comment": null}, "languages": {"type": "text", "index": 17, "name": "languages", "comment": null}, "landing_page_url": {"type": "integer", "index": 18, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "text", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "text", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "integer", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "integer", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "integer", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "integer", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "integer", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "text", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "integer", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "text", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "integer", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "text", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "integer", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "integer", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "text", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "text", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "integer", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "text", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "integer", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "text", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "text", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "text", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "integer", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "text", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "text", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "integer", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "text", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "integer", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "integer", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "integer", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "integer", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "integer", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "integer", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "integer", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "text", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "text", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "integer", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "integer", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "boolean", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "boolean", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "boolean", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "integer", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "integer", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "integer", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "integer", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "integer", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "integer", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "text", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "text", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "text", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "text", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "text", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "text", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "text", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "integer", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "text", "index": 64, "name": "age", "comment": null}, "languages": {"type": "text", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "text", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "text", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "text", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "text", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "integer", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "text", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_report_hourly", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "double precision", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "double precision", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "integer", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "integer", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "integer", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "integer", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "integer", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "integer", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "integer", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "integer", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "integer", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "integer", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "integer", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "integer", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "double precision", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "integer", "index": 4, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "ad_name": {"type": "text", "index": 6, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 7, "name": "call_to_action", "comment": null}, "click_tracking_url": {"type": "integer", "index": 8, "name": "click_tracking_url", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 9, "name": "impression_tracking_url", "comment": null}, "base_url": {"type": "text", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 17, "name": "utm_term", "comment": null}, "landing_page_url": {"type": "text", "index": 18, "name": "landing_page_url", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 19, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "text", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "integer", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "integer", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "boolean", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_report_hourly", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "double precision", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "double precision", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "integer", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "integer", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "integer", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "integer", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "integer", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "integer", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "integer", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "integer", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "integer", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "integer", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "integer", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "integer", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "double precision", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__advertiser", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "integer", "index": 1, "name": "advertiser_id", "comment": null}, "address": {"type": "text", "index": 2, "name": "address", "comment": null}, "balance": {"type": "double precision", "index": 3, "name": "balance", "comment": null}, "company": {"type": "text", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "integer", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "email": {"type": "text", "index": 9, "name": "email", "comment": null}, "industry": {"type": "integer", "index": 10, "name": "industry", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "advertiser_name": {"type": "text", "index": 12, "name": "advertiser_name", "comment": null}, "phone_number": {"type": "text", "index": 13, "name": "phone_number", "comment": null}, "telephone": {"type": "integer", "index": 14, "name": "telephone", "comment": null}, "timezone": {"type": "text", "index": 15, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__advertiser_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "address": {"type": "text", "index": 3, "name": "address", "comment": null}, "company": {"type": "text", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "integer", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "email": {"type": "text", "index": 9, "name": "email", "comment": null}, "industry": {"type": "integer", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "integer", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "integer", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "integer", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "integer", "index": 14, "name": "reason", "comment": null}, "role": {"type": "text", "index": 15, "name": "role", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "integer", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "text", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "double precision", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "text", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "text", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "text", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "text", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "text", "index": 5, "name": "campaign_type", "comment": null}, "split_test_variable": {"type": "integer", "index": 6, "name": "split_test_variable", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 7, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "text", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "integer", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "text", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "text", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "text", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "boolean", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "integer", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "text", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "text", "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__campaign_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_report_hourly", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cpc": {"type": "double precision", "index": 3, "name": "cpc", "comment": null}, "cpm": {"type": "double precision", "index": 4, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 5, "name": "ctr", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "clicks": {"type": "integer", "index": 7, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 8, "name": "spend", "comment": null}, "reach": {"type": "integer", "index": 9, "name": "reach", "comment": null}, "conversion": {"type": "integer", "index": 10, "name": "conversion", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 11, "name": "cost_per_conversion", "comment": null}, "conversion_rate": {"type": "integer", "index": 12, "name": "conversion_rate", "comment": null}, "likes": {"type": "integer", "index": 13, "name": "likes", "comment": null}, "comments": {"type": "integer", "index": 14, "name": "comments", "comment": null}, "shares": {"type": "integer", "index": 15, "name": "shares", "comment": null}, "profile_visits": {"type": "integer", "index": 16, "name": "profile_visits", "comment": null}, "follows": {"type": "integer", "index": 17, "name": "follows", "comment": null}, "video_play_actions": {"type": "integer", "index": 18, "name": "video_play_actions", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 19, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 20, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "integer", "index": 21, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "integer", "index": 22, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "integer", "index": 23, "name": "video_views_p_75", "comment": null}, "average_video_play": {"type": "double precision", "index": 24, "name": "average_video_play", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 25, "name": "average_video_play_per_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp"}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_tiktok_ads", "name": "tiktok_ads__ad_group_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "action_categories": {"type": "text", "index": 9, "name": "action_categories", "comment": null}, "category": {"type": "integer", "index": 10, "name": "category", "comment": null}, "gender": {"type": "text", "index": 11, "name": "gender", "comment": null}, "audience_type": {"type": "integer", "index": 12, "name": "audience_type", "comment": null}, "budget": {"type": "integer", "index": 13, "name": "budget", "comment": null}, "age": {"type": "text", "index": 14, "name": "age", "comment": null}, "languages": {"type": "text", "index": 15, "name": "languages", "comment": null}, "interest_category": {"type": "text", "index": 16, "name": "interest_category", "comment": null}, "impressions": {"type": "bigint", "index": 17, "name": "impressions", "comment": null}, "clicks": {"type": "bigint", "index": 18, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 19, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 20, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 21, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 22, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 23, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 24, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 25, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 26, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 27, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 28, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 29, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 30, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 31, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "double precision", "index": 32, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 33, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 34, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, "model.tiktok_ads.tiktok_ads__ad_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_tiktok_ads", "name": "tiktok_ads__ad_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "integer", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "currency": {"type": "text", "index": 10, "name": "currency", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "action_categories": {"type": "text", "index": 12, "name": "action_categories", "comment": null}, "gender": {"type": "text", "index": 13, "name": "gender", "comment": null}, "audience_type": {"type": "integer", "index": 14, "name": "audience_type", "comment": null}, "budget": {"type": "integer", "index": 15, "name": "budget", "comment": null}, "age": {"type": "text", "index": 16, "name": "age", "comment": null}, "languages": {"type": "text", "index": 17, "name": "languages", "comment": null}, "interest_category": {"type": "text", "index": 18, "name": "interest_category", "comment": null}, "impressions": {"type": "bigint", "index": 19, "name": "impressions", "comment": null}, "clicks": {"type": "bigint", "index": 20, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 21, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 22, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 23, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 24, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 25, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 26, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 27, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 28, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 29, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 30, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 31, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 32, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 33, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "double precision", "index": 34, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 35, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 36, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_tiktok_ads", "name": "tiktok_ads__advertiser_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "clicks": {"type": "bigint", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 6, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 7, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 8, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 9, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 10, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 11, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 12, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 13, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 14, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 15, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 16, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 17, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 18, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 19, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "double precision", "index": 20, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 21, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 22, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, "model.tiktok_ads.tiktok_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_tiktok_ads", "name": "tiktok_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "currency": {"type": "text", "index": 6, "name": "currency", "comment": null}, "impressions": {"type": "bigint", "index": 7, "name": "impressions", "comment": null}, "clicks": {"type": "bigint", "index": 8, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 9, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 10, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 11, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 12, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 13, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 14, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 15, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 16, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 17, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 18, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 19, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 20, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 21, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "double precision", "index": 22, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 23, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 24, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, "model.tiktok_ads.tiktok_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_tiktok_ads", "name": "tiktok_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "date", "index": 1, "name": "date_day", "comment": null}, "advertiser_id": {"type": "integer", "index": 2, "name": "advertiser_id", "comment": null}, "advertiser_name": {"type": "text", "index": 3, "name": "advertiser_name", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "ad_group_id": {"type": "integer", "index": 6, "name": "ad_group_id", "comment": null}, "ad_group_name": {"type": "text", "index": 7, "name": "ad_group_name", "comment": null}, "ad_id": {"type": "integer", "index": 8, "name": "ad_id", "comment": null}, "ad_name": {"type": "text", "index": 9, "name": "ad_name", "comment": null}, "base_url": {"type": "text", "index": 10, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 11, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 12, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 13, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 14, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 15, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 16, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 17, "name": "utm_term", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "action_categories": {"type": "text", "index": 19, "name": "action_categories", "comment": null}, "category": {"type": "integer", "index": 20, "name": "category", "comment": null}, "gender": {"type": "text", "index": 21, "name": "gender", "comment": null}, "audience_type": {"type": "integer", "index": 22, "name": "audience_type", "comment": null}, "budget": {"type": "integer", "index": 23, "name": "budget", "comment": null}, "age": {"type": "text", "index": 24, "name": "age", "comment": null}, "languages": {"type": "text", "index": 25, "name": "languages", "comment": null}, "interest_category": {"type": "text", "index": 26, "name": "interest_category", "comment": null}, "impressions": {"type": "bigint", "index": 27, "name": "impressions", "comment": null}, "clicks": {"type": "bigint", "index": 28, "name": "clicks", "comment": null}, "spend": {"type": "double precision", "index": 29, "name": "spend", "comment": null}, "reach": {"type": "bigint", "index": 30, "name": "reach", "comment": null}, "conversion": {"type": "bigint", "index": 31, "name": "conversion", "comment": null}, "likes": {"type": "bigint", "index": 32, "name": "likes", "comment": null}, "comments": {"type": "bigint", "index": 33, "name": "comments", "comment": null}, "shares": {"type": "bigint", "index": 34, "name": "shares", "comment": null}, "profile_visits": {"type": "bigint", "index": 35, "name": "profile_visits", "comment": null}, "follows": {"type": "bigint", "index": 36, "name": "follows", "comment": null}, "video_watched_2_s": {"type": "bigint", "index": 37, "name": "video_watched_2_s", "comment": null}, "video_watched_6_s": {"type": "bigint", "index": 38, "name": "video_watched_6_s", "comment": null}, "video_views_p_25": {"type": "bigint", "index": 39, "name": "video_views_p_25", "comment": null}, "video_views_p_50": {"type": "bigint", "index": 40, "name": "video_views_p_50", "comment": null}, "video_views_p_75": {"type": "bigint", "index": 41, "name": "video_views_p_75", "comment": null}, "daily_cpc": {"type": "double precision", "index": 42, "name": "daily_cpc", "comment": null}, "daily_cpm": {"type": "double precision", "index": 43, "name": "daily_cpm", "comment": null}, "daily_ctr": {"type": "bigint", "index": 44, "name": "daily_ctr", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, "model.twitter_ads.twitter_ads__account_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads", "name": "twitter_ads__account_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "timezone": {"type": "text", "index": 6, "name": "timezone", "comment": null}, "industry_type": {"type": "integer", "index": 7, "name": "industry_type", "comment": null}, "approval_status": {"type": "text", "index": 8, "name": "approval_status", "comment": null}, "business_name": {"type": "integer", "index": 9, "name": "business_name", "comment": null}, "business_id": {"type": "integer", "index": 10, "name": "business_id", "comment": null}, "created_timestamp": {"type": "text", "index": 11, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 12, "name": "updated_timestamp", "comment": null}, "timezone_switched_timestamp": {"type": "text", "index": 13, "name": "timezone_switched_timestamp", "comment": null}, "clicks": {"type": "numeric", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "numeric", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 16, "name": "spend", "comment": null}, "spend_micro": {"type": "numeric", "index": 17, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "numeric", "index": 18, "name": "url_clicks", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, "model.twitter_ads.twitter_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads", "name": "twitter_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "is_deleted": {"type": "boolean", "index": 7, "name": "is_deleted", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "currency": {"type": "text", "index": 9, "name": "currency", "comment": null}, "is_servable": {"type": "boolean", "index": 10, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "boolean", "index": 11, "name": "is_standard_delivery", "comment": null}, "frequency_cap": {"type": "integer", "index": 12, "name": "frequency_cap", "comment": null}, "start_timestamp": {"type": "text", "index": 13, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "text", "index": 14, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "text", "index": 15, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 16, "name": "updated_timestamp", "comment": null}, "funding_instrument_id": {"type": "text", "index": 17, "name": "funding_instrument_id", "comment": null}, "daily_budget_amount": {"type": "numeric", "index": 18, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "numeric", "index": 19, "name": "total_budget_amount", "comment": null}, "clicks": {"type": "bigint", "index": 20, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 21, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 22, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 23, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 24, "name": "url_clicks", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, "model.twitter_ads.twitter_ads__line_item_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads", "name": "twitter_ads__line_item_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "text", "index": 8, "name": "line_item_name", "comment": null}, "is_deleted": {"type": "boolean", "index": 9, "name": "is_deleted", "comment": null}, "line_item_status": {"type": "text", "index": 10, "name": "line_item_status", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "currency": {"type": "text", "index": 12, "name": "currency", "comment": null}, "advertiser_domain": {"type": "text", "index": 13, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 14, "name": "advertiser_user_id", "comment": null}, "bid_type": {"type": "text", "index": 15, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 16, "name": "bid_unit", "comment": null}, "charge_by": {"type": "text", "index": 17, "name": "charge_by", "comment": null}, "objective": {"type": "text", "index": 18, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 19, "name": "optimization", "comment": null}, "product_type": {"type": "text", "index": 20, "name": "product_type", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 21, "name": "primary_web_event_tag", "comment": null}, "creative_source": {"type": "text", "index": 22, "name": "creative_source", "comment": null}, "start_timestamp": {"type": "integer", "index": 23, "name": "start_timestamp", "comment": null}, "end_timestamp": {"type": "integer", "index": 24, "name": "end_timestamp", "comment": null}, "created_timestamp": {"type": "text", "index": 25, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 26, "name": "updated_timestamp", "comment": null}, "target_cpa": {"type": "numeric", "index": 27, "name": "target_cpa", "comment": null}, "total_budget_amount": {"type": "numeric", "index": 28, "name": "total_budget_amount", "comment": null}, "bid_amount": {"type": "numeric", "index": 29, "name": "bid_amount", "comment": null}, "clicks": {"type": "bigint", "index": 30, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 31, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 32, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 33, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 34, "name": "url_clicks", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads", "name": "twitter_ads__promoted_tweet_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "text", "index": 8, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 9, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 10, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "integer", "index": 11, "name": "tweet_name", "comment": null}, "full_text": {"type": "text", "index": 12, "name": "full_text", "comment": null}, "is_deleted": {"type": "boolean", "index": 13, "name": "is_deleted", "comment": null}, "promoted_tweet_status": {"type": "text", "index": 14, "name": "promoted_tweet_status", "comment": null}, "campaign_status": {"type": "text", "index": 15, "name": "campaign_status", "comment": null}, "line_item_status": {"type": "text", "index": 16, "name": "line_item_status", "comment": null}, "language": {"type": "text", "index": 17, "name": "language", "comment": null}, "currency": {"type": "text", "index": 18, "name": "currency", "comment": null}, "approval_status": {"type": "text", "index": 19, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "text", "index": 20, "name": "created_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 21, "name": "updated_timestamp", "comment": null}, "clicks": {"type": "bigint", "index": 22, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 23, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 24, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 25, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 26, "name": "url_clicks", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, "model.twitter_ads.twitter_ads__url_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads", "name": "twitter_ads__url_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "placement": {"type": "text", "index": 2, "name": "placement", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "account_name": {"type": "character varying", "index": 4, "name": "account_name", "comment": null}, "campaign_id": {"type": "text", "index": 5, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 6, "name": "campaign_name", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "line_item_name": {"type": "text", "index": 8, "name": "line_item_name", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 9, "name": "promoted_tweet_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 10, "name": "tweet_id", "comment": null}, "tweet_name": {"type": "integer", "index": 11, "name": "tweet_name", "comment": null}, "tweet_full_text": {"type": "text", "index": 12, "name": "tweet_full_text", "comment": null}, "base_url": {"type": "text", "index": 13, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 14, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 15, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 16, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 17, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 18, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 19, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 20, "name": "utm_term", "comment": null}, "expanded_url": {"type": "text", "index": 21, "name": "expanded_url", "comment": null}, "display_url": {"type": "text", "index": 22, "name": "display_url", "comment": null}, "currency": {"type": "text", "index": 23, "name": "currency", "comment": null}, "clicks": {"type": "bigint", "index": 24, "name": "clicks", "comment": null}, "impressions": {"type": "bigint", "index": 25, "name": "impressions", "comment": null}, "spend": {"type": "numeric", "index": 26, "name": "spend", "comment": null}, "spend_micro": {"type": "bigint", "index": 27, "name": "spend_micro", "comment": null}, "url_clicks": {"type": "bigint", "index": 28, "name": "url_clicks", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads.twitter_ads__url_report"}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__account_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"approval_status": {"type": "text", "index": 1, "name": "approval_status", "comment": null}, "business_id": {"type": "integer", "index": 2, "name": "business_id", "comment": null}, "business_name": {"type": "integer", "index": 3, "name": "business_name", "comment": null}, "created_timestamp": {"type": "text", "index": 4, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "account_id": {"type": "text", "index": 6, "name": "account_id", "comment": null}, "industry_type": {"type": "integer", "index": 7, "name": "industry_type", "comment": null}, "name": {"type": "character varying", "index": 8, "name": "name", "comment": null}, "salt": {"type": "integer", "index": 9, "name": "salt", "comment": null}, "timezone": {"type": "text", "index": 10, "name": "timezone", "comment": null}, "timezone_switched_timestamp": {"type": "text", "index": 11, "name": "timezone_switched_timestamp", "comment": null}, "updated_timestamp": {"type": "text", "index": 12, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "boolean", "index": 13, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__account_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "integer", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "integer", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "text", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "integer", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "character varying", "index": 9, "name": "name", "comment": null}, "salt": {"type": "integer", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "text", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "text", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__campaign_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "created_timestamp": {"type": "text", "index": 2, "name": "created_timestamp", "comment": null}, "currency": {"type": "text", "index": 3, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "integer", "index": 4, "name": "daily_budget_amount_local_micro", "comment": null}, "is_deleted": {"type": "boolean", "index": 5, "name": "is_deleted", "comment": null}, "duration_in_days": {"type": "integer", "index": 6, "name": "duration_in_days", "comment": null}, "end_timestamp": {"type": "text", "index": 7, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "text", "index": 8, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "integer", "index": 9, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "text", "index": 10, "name": "funding_instrument_id", "comment": null}, "campaign_id": {"type": "text", "index": 11, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 12, "name": "campaign_name", "comment": null}, "is_servable": {"type": "boolean", "index": 13, "name": "is_servable", "comment": null}, "is_standard_delivery": {"type": "boolean", "index": 14, "name": "is_standard_delivery", "comment": null}, "start_timestamp": {"type": "text", "index": 15, "name": "start_timestamp", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 16, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "text", "index": 17, "name": "updated_timestamp", "comment": null}, "daily_budget_amount": {"type": "numeric", "index": 18, "name": "daily_budget_amount", "comment": null}, "total_budget_amount": {"type": "numeric", "index": 19, "name": "total_budget_amount", "comment": null}, "is_latest_version": {"type": "boolean", "index": 20, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__campaign_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "integer", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "integer", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "text", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "integer", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "text", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "text", "index": 12, "name": "id", "comment": null}, "name": {"type": "text", "index": 13, "name": "name", "comment": null}, "servable": {"type": "boolean", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "boolean", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "text", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__campaign_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "text", "index": 3, "name": "campaign_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "integer", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "integer", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__campaign_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__line_item_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_domain": {"type": "text", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "boolean", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "integer", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "text", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "text", "index": 8, "name": "charge_by", "comment": null}, "created_timestamp": {"type": "text", "index": 9, "name": "created_timestamp", "comment": null}, "creative_source": {"type": "text", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "is_deleted": {"type": "boolean", "index": 12, "name": "is_deleted", "comment": null}, "end_timestamp": {"type": "integer", "index": 13, "name": "end_timestamp", "comment": null}, "entity_status": {"type": "text", "index": 14, "name": "entity_status", "comment": null}, "line_item_id": {"type": "text", "index": 15, "name": "line_item_id", "comment": null}, "name": {"type": "text", "index": 16, "name": "name", "comment": null}, "objective": {"type": "text", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "text", "index": 20, "name": "product_type", "comment": null}, "start_timestamp": {"type": "integer", "index": 21, "name": "start_timestamp", "comment": null}, "target_cpa_local_micro": {"type": "integer", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_timestamp": {"type": "text", "index": 24, "name": "updated_timestamp", "comment": null}, "bid_amount": {"type": "numeric", "index": 25, "name": "bid_amount", "comment": null}, "total_budget_amount": {"type": "numeric", "index": 26, "name": "total_budget_amount", "comment": null}, "target_cpa": {"type": "numeric", "index": 27, "name": "target_cpa", "comment": null}, "is_latest_version": {"type": "boolean", "index": 28, "name": "is_latest_version", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history"}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__line_item_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_domain": {"type": "text", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "boolean", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "integer", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "text", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "text", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "text", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "text", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "boolean", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "integer", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 15, "name": "id", "comment": null}, "name": {"type": "text", "index": 16, "name": "name", "comment": null}, "objective": {"type": "text", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "text", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "integer", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "integer", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__line_item_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "integer", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "integer", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report"}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__line_item_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"approval_status": {"type": "text", "index": 1, "name": "approval_status", "comment": null}, "created_timestamp": {"type": "text", "index": 2, "name": "created_timestamp", "comment": null}, "is_deleted": {"type": "boolean", "index": 3, "name": "is_deleted", "comment": null}, "entity_status": {"type": "text", "index": 4, "name": "entity_status", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 5, "name": "promoted_tweet_id", "comment": null}, "line_item_id": {"type": "text", "index": 6, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 7, "name": "tweet_id", "comment": null}, "updated_timestamp": {"type": "text", "index": 8, "name": "updated_timestamp", "comment": null}, "is_latest_version": {"type": "boolean", "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.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "text", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_report", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_day": {"type": "timestamp without time zone", "index": 1, "name": "date_day", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 3, "name": "promoted_tweet_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "spend_micro": {"type": "integer", "index": 7, "name": "spend_micro", "comment": null}, "spend": {"type": "numeric", "index": 8, "name": "spend", "comment": null}, "url_clicks": {"type": "integer", "index": 9, "name": "url_clicks", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "timestamp without time zone", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "integer", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "text", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__tweet", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "tweet_id": {"type": "integer", "index": 2, "name": "tweet_id", "comment": null}, "name": {"type": "integer", "index": 3, "name": "name", "comment": null}, "full_text": {"type": "text", "index": 4, "name": "full_text", "comment": null}, "language": {"type": "text", "index": 5, "name": "language", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"metadata": {"type": "VIEW", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__tweet_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "integer", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "integer", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "integer", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "integer", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "boolean", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "integer", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "text", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "integer", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "integer", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "integer", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "integer", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "integer", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "text", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "integer", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "integer", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "boolean", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "text", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "boolean", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "text", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "integer", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "integer", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2_twitter_ads_source", "name": "stg_twitter_ads__tweet_url", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"display_url": {"type": "text", "index": 1, "name": "display_url", "comment": null}, "expanded_url": {"type": "text", "index": 2, "name": "expanded_url", "comment": null}, "index": {"type": "integer", "index": 3, "name": "index", "comment": null}, "indices": {"type": "text", "index": 4, "name": "indices", "comment": null}, "tweet_id": {"type": "bigint", "index": 5, "name": "tweet_id", "comment": null}, "url": {"type": "text", "index": 6, "name": "url", "comment": null}, "base_url": {"type": "text", "index": 7, "name": "base_url", "comment": null}, "url_host": {"type": "text", "index": 8, "name": "url_host", "comment": null}, "url_path": {"type": "text", "index": 9, "name": "url_path", "comment": null}, "utm_source": {"type": "text", "index": 10, "name": "utm_source", "comment": null}, "utm_medium": {"type": "text", "index": 11, "name": "utm_medium", "comment": null}, "utm_campaign": {"type": "text", "index": 12, "name": "utm_campaign", "comment": null}, "utm_content": {"type": "text", "index": 13, "name": "utm_content", "comment": null}, "utm_term": {"type": "text", "index": 14, "name": "utm_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.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_2_twitter_ads_source", "name": "stg_twitter_ads__tweet_url_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "text", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "text", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "indices": {"type": "text", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "bigint", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "text", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp"}}, "sources": {"source.amazon_ads_source.amazon_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 5, "name": "creation_date", "comment": null}, "default_bid": {"type": "double precision", "index": 6, "name": "default_bid", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_history"}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_ad_group_level_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 4, "name": "campaign_bidding_strategy", "comment": null}, "clicks": {"type": "integer", "index": 5, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 6, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 7, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 8, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_level_report"}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_advertised_product_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 9, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 11, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 12, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 13, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.advertised_product_report"}, "source.amazon_ads_source.amazon_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "bidding_strategy": {"type": "text", "index": 4, "name": "bidding_strategy", "comment": null}, "campaign_type": {"type": "text", "index": 5, "name": "campaign_type", "comment": null}, "creation_date": {"type": "text", "index": 6, "name": "creation_date", "comment": null}, "daily_budget": {"type": "integer", "index": 7, "name": "daily_budget", "comment": null}, "end_date": {"type": "integer", "index": 8, "name": "end_date", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "placement": {"type": "integer", "index": 10, "name": "placement", "comment": null}, "portfolio_id": {"type": "integer", "index": 11, "name": "portfolio_id", "comment": null}, "premium_bid_adjustment": {"type": "boolean", "index": 12, "name": "premium_bid_adjustment", "comment": null}, "profile_id": {"type": "integer", "index": 13, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_date": {"type": "date", "index": 15, "name": "start_date", "comment": null}, "state": {"type": "text", "index": 16, "name": "state", "comment": null}, "targeting_type": {"type": "text", "index": 17, "name": "targeting_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.campaign_history"}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_campaign_level_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "campaign_applicable_budget_rule_id": {"type": "integer", "index": 4, "name": "campaign_applicable_budget_rule_id", "comment": null}, "campaign_applicable_budget_rule_name": {"type": "integer", "index": 5, "name": "campaign_applicable_budget_rule_name", "comment": null}, "campaign_bidding_strategy": {"type": "text", "index": 6, "name": "campaign_bidding_strategy", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 10, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 12, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 13, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.campaign_level_report"}, "source.amazon_ads_source.amazon_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "double precision", "index": 5, "name": "bid", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "keyword_text": {"type": "text", "index": 8, "name": "keyword_text", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "native_language_keyword": {"type": "integer", "index": 10, "name": "native_language_keyword", "comment": null}, "serving_status": {"type": "text", "index": 11, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 12, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.keyword_history"}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_portfolio_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency_code": {"type": "integer", "index": 5, "name": "budget_currency_code", "comment": null}, "budget_end_date": {"type": "integer", "index": 6, "name": "budget_end_date", "comment": null}, "budget_policy": {"type": "integer", "index": 7, "name": "budget_policy", "comment": null}, "budget_start_date": {"type": "integer", "index": 8, "name": "budget_start_date", "comment": null}, "creation_date": {"type": "text", "index": 9, "name": "creation_date", "comment": null}, "in_budget": {"type": "boolean", "index": 10, "name": "in_budget", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "profile_id": {"type": "integer", "index": 12, "name": "profile_id", "comment": null}, "serving_status": {"type": "text", "index": 13, "name": "serving_status", "comment": null}, "state": {"type": "text", "index": 14, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.portfolio_history"}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_product_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_updated_date": {"type": "text", "index": 2, "name": "last_updated_date", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "asin": {"type": "text", "index": 5, "name": "asin", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "creation_date": {"type": "text", "index": 7, "name": "creation_date", "comment": null}, "serving_status": {"type": "text", "index": 8, "name": "serving_status", "comment": null}, "sku": {"type": "integer", "index": 9, "name": "sku", "comment": null}, "state": {"type": "text", "index": 10, "name": "state", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.product_ad_history"}, "source.amazon_ads_source.amazon_ads.profile": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "text", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "text", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "integer", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "boolean", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "text", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "text", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "integer", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "text", "index": 13, "name": "timezone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.profile"}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_search_term_ad_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 6, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 7, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 8, "name": "campaign_budget_type", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 10, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 11, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 13, "name": "keyword_bid", "comment": null}, "search_term": {"type": "text", "index": 14, "name": "search_term", "comment": null}, "targeting": {"type": "text", "index": 15, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "amazon_ads_targeting_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "keyword_id": {"type": "integer", "index": 4, "name": "keyword_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_keyword_status": {"type": "text", "index": 6, "name": "ad_keyword_status", "comment": null}, "campaign_budget_amount": {"type": "double precision", "index": 7, "name": "campaign_budget_amount", "comment": null}, "campaign_budget_currency_code": {"type": "text", "index": 8, "name": "campaign_budget_currency_code", "comment": null}, "campaign_budget_type": {"type": "text", "index": 9, "name": "campaign_budget_type", "comment": null}, "click_through_rate": {"type": "double precision", "index": 10, "name": "click_through_rate", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "cost": {"type": "double precision", "index": 12, "name": "cost", "comment": null}, "cost_per_click": {"type": "double precision", "index": 13, "name": "cost_per_click", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "keyword_bid": {"type": "double precision", "index": 15, "name": "keyword_bid", "comment": null}, "keyword_type": {"type": "text", "index": 16, "name": "keyword_type", "comment": null}, "match_type": {"type": "text", "index": 17, "name": "match_type", "comment": null}, "targeting": {"type": "text", "index": 18, "name": "targeting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.amazon_ads_source.amazon_ads.targeting_keyword_report"}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "automated_keywords_opt_in": {"type": "boolean", "index": 3, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "integer", "index": 5, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "integer", "index": 6, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "integer", "index": 7, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "integer", "index": 8, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "name": {"type": "text", "index": 11, "name": "name", "comment": null}, "organization_id": {"type": "integer", "index": 12, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "integer", "index": 13, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 14, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 15, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "storefronts": {"type": "integer", "index": 17, "name": "storefronts", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history"}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "integer", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report"}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creation_time": {"type": "timestamp without time zone", "index": 1, "name": "creation_time", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "org_id": {"type": "integer", "index": 3, "name": "org_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 5, "name": "ad_group_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "id": {"type": "integer", "index": 7, "name": "id", "comment": null}, "creative_id": {"type": "integer", "index": 8, "name": "creative_id", "comment": null}, "creative_type": {"type": "text", "index": 9, "name": "creative_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history"}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_ad_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "integer", "index": 5, "name": "ad_id", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 7, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 8, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 9, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 10, "name": "redownloads", "comment": null}, "taps": {"type": "integer", "index": 11, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report"}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "adam_id": {"type": "integer", "index": 3, "name": "adam_id", "comment": null}, "budget_amount": {"type": "integer", "index": 4, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "text", "index": 5, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "text", "index": 6, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "integer", "index": 7, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "text", "index": 8, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "boolean", "index": 9, "name": "deleted", "comment": null}, "end_time": {"type": "timestamp without time zone", "index": 10, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "integer", "index": 11, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "integer", "index": 12, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "integer", "index": 13, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "integer", "index": 14, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "text", "index": 15, "name": "name", "comment": null}, "organiation_id": {"type": "integer", "index": 16, "name": "organiation_id", "comment": null}, "payment_model": {"type": "text", "index": 17, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "text", "index": 18, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "text", "index": 19, "name": "serving_status", "comment": null}, "start_time": {"type": "timestamp without time zone", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "text", "index": 21, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history"}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report"}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "modification_time": {"type": "timestamp without time zone", "index": 2, "name": "modification_time", "comment": null}, "ad_group_id": {"type": "integer", "index": 3, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "double precision", "index": 4, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "text", "index": 5, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "integer", "index": 6, "name": "campaign_id", "comment": null}, "deleted": {"type": "boolean", "index": 7, "name": "deleted", "comment": null}, "match_type": {"type": "text", "index": 8, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "text": {"type": "text", "index": 10, "name": "text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history"}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 3, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 4, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 5, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 6, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 7, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 8, "name": "conversions", "comment": null}, "impressions": {"type": "integer", "index": 9, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "integer", "index": 10, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 11, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 12, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 13, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "integer", "index": 14, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 15, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 16, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 17, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report"}, "source.apple_search_ads_source.apple_search_ads.organization": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "currency": {"type": "text", "index": 2, "name": "currency", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "payment_model": {"type": "text", "index": 4, "name": "payment_model", "comment": null}, "role_names": {"type": "text", "index": 5, "name": "role_names", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.organization"}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "apple_search_search_term_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "ad_group_id": {"type": "integer", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "integer", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "date", "index": 4, "name": "date", "comment": null}, "ad_group_deleted": {"type": "boolean", "index": 5, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "text", "index": 6, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "double precision", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "text", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "double precision", "index": 9, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "text", "index": 10, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "double precision", "index": 11, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "text", "index": 12, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "double precision", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "integer", "index": 14, "name": "conversions", "comment": null}, "deleted": {"type": "boolean", "index": 15, "name": "deleted", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "keyword": {"type": "text", "index": 17, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "text", "index": 18, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "integer", "index": 19, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "integer", "index": 20, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "integer", "index": 21, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "double precision", "index": 22, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "text", "index": 23, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "text", "index": 24, "name": "match_type", "comment": null}, "new_downloads": {"type": "integer", "index": 25, "name": "new_downloads", "comment": null}, "redownloads": {"type": "integer", "index": 26, "name": "redownloads", "comment": null}, "search_term_source": {"type": "text", "index": 27, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "text", "index": 28, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "double precision", "index": 29, "name": "tap_through_rate", "comment": null}, "taps": {"type": "integer", "index": 30, "name": "taps", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report"}, "source.facebook_ads_source.facebook_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.account_history"}, "source.facebook_ads_source.facebook_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "ad_set_id": {"type": "bigint", "index": 3, "name": "ad_set_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "creative_id": {"type": "bigint", "index": 5, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 8, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_history"}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_ad_set_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 6, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history"}, "source.facebook_ads_source.facebook_ads.basic_ad": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_basic_ad_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "bigint", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "inline_link_clicks": {"type": "integer", "index": 5, "name": "inline_link_clicks", "comment": null}, "spend": {"type": "double precision", "index": 6, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad"}, "source.facebook_ads_source.facebook_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 5, "name": "updated_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history"}, "source.facebook_ads_source.facebook_ads.creative_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "facebook_ads_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"page_link": {"type": "character varying", "index": 1, "name": "page_link", "comment": null}, "template_page_link": {"type": "character varying", "index": 2, "name": "template_page_link", "comment": null}, "id": {"type": "bigint", "index": 3, "name": "id", "comment": null}, "account_id": {"type": "bigint", "index": 4, "name": "account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "url_tags": {"type": "text", "index": 6, "name": "url_tags", "comment": null}, "_fivetran_synced": {"type": "text", "index": 7, "name": "_fivetran_synced", "comment": null}, "asset_feed_spec_link_urls": {"type": "text", "index": 8, "name": "asset_feed_spec_link_urls", "comment": null}, "object_story_link_data_child_attachments": {"type": "text", "index": 9, "name": "object_story_link_data_child_attachments", "comment": null}, "object_story_link_data_caption": {"type": "text", "index": 10, "name": "object_story_link_data_caption", "comment": null}, "object_story_link_data_description": {"type": "text", "index": 11, "name": "object_story_link_data_description", "comment": null}, "object_story_link_data_link": {"type": "text", "index": 12, "name": "object_story_link_data_link", "comment": null}, "object_story_link_data_message": {"type": "text", "index": 13, "name": "object_story_link_data_message", "comment": null}, "template_app_link_spec_ios": {"type": "text", "index": 14, "name": "template_app_link_spec_ios", "comment": null}, "_fivetran_id": {"type": "text", "index": 15, "name": "_fivetran_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.facebook_ads_source.facebook_ads.creative_history"}, "source.google_ads_source.google_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "auto_tagging_enabled": {"type": "boolean", "index": 4, "name": "auto_tagging_enabled", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "descriptive_name": {"type": "integer", "index": 6, "name": "descriptive_name", "comment": null}, "final_url_suffix": {"type": "boolean", "index": 7, "name": "final_url_suffix", "comment": null}, "hidden": {"type": "boolean", "index": 8, "name": "hidden", "comment": null}, "manager": {"type": "integer", "index": 9, "name": "manager", "comment": null}, "manager_customer_id": {"type": "double precision", "index": 10, "name": "manager_customer_id", "comment": null}, "optimization_score": {"type": "text", "index": 11, "name": "optimization_score", "comment": null}, "pay_per_conversion_eligibility_failure_reasons": {"type": "boolean", "index": 12, "name": "pay_per_conversion_eligibility_failure_reasons", "comment": null}, "test_account": {"type": "text", "index": 13, "name": "test_account", "comment": null}, "time_zone": {"type": "integer", "index": 14, "name": "time_zone", "comment": null}, "tracking_url_template": {"type": "integer", "index": 15, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_history"}, "source.google_ads_source.google_ads.account_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_account_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "integer", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 12, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 13, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 14, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 15, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 17, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 18, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 19, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.account_stats"}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_group_criterion_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "base_campaign_id": {"type": "bigint", "index": 3, "name": "base_campaign_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "keyword_match_type": {"type": "text", "index": 8, "name": "keyword_match_type", "comment": null}, "keyword_text": {"type": "text", "index": 9, "name": "keyword_text", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history"}, "source.google_ads_source.google_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "campaign_name": {"type": "text", "index": 5, "name": "campaign_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_history"}, "source.google_ads_source.google_ads.ad_group_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_group_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_ad_group": {"type": "text", "index": 11, "name": "base_ad_group", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 12, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 13, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "conversions": {"type": "double precision", "index": 15, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 16, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 17, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 18, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 19, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 20, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 21, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 22, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 23, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_group_stats"}, "source.google_ads_source.google_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "id": {"type": "bigint", "index": 2, "name": "id", "comment": null}, "name": {"type": "integer", "index": 3, "name": "name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "type": {"type": "integer", "index": 5, "name": "type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "display_url": {"type": "integer", "index": 7, "name": "display_url", "comment": null}, "final_urls": {"type": "text", "index": 8, "name": "final_urls", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_history"}, "source.google_ads_source.google_ads.ad_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_ad_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "bigint", "index": 1, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 2, "name": "date", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "ad_group": {"type": "text", "index": 4, "name": "ad_group", "comment": null}, "keyword_ad_group_criterion": {"type": "text", "index": 5, "name": "keyword_ad_group_criterion", "comment": null}, "ad_network_type": {"type": "text", "index": 6, "name": "ad_network_type", "comment": null}, "device": {"type": "text", "index": 7, "name": "device", "comment": null}, "ad_id": {"type": "bigint", "index": 8, "name": "ad_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 9, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 10, "name": "clicks", "comment": null}, "cost_micros": {"type": "integer", "index": 11, "name": "cost_micros", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.ad_stats"}, "source.google_ads_source.google_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 2, "name": "updated_at", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "customer_id": {"type": "bigint", "index": 4, "name": "customer_id", "comment": null}, "advertising_channel_type": {"type": "text", "index": 5, "name": "advertising_channel_type", "comment": null}, "advertising_channel_subtype": {"type": "text", "index": 6, "name": "advertising_channel_subtype", "comment": null}, "start_date": {"type": "date", "index": 7, "name": "start_date", "comment": null}, "end_date": {"type": "date", "index": 8, "name": "end_date", "comment": null}, "serving_status": {"type": "text", "index": 9, "name": "serving_status", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "tracking_url_template": {"type": "integer", "index": 11, "name": "tracking_url_template", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_history"}, "source.google_ads_source.google_ads.campaign_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_campaign_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_network_type": {"type": "text", "index": 10, "name": "ad_network_type", "comment": null}, "base_campaign": {"type": "text", "index": 11, "name": "base_campaign", "comment": null}, "clicks": {"type": "integer", "index": 12, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 13, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 14, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 15, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 16, "name": "device", "comment": null}, "id": {"type": "bigint", "index": 17, "name": "id", "comment": null}, "impressions": {"type": "integer", "index": 18, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 19, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 20, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 21, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.campaign_stats"}, "source.google_ads_source.google_ads.keyword_stats": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "google_ads_keyword_stats_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "customer_id": {"type": "bigint", "index": 2, "name": "customer_id", "comment": null}, "date": {"type": "date", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "active_view_impressions": {"type": "integer", "index": 5, "name": "active_view_impressions", "comment": null}, "active_view_measurability": {"type": "integer", "index": 6, "name": "active_view_measurability", "comment": null}, "active_view_measurable_cost_micros": {"type": "integer", "index": 7, "name": "active_view_measurable_cost_micros", "comment": null}, "active_view_measurable_impressions": {"type": "integer", "index": 8, "name": "active_view_measurable_impressions", "comment": null}, "active_view_viewability": {"type": "integer", "index": 9, "name": "active_view_viewability", "comment": null}, "ad_group_base_ad_group": {"type": "text", "index": 10, "name": "ad_group_base_ad_group", "comment": null}, "ad_group_criterion_criterion_id": {"type": "bigint", "index": 11, "name": "ad_group_criterion_criterion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 12, "name": "ad_group_id", "comment": null}, "ad_network_type": {"type": "text", "index": 13, "name": "ad_network_type", "comment": null}, "campaign_base_campaign": {"type": "text", "index": 14, "name": "campaign_base_campaign", "comment": null}, "campaign_id": {"type": "bigint", "index": 15, "name": "campaign_id", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "conversions": {"type": "integer", "index": 17, "name": "conversions", "comment": null}, "conversions_value": {"type": "integer", "index": 18, "name": "conversions_value", "comment": null}, "cost_micros": {"type": "integer", "index": 19, "name": "cost_micros", "comment": null}, "device": {"type": "text", "index": 20, "name": "device", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "interaction_event_types": {"type": "text", "index": 22, "name": "interaction_event_types", "comment": null}, "interactions": {"type": "integer", "index": 23, "name": "interactions", "comment": null}, "view_through_conversions": {"type": "integer", "index": 24, "name": "view_through_conversions", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.google_ads_source.google_ads.keyword_stats"}, "source.linkedin_source.linkedin.account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "currency": {"type": "text", "index": 5, "name": "currency", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.account_history"}, "source.linkedin_source.linkedin.ad_analytics_by_campaign": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_analytics_by_campaign_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}, "action_clicks": {"type": "integer", "index": 4, "name": "action_clicks", "comment": null}, "ad_unit_clicks": {"type": "integer", "index": 5, "name": "ad_unit_clicks", "comment": null}, "approximate_unique_impressions": {"type": "integer", "index": 6, "name": "approximate_unique_impressions", "comment": null}, "card_clicks": {"type": "integer", "index": 7, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "integer", "index": 8, "name": "card_impressions", "comment": null}, "clicks": {"type": "integer", "index": 9, "name": "clicks", "comment": null}, "comment_likes": {"type": "integer", "index": 10, "name": "comment_likes", "comment": null}, "comments": {"type": "integer", "index": 11, "name": "comments", "comment": null}, "company_page_clicks": {"type": "integer", "index": 12, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "integer", "index": 13, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "double precision", "index": 14, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "double precision", "index": 15, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "integer", "index": 16, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "integer", "index": 17, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "integer", "index": 18, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "integer", "index": 19, "name": "follows", "comment": null}, "full_screen_plays": {"type": "integer", "index": 20, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "integer", "index": 21, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "integer", "index": 22, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "integer", "index": 23, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "integer", "index": 24, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "integer", "index": 25, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "integer", "index": 26, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "integer", "index": 27, "name": "one_click_leads", "comment": null}, "opens": {"type": "integer", "index": 28, "name": "opens", "comment": null}, "other_engagements": {"type": "integer", "index": 29, "name": "other_engagements", "comment": null}, "shares": {"type": "integer", "index": 30, "name": "shares", "comment": null}, "text_url_clicks": {"type": "integer", "index": 31, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "integer", "index": 32, "name": "total_engagements", "comment": null}, "video_completions": {"type": "integer", "index": 33, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "integer", "index": 34, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "integer", "index": 35, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "integer", "index": 36, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "integer", "index": 37, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "integer", "index": 38, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "integer", "index": 39, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "integer", "index": 40, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "integer", "index": 41, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "integer", "index": 42, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "integer", "index": 43, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "integer", "index": 44, "name": "viral_company_page_clicks", "comment": null}, "viral_external_website_conversions": {"type": "integer", "index": 45, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "integer", "index": 46, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "integer", "index": 47, "name": "viral_external_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "integer", "index": 48, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "integer", "index": 49, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "integer", "index": 50, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "integer", "index": 51, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "integer", "index": 52, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "integer", "index": 53, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "integer", "index": 54, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "integer", "index": 55, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "integer", "index": 56, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "integer", "index": 57, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "integer", "index": 58, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "integer", "index": 59, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "integer", "index": 60, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "integer", "index": 61, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "integer", "index": 62, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "integer", "index": 63, "name": "viral_video_views", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_campaign"}, "source.linkedin_source.linkedin.ad_analytics_by_creative": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_analytics_by_creative_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "integer", "index": 1, "name": "creative_id", "comment": null}, "day": {"type": "timestamp without time zone", "index": 2, "name": "day", "comment": null}, "clicks": {"type": "integer", "index": 3, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 4, "name": "impressions", "comment": null}, "cost_in_local_currency": {"type": "integer", "index": 5, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "integer", "index": 6, "name": "cost_in_usd", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_creative"}, "source.linkedin_source.linkedin.campaign_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_campaign_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 4, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.campaign_group_history"}, "source.linkedin_source.linkedin.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "account_id": {"type": "bigint", "index": 3, "name": "account_id", "comment": null}, "campaign_group_id": {"type": "integer", "index": 4, "name": "campaign_group_id", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 5, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "version_tag": {"type": "integer", "index": 7, "name": "version_tag", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.campaign_history"}, "source.linkedin_source.linkedin.creative_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "linkedin_ad_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 2, "name": "last_modified_time", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 3, "name": "created_time", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "version_tag": {"type": "integer", "index": 6, "name": "version_tag", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "click_uri": {"type": "text", "index": 8, "name": "click_uri", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.linkedin_source.linkedin.creative_history"}, "source.microsoft_ads_source.microsoft_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "character varying", "index": 2, "name": "name", "comment": null}, "last_modified_time": {"type": "timestamp without time zone", "index": 3, "name": "last_modified_time", "comment": null}, "time_zone": {"type": "text", "index": 4, "name": "time_zone", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history"}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_account_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "device_os": {"type": "text", "index": 3, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 4, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 5, "name": "network", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "ad_distribution": {"type": "text", "index": 7, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 8, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 9, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 10, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 12, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 13, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "start_date": {"type": "date", "index": 5, "name": "start_date", "comment": null}, "end_date": {"type": "integer", "index": 6, "name": "end_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history"}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_ad_group_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "currency_code": {"type": "text", "index": 5, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 6, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 7, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 8, "name": "network", "comment": null}, "language": {"type": "text", "index": 9, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 10, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 11, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 12, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 13, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 14, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 15, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 16, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "title_part_1": {"type": "text", "index": 2, "name": "title_part_1", "comment": null}, "final_url": {"type": "text", "index": 3, "name": "final_url", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 5, "name": "modified_time", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "type": {"type": "text", "index": 7, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history"}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_ad_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "currency_code": {"type": "text", "index": 6, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 7, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 8, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 9, "name": "network", "comment": null}, "language": {"type": "text", "index": 10, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 11, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "account_id": {"type": "integer", "index": 3, "name": "account_id", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 4, "name": "modified_time", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}, "time_zone": {"type": "text", "index": 6, "name": "time_zone", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history"}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_campaign_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "currency_code": {"type": "text", "index": 4, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 5, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 6, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 7, "name": "network", "comment": null}, "ad_distribution": {"type": "text", "index": 8, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 9, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 10, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 11, "name": "top_vs_other", "comment": null}, "budget_association_status": {"type": "text", "index": 12, "name": "budget_association_status", "comment": null}, "clicks": {"type": "integer", "index": 13, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 14, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 15, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "modified_time": {"type": "timestamp without time zone", "index": 3, "name": "modified_time", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "match_type": {"type": "text", "index": 5, "name": "match_type", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history"}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_keyword_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "currency_code": {"type": "text", "index": 7, "name": "currency_code", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "ad_distribution": {"type": "text", "index": 12, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "text", "index": 13, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 14, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 15, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 16, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 17, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 18, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "microsoft_ads_search_performance_daily_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "date", "index": 1, "name": "date", "comment": null}, "account_id": {"type": "bigint", "index": 2, "name": "account_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 4, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "bigint", "index": 5, "name": "ad_id", "comment": null}, "keyword_id": {"type": "bigint", "index": 6, "name": "keyword_id", "comment": null}, "search_query": {"type": "text", "index": 7, "name": "search_query", "comment": null}, "device_os": {"type": "text", "index": 8, "name": "device_os", "comment": null}, "device_type": {"type": "text", "index": 9, "name": "device_type", "comment": null}, "network": {"type": "text", "index": 10, "name": "network", "comment": null}, "language": {"type": "text", "index": 11, "name": "language", "comment": null}, "bid_match_type": {"type": "text", "index": 12, "name": "bid_match_type", "comment": null}, "delivered_match_type": {"type": "text", "index": 13, "name": "delivered_match_type", "comment": null}, "top_vs_other": {"type": "text", "index": 14, "name": "top_vs_other", "comment": null}, "clicks": {"type": "integer", "index": 15, "name": "clicks", "comment": null}, "impressions": {"type": "integer", "index": 16, "name": "impressions", "comment": null}, "spend": {"type": "double precision", "index": 17, "name": "spend", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"}, "source.pinterest_source.pinterest_ads.ad_group_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_ad_group_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "status": {"type": "text", "index": 5, "name": "status", "comment": null}, "start_time": {"type": "text", "index": 6, "name": "start_time", "comment": null}, "end_time": {"type": "integer", "index": 7, "name": "end_time", "comment": null}, "_fivetran_synced": {"type": "text", "index": 8, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history"}, "source.pinterest_source.pinterest_ads.ad_group_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_ad_group_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "text", "index": 5, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 6, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 7, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_id": {"type": "bigint", "index": 8, "name": "campaign_id", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 9, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 10, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 11, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 12, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 13, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 16, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 17, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 19, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 20, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 21, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 22, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 23, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 24, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 25, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 26, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 27, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 28, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report"}, "source.pinterest_source.pinterest_ads.advertiser_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_advertiser_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "updated_time": {"type": "timestamp without time zone", "index": 2, "name": "updated_time", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "billing_profile_status": {"type": "text", "index": 4, "name": "billing_profile_status", "comment": null}, "billing_type": {"type": "text", "index": 5, "name": "billing_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "created_time": {"type": "timestamp without time zone", "index": 7, "name": "created_time", "comment": null}, "currency": {"type": "text", "index": 8, "name": "currency", "comment": null}, "merchant_id": {"type": "integer", "index": 9, "name": "merchant_id", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "owner_user_id": {"type": "integer", "index": 11, "name": "owner_user_id", "comment": null}, "status": {"type": "text", "index": 12, "name": "status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history"}, "source.pinterest_source.pinterest_ads.advertiser_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_advertiser_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "clickthrough_1": {"type": "integer", "index": 4, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 5, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 6, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 7, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 8, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 9, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 10, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 11, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 12, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 13, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 14, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 15, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 16, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 17, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 18, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 19, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 20, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report"}, "source.pinterest_source.pinterest_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "created_time": {"type": "text", "index": 2, "name": "created_time", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "advertiser_id": {"type": "bigint", "index": 6, "name": "advertiser_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_history"}, "source.pinterest_source.pinterest_ads.campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_id": {"type": "bigint", "index": 1, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 5, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 6, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 7, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 8, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 10, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "double precision", "index": 11, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 12, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "double precision", "index": 13, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "double precision", "index": 14, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 15, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "double precision", "index": 16, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 17, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 18, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 19, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 20, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 21, "name": "paid_impression", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 22, "name": "spend_in_micro_dollar", "comment": null}, "total_engagement": {"type": "integer", "index": 23, "name": "total_engagement", "comment": null}, "total_impression_frequency": {"type": "double precision", "index": 24, "name": "total_impression_frequency", "comment": null}, "total_impression_user": {"type": "integer", "index": 25, "name": "total_impression_user", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.campaign_report"}, "source.pinterest_source.pinterest_ads.keyword_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_keyword_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 4, "name": "advertiser_id", "comment": null}, "archived": {"type": "boolean", "index": 5, "name": "archived", "comment": null}, "bid": {"type": "integer", "index": 6, "name": "bid", "comment": null}, "campaign_id": {"type": "bigint", "index": 7, "name": "campaign_id", "comment": null}, "id": {"type": "bigint", "index": 8, "name": "id", "comment": null}, "match_type": {"type": "text", "index": 9, "name": "match_type", "comment": null}, "parent_type": {"type": "text", "index": 10, "name": "parent_type", "comment": null}, "value": {"type": "text", "index": 11, "name": "value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_history"}, "source.pinterest_source.pinterest_ads.keyword_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_keyword_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_group_id": {"type": "bigint", "index": 1, "name": "ad_group_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 2, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 3, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 4, "name": "date", "comment": null}, "keyword_id": {"type": "bigint", "index": 5, "name": "keyword_id", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 7, "name": "pin_promotion_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "ad_group_name": {"type": "text", "index": 9, "name": "ad_group_name", "comment": null}, "ad_group_status": {"type": "text", "index": 10, "name": "ad_group_status", "comment": null}, "campaign_daily_spend_cap": {"type": "integer", "index": 11, "name": "campaign_daily_spend_cap", "comment": null}, "campaign_lifetime_spend_cap": {"type": "integer", "index": 12, "name": "campaign_lifetime_spend_cap", "comment": null}, "campaign_name": {"type": "text", "index": 13, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "text", "index": 14, "name": "campaign_status", "comment": null}, "clickthrough_1": {"type": "integer", "index": 15, "name": "clickthrough_1", "comment": null}, "clickthrough_1_gross": {"type": "integer", "index": 16, "name": "clickthrough_1_gross", "comment": null}, "cpc_in_micro_dollar": {"type": "integer", "index": 17, "name": "cpc_in_micro_dollar", "comment": null}, "cpm_in_micro_dollar": {"type": "double precision", "index": 18, "name": "cpm_in_micro_dollar", "comment": null}, "ctr": {"type": "integer", "index": 19, "name": "ctr", "comment": null}, "ecpc_in_micro_dollar": {"type": "integer", "index": 20, "name": "ecpc_in_micro_dollar", "comment": null}, "ecpm_in_micro_dollar": {"type": "double precision", "index": 21, "name": "ecpm_in_micro_dollar", "comment": null}, "ectr": {"type": "integer", "index": 22, "name": "ectr", "comment": null}, "engagement_1": {"type": "integer", "index": 23, "name": "engagement_1", "comment": null}, "impression_1": {"type": "integer", "index": 24, "name": "impression_1", "comment": null}, "impression_1_gross": {"type": "integer", "index": 25, "name": "impression_1_gross", "comment": null}, "outbound_click_1": {"type": "integer", "index": 26, "name": "outbound_click_1", "comment": null}, "paid_impression": {"type": "integer", "index": 27, "name": "paid_impression", "comment": null}, "pin_promotion_name": {"type": "text", "index": 28, "name": "pin_promotion_name", "comment": null}, "pin_promotion_status": {"type": "text", "index": 29, "name": "pin_promotion_status", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 30, "name": "spend_in_micro_dollar", "comment": null}, "targeting_type": {"type": "text", "index": 31, "name": "targeting_type", "comment": null}, "targeting_value": {"type": "text", "index": 32, "name": "targeting_value", "comment": null}, "total_engagement": {"type": "integer", "index": 33, "name": "total_engagement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.keyword_report"}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_pin_promotion_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "bigint", "index": 1, "name": "id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 2, "name": "ad_group_id", "comment": null}, "created_time": {"type": "text", "index": 3, "name": "created_time", "comment": null}, "destination_url": {"type": "text", "index": 4, "name": "destination_url", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "pin_id": {"type": "bigint", "index": 6, "name": "pin_id", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "creative_type": {"type": "text", "index": 8, "name": "creative_type", "comment": null}, "_fivetran_synced": {"type": "text", "index": 9, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history"}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "pinterest_ads_pin_promotion_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date": {"type": "timestamp without time zone", "index": 1, "name": "date", "comment": null}, "pin_promotion_id": {"type": "bigint", "index": 2, "name": "pin_promotion_id", "comment": null}, "ad_group_id": {"type": "bigint", "index": 3, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "bigint", "index": 4, "name": "campaign_id", "comment": null}, "advertiser_id": {"type": "bigint", "index": 5, "name": "advertiser_id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 6, "name": "_fivetran_synced", "comment": null}, "impression_1": {"type": "integer", "index": 7, "name": "impression_1", "comment": null}, "impression_2": {"type": "integer", "index": 8, "name": "impression_2", "comment": null}, "clickthrough_1": {"type": "integer", "index": 9, "name": "clickthrough_1", "comment": null}, "clickthrough_2": {"type": "integer", "index": 10, "name": "clickthrough_2", "comment": null}, "spend_in_micro_dollar": {"type": "integer", "index": 11, "name": "spend_in_micro_dollar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report"}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history"}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_squad_id": {"type": "text", "index": 2, "name": "ad_squad_id", "comment": null}, "creative_id": {"type": "text", "index": 3, "name": "creative_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history"}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "text", "index": 1, "name": "ad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 3, "name": "impressions", "comment": null}, "spend": {"type": "integer", "index": 4, "name": "spend", "comment": null}, "swipes": {"type": "integer", "index": 5, "name": "swipes", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_squad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history"}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_ad_squad_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_squad_id": {"type": "text", "index": 1, "name": "ad_squad_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "integer", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "_fivetran_synced": {"type": "text", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_campaign_hourly_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "text", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "android_installs": {"type": "integer", "index": 4, "name": "android_installs", "comment": null}, "attachment_avg_view_time_millis": {"type": "integer", "index": 5, "name": "attachment_avg_view_time_millis", "comment": null}, "attachment_quartile_1": {"type": "integer", "index": 6, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "integer", "index": 7, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "integer", "index": 8, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "integer", "index": 9, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_view_completion": {"type": "integer", "index": 10, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "integer", "index": 11, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "integer", "index": 12, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "integer", "index": 13, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "integer", "index": 14, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "integer", "index": 15, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "integer", "index": 16, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "integer", "index": 17, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "integer", "index": 18, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "integer", "index": 19, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "integer", "index": 20, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "integer", "index": 21, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "integer", "index": 22, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "integer", "index": 23, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "integer", "index": 24, "name": "conversion_view_content", "comment": null}, "impressions": {"type": "integer", "index": 25, "name": "impressions", "comment": null}, "ios_installs": {"type": "integer", "index": 26, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "integer", "index": 27, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "integer", "index": 28, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "integer", "index": 29, "name": "quartile_3", "comment": null}, "saves": {"type": "integer", "index": 30, "name": "saves", "comment": null}, "screen_time_millis": {"type": "integer", "index": 31, "name": "screen_time_millis", "comment": null}, "shares": {"type": "integer", "index": 32, "name": "shares", "comment": null}, "spend": {"type": "integer", "index": 33, "name": "spend", "comment": null}, "story_completes": {"type": "integer", "index": 34, "name": "story_completes", "comment": null}, "story_opens": {"type": "integer", "index": 35, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "integer", "index": 36, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "integer", "index": 37, "name": "swipes", "comment": null}, "total_installs": {"type": "integer", "index": 38, "name": "total_installs", "comment": null}, "video_views": {"type": "integer", "index": 39, "name": "video_views", "comment": null}, "view_completion": {"type": "integer", "index": 40, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "integer", "index": 41, "name": "view_time_millis", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_creative_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "ad_account_id": {"type": "text", "index": 2, "name": "ad_account_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "web_view_url": {"type": "text", "index": 4, "name": "web_view_url", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history"}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "snapchat_creative_url_tag_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"creative_id": {"type": "text", "index": 1, "name": "creative_id", "comment": null}, "key": {"type": "text", "index": 2, "name": "key", "comment": null}, "value": {"type": "text", "index": 3, "name": "value", "comment": null}, "updated_at": {"type": "text", "index": 4, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_ad_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "adgroup_id": {"type": "integer", "index": 4, "name": "adgroup_id", "comment": null}, "campaign_id": {"type": "integer", "index": 5, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 6, "name": "create_time", "comment": null}, "ad_name": {"type": "text", "index": 7, "name": "ad_name", "comment": null}, "call_to_action": {"type": "text", "index": 8, "name": "call_to_action", "comment": null}, "status": {"type": "text", "index": 9, "name": "status", "comment": null}, "opt_status": {"type": "text", "index": 10, "name": "opt_status", "comment": null}, "ad_text": {"type": "text", "index": 11, "name": "ad_text", "comment": null}, "video_id": {"type": "text", "index": 12, "name": "video_id", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "open_url": {"type": "integer", "index": 14, "name": "open_url", "comment": null}, "landing_page_url": {"type": "text", "index": 15, "name": "landing_page_url", "comment": null}, "display_name": {"type": "text", "index": 16, "name": "display_name", "comment": null}, "profile_image": {"type": "integer", "index": 17, "name": "profile_image", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 18, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 19, "name": "click_tracking_url", "comment": null}, "playable_url": {"type": "integer", "index": 20, "name": "playable_url", "comment": null}, "is_aco": {"type": "boolean", "index": 21, "name": "is_aco", "comment": null}, "is_creative_authorized": {"type": "boolean", "index": 22, "name": "is_creative_authorized", "comment": null}, "is_new_structure": {"type": "boolean", "index": 23, "name": "is_new_structure", "comment": null}, "image_ids": {"type": "text", "index": 24, "name": "image_ids", "comment": null}, "_fivetran_synced": {"type": "text", "index": 25, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history"}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_ad_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"ad_id": {"type": "integer", "index": 1, "name": "ad_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "integer", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "integer", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "integer", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "integer", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "integer", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly"}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_adgroup_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_id": {"type": "integer", "index": 4, "name": "campaign_id", "comment": null}, "create_time": {"type": "text", "index": 5, "name": "create_time", "comment": null}, "adgroup_name": {"type": "text", "index": 6, "name": "adgroup_name", "comment": null}, "placement_type": {"type": "text", "index": 7, "name": "placement_type", "comment": null}, "profile_image": {"type": "integer", "index": 8, "name": "profile_image", "comment": null}, "landing_page_url": {"type": "integer", "index": 9, "name": "landing_page_url", "comment": null}, "display_name": {"type": "integer", "index": 10, "name": "display_name", "comment": null}, "app_type": {"type": "integer", "index": 11, "name": "app_type", "comment": null}, "app_download_url": {"type": "integer", "index": 12, "name": "app_download_url", "comment": null}, "app_name": {"type": "integer", "index": 13, "name": "app_name", "comment": null}, "external_action": {"type": "text", "index": 14, "name": "external_action", "comment": null}, "deep_external_action": {"type": "integer", "index": 15, "name": "deep_external_action", "comment": null}, "creative_material_mode": {"type": "text", "index": 16, "name": "creative_material_mode", "comment": null}, "audience_type": {"type": "integer", "index": 17, "name": "audience_type", "comment": null}, "gender": {"type": "text", "index": 18, "name": "gender", "comment": null}, "android_osv": {"type": "integer", "index": 19, "name": "android_osv", "comment": null}, "ios_osv": {"type": "integer", "index": 20, "name": "ios_osv", "comment": null}, "budget_mode": {"type": "text", "index": 21, "name": "budget_mode", "comment": null}, "schedule_type": {"type": "text", "index": 22, "name": "schedule_type", "comment": null}, "dayparting": {"type": "integer", "index": 23, "name": "dayparting", "comment": null}, "optimize_goal": {"type": "text", "index": 24, "name": "optimize_goal", "comment": null}, "cpv_video_duration": {"type": "integer", "index": 25, "name": "cpv_video_duration", "comment": null}, "pacing": {"type": "text", "index": 26, "name": "pacing", "comment": null}, "billing_event": {"type": "text", "index": 27, "name": "billing_event", "comment": null}, "bid_type": {"type": "text", "index": 28, "name": "bid_type", "comment": null}, "deep_bid_type": {"type": "integer", "index": 29, "name": "deep_bid_type", "comment": null}, "impression_tracking_url": {"type": "integer", "index": 30, "name": "impression_tracking_url", "comment": null}, "click_tracking_url": {"type": "integer", "index": 31, "name": "click_tracking_url", "comment": null}, "status": {"type": "text", "index": 32, "name": "status", "comment": null}, "opt_status": {"type": "text", "index": 33, "name": "opt_status", "comment": null}, "statistic_type": {"type": "integer", "index": 34, "name": "statistic_type", "comment": null}, "video_download": {"type": "text", "index": 35, "name": "video_download", "comment": null}, "open_url": {"type": "integer", "index": 36, "name": "open_url", "comment": null}, "open_url_type": {"type": "integer", "index": 37, "name": "open_url_type", "comment": null}, "fallback_type": {"type": "integer", "index": 38, "name": "fallback_type", "comment": null}, "budget": {"type": "integer", "index": 39, "name": "budget", "comment": null}, "bid": {"type": "integer", "index": 40, "name": "bid", "comment": null}, "conversion_bid": {"type": "integer", "index": 41, "name": "conversion_bid", "comment": null}, "deep_cpabid": {"type": "integer", "index": 42, "name": "deep_cpabid", "comment": null}, "schedule_start_time": {"type": "text", "index": 43, "name": "schedule_start_time", "comment": null}, "schedule_end_time": {"type": "text", "index": 44, "name": "schedule_end_time", "comment": null}, "app_id": {"type": "integer", "index": 45, "name": "app_id", "comment": null}, "pixel_id": {"type": "integer", "index": 46, "name": "pixel_id", "comment": null}, "enable_inventory_filter": {"type": "boolean", "index": 47, "name": "enable_inventory_filter", "comment": null}, "is_hfss": {"type": "boolean", "index": 48, "name": "is_hfss", "comment": null}, "is_new_structure": {"type": "boolean", "index": 49, "name": "is_new_structure", "comment": null}, "category": {"type": "integer", "index": 50, "name": "category", "comment": null}, "is_comment_disable": {"type": "integer", "index": 51, "name": "is_comment_disable", "comment": null}, "skip_learning_phase": {"type": "integer", "index": 52, "name": "skip_learning_phase", "comment": null}, "frequency": {"type": "integer", "index": 53, "name": "frequency", "comment": null}, "frequency_schedule": {"type": "integer", "index": 54, "name": "frequency_schedule", "comment": null}, "action_days": {"type": "integer", "index": 55, "name": "action_days", "comment": null}, "audience": {"type": "text", "index": 56, "name": "audience", "comment": null}, "excluded_audience": {"type": "text", "index": 57, "name": "excluded_audience", "comment": null}, "location": {"type": "text", "index": 58, "name": "location", "comment": null}, "interest_category_v_2": {"type": "text", "index": 59, "name": "interest_category_v_2", "comment": null}, "pangle_block_app_list_id": {"type": "text", "index": 60, "name": "pangle_block_app_list_id", "comment": null}, "action_categories": {"type": "text", "index": 61, "name": "action_categories", "comment": null}, "placement": {"type": "text", "index": 62, "name": "placement", "comment": null}, "keywords": {"type": "integer", "index": 63, "name": "keywords", "comment": null}, "age": {"type": "text", "index": 64, "name": "age", "comment": null}, "languages": {"type": "text", "index": 65, "name": "languages", "comment": null}, "operation_system": {"type": "text", "index": 66, "name": "operation_system", "comment": null}, "connection_type": {"type": "text", "index": 67, "name": "connection_type", "comment": null}, "carriers": {"type": "text", "index": 68, "name": "carriers", "comment": null}, "video_actions": {"type": "text", "index": 69, "name": "video_actions", "comment": null}, "package": {"type": "integer", "index": 70, "name": "package", "comment": null}, "_fivetran_synced": {"type": "text", "index": 71, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history"}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_adgroup_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"adgroup_id": {"type": "integer", "index": 1, "name": "adgroup_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_advertiser_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "address": {"type": "text", "index": 3, "name": "address", "comment": null}, "company": {"type": "text", "index": 4, "name": "company", "comment": null}, "contacter": {"type": "integer", "index": 5, "name": "contacter", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "currency": {"type": "text", "index": 7, "name": "currency", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "email": {"type": "text", "index": 9, "name": "email", "comment": null}, "industry": {"type": "integer", "index": 10, "name": "industry", "comment": null}, "license_no": {"type": "integer", "index": 11, "name": "license_no", "comment": null}, "license_url": {"type": "integer", "index": 12, "name": "license_url", "comment": null}, "promotion_area": {"type": "integer", "index": 13, "name": "promotion_area", "comment": null}, "reason": {"type": "integer", "index": 14, "name": "reason", "comment": null}, "role": {"type": "text", "index": 15, "name": "role", "comment": null}, "status": {"type": "text", "index": 16, "name": "status", "comment": null}, "telephone": {"type": "integer", "index": 17, "name": "telephone", "comment": null}, "timezone": {"type": "text", "index": 18, "name": "timezone", "comment": null}, "balance": {"type": "double precision", "index": 19, "name": "balance", "comment": null}, "create_time": {"type": "text", "index": 20, "name": "create_time", "comment": null}, "language": {"type": "text", "index": 21, "name": "language", "comment": null}, "phone_number": {"type": "text", "index": 22, "name": "phone_number", "comment": null}, "_fivetran_synced": {"type": "text", "index": 23, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser"}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "updated_at": {"type": "text", "index": 2, "name": "updated_at", "comment": null}, "advertiser_id": {"type": "integer", "index": 3, "name": "advertiser_id", "comment": null}, "campaign_name": {"type": "text", "index": 4, "name": "campaign_name", "comment": null}, "campaign_type": {"type": "text", "index": 5, "name": "campaign_type", "comment": null}, "budget": {"type": "integer", "index": 6, "name": "budget", "comment": null}, "budget_mode": {"type": "text", "index": 7, "name": "budget_mode", "comment": null}, "opt_status": {"type": "text", "index": 8, "name": "opt_status", "comment": null}, "objective_type": {"type": "text", "index": 9, "name": "objective_type", "comment": null}, "is_new_structure": {"type": "boolean", "index": 10, "name": "is_new_structure", "comment": null}, "split_test_variable": {"type": "integer", "index": 11, "name": "split_test_variable", "comment": null}, "create_time": {"type": "text", "index": 12, "name": "create_time", "comment": null}, "_fivetran_synced": {"type": "text", "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": "source.tiktok_ads_source.tiktok_ads.campaign_history"}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "tiktok_campaign_report_hourly_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"campaign_id": {"type": "integer", "index": 1, "name": "campaign_id", "comment": null}, "stat_time_hour": {"type": "timestamp without time zone", "index": 2, "name": "stat_time_hour", "comment": null}, "cost_per_conversion": {"type": "double precision", "index": 3, "name": "cost_per_conversion", "comment": null}, "real_time_conversion": {"type": "integer", "index": 4, "name": "real_time_conversion", "comment": null}, "cpc": {"type": "double precision", "index": 5, "name": "cpc", "comment": null}, "video_play_actions": {"type": "integer", "index": 6, "name": "video_play_actions", "comment": null}, "conversion_rate": {"type": "integer", "index": 7, "name": "conversion_rate", "comment": null}, "video_views_p_75": {"type": "integer", "index": 8, "name": "video_views_p_75", "comment": null}, "result": {"type": "integer", "index": 9, "name": "result", "comment": null}, "video_views_p_50": {"type": "integer", "index": 10, "name": "video_views_p_50", "comment": null}, "impressions": {"type": "integer", "index": 11, "name": "impressions", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "real_time_cost_per_result": {"type": "double precision", "index": 13, "name": "real_time_cost_per_result", "comment": null}, "conversion": {"type": "integer", "index": 14, "name": "conversion", "comment": null}, "real_time_result": {"type": "integer", "index": 15, "name": "real_time_result", "comment": null}, "video_views_p_100": {"type": "integer", "index": 16, "name": "video_views_p_100", "comment": null}, "shares": {"type": "integer", "index": 17, "name": "shares", "comment": null}, "real_time_conversion_rate": {"type": "double precision", "index": 18, "name": "real_time_conversion_rate", "comment": null}, "cost_per_secondary_goal_result": {"type": "text", "index": 19, "name": "cost_per_secondary_goal_result", "comment": null}, "secondary_goal_result_rate": {"type": "text", "index": 20, "name": "secondary_goal_result_rate", "comment": null}, "clicks": {"type": "integer", "index": 21, "name": "clicks", "comment": null}, "cost_per_1000_reached": {"type": "double precision", "index": 22, "name": "cost_per_1000_reached", "comment": null}, "video_views_p_25": {"type": "integer", "index": 23, "name": "video_views_p_25", "comment": null}, "reach": {"type": "integer", "index": 24, "name": "reach", "comment": null}, "real_time_cost_per_conversion": {"type": "double precision", "index": 25, "name": "real_time_cost_per_conversion", "comment": null}, "profile_visits_rate": {"type": "integer", "index": 26, "name": "profile_visits_rate", "comment": null}, "average_video_play": {"type": "double precision", "index": 27, "name": "average_video_play", "comment": null}, "profile_visits": {"type": "integer", "index": 28, "name": "profile_visits", "comment": null}, "cpm": {"type": "double precision", "index": 29, "name": "cpm", "comment": null}, "ctr": {"type": "double precision", "index": 30, "name": "ctr", "comment": null}, "video_watched_2_s": {"type": "integer", "index": 31, "name": "video_watched_2_s", "comment": null}, "follows": {"type": "integer", "index": 32, "name": "follows", "comment": null}, "result_rate": {"type": "double precision", "index": 33, "name": "result_rate", "comment": null}, "video_watched_6_s": {"type": "integer", "index": 34, "name": "video_watched_6_s", "comment": null}, "secondary_goal_result": {"type": "text", "index": 35, "name": "secondary_goal_result", "comment": null}, "cost_per_result": {"type": "double precision", "index": 36, "name": "cost_per_result", "comment": null}, "average_video_play_per_user": {"type": "double precision", "index": 37, "name": "average_video_play_per_user", "comment": null}, "real_time_result_rate": {"type": "double precision", "index": 38, "name": "real_time_result_rate", "comment": null}, "spend": {"type": "double precision", "index": 39, "name": "spend", "comment": null}, "likes": {"type": "integer", "index": 40, "name": "likes", "comment": null}, "_fivetran_synced": {"type": "text", "index": 41, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"}, "source.twitter_ads_source.twitter_ads.account_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_account_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "business_id": {"type": "integer", "index": 3, "name": "business_id", "comment": null}, "business_name": {"type": "integer", "index": 4, "name": "business_name", "comment": null}, "created_at": {"type": "text", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "id": {"type": "text", "index": 7, "name": "id", "comment": null}, "industry_type": {"type": "integer", "index": 8, "name": "industry_type", "comment": null}, "name": {"type": "character varying", "index": 9, "name": "name", "comment": null}, "salt": {"type": "integer", "index": 10, "name": "salt", "comment": null}, "timezone": {"type": "text", "index": 11, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "text", "index": 12, "name": "timezone_switch_at", "comment": null}, "updated_at": {"type": "text", "index": 13, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.account_history"}, "source.twitter_ads_source.twitter_ads.campaign_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_campaign_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "text", "index": 4, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "integer", "index": 5, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "boolean", "index": 6, "name": "deleted", "comment": null}, "duration_in_days": {"type": "integer", "index": 7, "name": "duration_in_days", "comment": null}, "end_time": {"type": "text", "index": 8, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 9, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "integer", "index": 10, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "text", "index": 11, "name": "funding_instrument_id", "comment": null}, "id": {"type": "text", "index": 12, "name": "id", "comment": null}, "name": {"type": "text", "index": 13, "name": "name", "comment": null}, "servable": {"type": "boolean", "index": 14, "name": "servable", "comment": null}, "standard_delivery": {"type": "boolean", "index": 15, "name": "standard_delivery", "comment": null}, "start_time": {"type": "text", "index": 16, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 17, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 18, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history"}, "source.twitter_ads_source.twitter_ads.campaign_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_campaign_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "campaign_id": {"type": "text", "index": 2, "name": "campaign_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 3, "name": "date", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report"}, "source.twitter_ads_source.twitter_ads.line_item_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_line_item_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"advertiser_domain": {"type": "text", "index": 1, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "integer", "index": 2, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "boolean", "index": 3, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "integer", "index": 4, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "text", "index": 5, "name": "bid_type", "comment": null}, "bid_unit": {"type": "text", "index": 6, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "text", "index": 7, "name": "campaign_id", "comment": null}, "charge_by": {"type": "text", "index": 8, "name": "charge_by", "comment": null}, "created_at": {"type": "text", "index": 9, "name": "created_at", "comment": null}, "creative_source": {"type": "text", "index": 10, "name": "creative_source", "comment": null}, "currency": {"type": "text", "index": 11, "name": "currency", "comment": null}, "deleted": {"type": "boolean", "index": 12, "name": "deleted", "comment": null}, "end_time": {"type": "integer", "index": 13, "name": "end_time", "comment": null}, "entity_status": {"type": "text", "index": 14, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 15, "name": "id", "comment": null}, "name": {"type": "text", "index": 16, "name": "name", "comment": null}, "objective": {"type": "text", "index": 17, "name": "objective", "comment": null}, "optimization": {"type": "text", "index": 18, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "integer", "index": 19, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "text", "index": 20, "name": "product_type", "comment": null}, "start_time": {"type": "integer", "index": 21, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "integer", "index": 22, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "integer", "index": 23, "name": "total_budget_amount_local_micro", "comment": null}, "updated_at": {"type": "text", "index": 24, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history"}, "source.twitter_ads_source.twitter_ads.line_item_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_line_item_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "text", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "timestamp without time zone", "index": 2, "name": "date", "comment": null}, "line_item_id": {"type": "text", "index": 3, "name": "line_item_id", "comment": null}, "placement": {"type": "text", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "text", "index": 5, "name": "_fivetran_synced", "comment": null}, "app_clicks": {"type": "integer", "index": 6, "name": "app_clicks", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 7, "name": "billed_charge_local_micro", "comment": null}, "billed_engagements": {"type": "integer", "index": 8, "name": "billed_engagements", "comment": null}, "card_engagements": {"type": "integer", "index": 9, "name": "card_engagements", "comment": null}, "carousel_swipes": {"type": "integer", "index": 10, "name": "carousel_swipes", "comment": null}, "clicks": {"type": "integer", "index": 11, "name": "clicks", "comment": null}, "conversion_custom_metric": {"type": "integer", "index": 12, "name": "conversion_custom_metric", "comment": null}, "conversion_custom_order_quantity": {"type": "integer", "index": 13, "name": "conversion_custom_order_quantity", "comment": null}, "conversion_custom_order_quantity_engagement": {"type": "integer", "index": 14, "name": "conversion_custom_order_quantity_engagement", "comment": null}, "conversion_custom_order_quantity_view": {"type": "integer", "index": 15, "name": "conversion_custom_order_quantity_view", "comment": null}, "conversion_custom_post_engagement": {"type": "integer", "index": 16, "name": "conversion_custom_post_engagement", "comment": null}, "conversion_custom_post_view": {"type": "integer", "index": 17, "name": "conversion_custom_post_view", "comment": null}, "conversion_custom_sale_amount": {"type": "integer", "index": 18, "name": "conversion_custom_sale_amount", "comment": null}, "conversion_custom_sale_amount_engagement": {"type": "integer", "index": 19, "name": "conversion_custom_sale_amount_engagement", "comment": null}, "conversion_custom_sale_amount_view": {"type": "integer", "index": 20, "name": "conversion_custom_sale_amount_view", "comment": null}, "conversion_downloads_metric": {"type": "integer", "index": 21, "name": "conversion_downloads_metric", "comment": null}, "conversion_downloads_order_quantity": {"type": "integer", "index": 22, "name": "conversion_downloads_order_quantity", "comment": null}, "conversion_downloads_order_quantity_engagement": {"type": "integer", "index": 23, "name": "conversion_downloads_order_quantity_engagement", "comment": null}, "conversion_downloads_order_quantity_view": {"type": "integer", "index": 24, "name": "conversion_downloads_order_quantity_view", "comment": null}, "conversion_downloads_post_engagement": {"type": "integer", "index": 25, "name": "conversion_downloads_post_engagement", "comment": null}, "conversion_downloads_post_view": {"type": "integer", "index": 26, "name": "conversion_downloads_post_view", "comment": null}, "conversion_downloads_sale_amount": {"type": "integer", "index": 27, "name": "conversion_downloads_sale_amount", "comment": null}, "conversion_downloads_sale_amount_engagement": {"type": "integer", "index": 28, "name": "conversion_downloads_sale_amount_engagement", "comment": null}, "conversion_downloads_sale_amount_view": {"type": "integer", "index": 29, "name": "conversion_downloads_sale_amount_view", "comment": null}, "conversion_purchases_assisted": {"type": "integer", "index": 30, "name": "conversion_purchases_assisted", "comment": null}, "conversion_purchases_metric": {"type": "integer", "index": 31, "name": "conversion_purchases_metric", "comment": null}, "conversion_purchases_order_quantity": {"type": "integer", "index": 32, "name": "conversion_purchases_order_quantity", "comment": null}, "conversion_purchases_order_quantity_engagement": {"type": "integer", "index": 33, "name": "conversion_purchases_order_quantity_engagement", "comment": null}, "conversion_purchases_order_quantity_view": {"type": "integer", "index": 34, "name": "conversion_purchases_order_quantity_view", "comment": null}, "conversion_purchases_post_engagement": {"type": "integer", "index": 35, "name": "conversion_purchases_post_engagement", "comment": null}, "conversion_purchases_post_view": {"type": "integer", "index": 36, "name": "conversion_purchases_post_view", "comment": null}, "conversion_purchases_sale_amount": {"type": "integer", "index": 37, "name": "conversion_purchases_sale_amount", "comment": null}, "conversion_purchases_sale_amount_engagement": {"type": "integer", "index": 38, "name": "conversion_purchases_sale_amount_engagement", "comment": null}, "conversion_purchases_sale_amount_view": {"type": "integer", "index": 39, "name": "conversion_purchases_sale_amount_view", "comment": null}, "conversion_sign_ups_assisted": {"type": "integer", "index": 40, "name": "conversion_sign_ups_assisted", "comment": null}, "conversion_sign_ups_metric": {"type": "integer", "index": 41, "name": "conversion_sign_ups_metric", "comment": null}, "conversion_sign_ups_order_quantity": {"type": "integer", "index": 42, "name": "conversion_sign_ups_order_quantity", "comment": null}, "conversion_sign_ups_order_quantity_engagement": {"type": "integer", "index": 43, "name": "conversion_sign_ups_order_quantity_engagement", "comment": null}, "conversion_sign_ups_order_quantity_view": {"type": "integer", "index": 44, "name": "conversion_sign_ups_order_quantity_view", "comment": null}, "conversion_sign_ups_post_engagement": {"type": "integer", "index": 45, "name": "conversion_sign_ups_post_engagement", "comment": null}, "conversion_sign_ups_post_view": {"type": "integer", "index": 46, "name": "conversion_sign_ups_post_view", "comment": null}, "conversion_sign_ups_sale_amount": {"type": "integer", "index": 47, "name": "conversion_sign_ups_sale_amount", "comment": null}, "conversion_sign_ups_sale_amount_engagement": {"type": "integer", "index": 48, "name": "conversion_sign_ups_sale_amount_engagement", "comment": null}, "conversion_sign_ups_sale_amount_view": {"type": "integer", "index": 49, "name": "conversion_sign_ups_sale_amount_view", "comment": null}, "conversion_site_visits_metric": {"type": "integer", "index": 50, "name": "conversion_site_visits_metric", "comment": null}, "conversion_site_visits_order_quantity": {"type": "integer", "index": 51, "name": "conversion_site_visits_order_quantity", "comment": null}, "conversion_site_visits_order_quantity_engagement": {"type": "integer", "index": 52, "name": "conversion_site_visits_order_quantity_engagement", "comment": null}, "conversion_site_visits_order_quantity_view": {"type": "integer", "index": 53, "name": "conversion_site_visits_order_quantity_view", "comment": null}, "conversion_site_visits_post_engagement": {"type": "integer", "index": 54, "name": "conversion_site_visits_post_engagement", "comment": null}, "conversion_site_visits_post_view": {"type": "integer", "index": 55, "name": "conversion_site_visits_post_view", "comment": null}, "conversion_site_visits_sale_amount": {"type": "integer", "index": 56, "name": "conversion_site_visits_sale_amount", "comment": null}, "conversion_site_visits_sale_amount_engagement": {"type": "integer", "index": 57, "name": "conversion_site_visits_sale_amount_engagement", "comment": null}, "conversion_site_visits_sale_amount_view": {"type": "integer", "index": 58, "name": "conversion_site_visits_sale_amount_view", "comment": null}, "engagements": {"type": "integer", "index": 59, "name": "engagements", "comment": null}, "follows": {"type": "integer", "index": 60, "name": "follows", "comment": null}, "impressions": {"type": "integer", "index": 61, "name": "impressions", "comment": null}, "likes": {"type": "integer", "index": 62, "name": "likes", "comment": null}, "media_engagements": {"type": "integer", "index": 63, "name": "media_engagements", "comment": null}, "media_views": {"type": "integer", "index": 64, "name": "media_views", "comment": null}, "mobile_conversion_achievements_unlocked_assisted": {"type": "integer", "index": 65, "name": "mobile_conversion_achievements_unlocked_assisted", "comment": null}, "mobile_conversion_achievements_unlocked_order_quantity": {"type": "integer", "index": 66, "name": "mobile_conversion_achievements_unlocked_order_quantity", "comment": null}, "mobile_conversion_achievements_unlocked_post_engagement": {"type": "integer", "index": 67, "name": "mobile_conversion_achievements_unlocked_post_engagement", "comment": null}, "mobile_conversion_achievements_unlocked_post_view": {"type": "integer", "index": 68, "name": "mobile_conversion_achievements_unlocked_post_view", "comment": null}, "mobile_conversion_achievements_unlocked_sale_amount": {"type": "integer", "index": 69, "name": "mobile_conversion_achievements_unlocked_sale_amount", "comment": null}, "mobile_conversion_add_to_carts_assisted": {"type": "integer", "index": 70, "name": "mobile_conversion_add_to_carts_assisted", "comment": null}, "mobile_conversion_add_to_carts_order_quantity": {"type": "integer", "index": 71, "name": "mobile_conversion_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_add_to_carts_post_engagement": {"type": "integer", "index": 72, "name": "mobile_conversion_add_to_carts_post_engagement", "comment": null}, "mobile_conversion_add_to_carts_post_view": {"type": "integer", "index": 73, "name": "mobile_conversion_add_to_carts_post_view", "comment": null}, "mobile_conversion_add_to_carts_sale_amount": {"type": "integer", "index": 74, "name": "mobile_conversion_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_add_to_wishlists_assisted": {"type": "integer", "index": 75, "name": "mobile_conversion_add_to_wishlists_assisted", "comment": null}, "mobile_conversion_add_to_wishlists_order_quantity": {"type": "integer", "index": 76, "name": "mobile_conversion_add_to_wishlists_order_quantity", "comment": null}, "mobile_conversion_add_to_wishlists_post_engagement": {"type": "integer", "index": 77, "name": "mobile_conversion_add_to_wishlists_post_engagement", "comment": null}, "mobile_conversion_add_to_wishlists_post_view": {"type": "integer", "index": 78, "name": "mobile_conversion_add_to_wishlists_post_view", "comment": null}, "mobile_conversion_add_to_wishlists_sale_amount": {"type": "integer", "index": 79, "name": "mobile_conversion_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_checkouts_initiated_assisted": {"type": "integer", "index": 80, "name": "mobile_conversion_checkouts_initiated_assisted", "comment": null}, "mobile_conversion_checkouts_initiated_order_quantity": {"type": "integer", "index": 81, "name": "mobile_conversion_checkouts_initiated_order_quantity", "comment": null}, "mobile_conversion_checkouts_initiated_post_engagement": {"type": "integer", "index": 82, "name": "mobile_conversion_checkouts_initiated_post_engagement", "comment": null}, "mobile_conversion_checkouts_initiated_post_view": {"type": "integer", "index": 83, "name": "mobile_conversion_checkouts_initiated_post_view", "comment": null}, "mobile_conversion_checkouts_initiated_sale_amount": {"type": "integer", "index": 84, "name": "mobile_conversion_checkouts_initiated_sale_amount", "comment": null}, "mobile_conversion_content_views_assisted": {"type": "integer", "index": 85, "name": "mobile_conversion_content_views_assisted", "comment": null}, "mobile_conversion_content_views_order_quantity": {"type": "integer", "index": 86, "name": "mobile_conversion_content_views_order_quantity", "comment": null}, "mobile_conversion_content_views_post_engagement": {"type": "integer", "index": 87, "name": "mobile_conversion_content_views_post_engagement", "comment": null}, "mobile_conversion_content_views_post_view": {"type": "integer", "index": 88, "name": "mobile_conversion_content_views_post_view", "comment": null}, "mobile_conversion_content_views_sale_amount": {"type": "integer", "index": 89, "name": "mobile_conversion_content_views_sale_amount", "comment": null}, "mobile_conversion_downloads_order_quantity": {"type": "integer", "index": 90, "name": "mobile_conversion_downloads_order_quantity", "comment": null}, "mobile_conversion_downloads_post_engagement": {"type": "integer", "index": 91, "name": "mobile_conversion_downloads_post_engagement", "comment": null}, "mobile_conversion_downloads_post_view": {"type": "integer", "index": 92, "name": "mobile_conversion_downloads_post_view", "comment": null}, "mobile_conversion_downloads_sale_amount": {"type": "integer", "index": 93, "name": "mobile_conversion_downloads_sale_amount", "comment": null}, "mobile_conversion_installs_assisted": {"type": "integer", "index": 94, "name": "mobile_conversion_installs_assisted", "comment": null}, "mobile_conversion_installs_order_quantity": {"type": "integer", "index": 95, "name": "mobile_conversion_installs_order_quantity", "comment": null}, "mobile_conversion_installs_post_engagement": {"type": "integer", "index": 96, "name": "mobile_conversion_installs_post_engagement", "comment": null}, "mobile_conversion_installs_post_view": {"type": "integer", "index": 97, "name": "mobile_conversion_installs_post_view", "comment": null}, "mobile_conversion_installs_sale_amount": {"type": "integer", "index": 98, "name": "mobile_conversion_installs_sale_amount", "comment": null}, "mobile_conversion_invites_assisted": {"type": "integer", "index": 99, "name": "mobile_conversion_invites_assisted", "comment": null}, "mobile_conversion_invites_order_quantity": {"type": "integer", "index": 100, "name": "mobile_conversion_invites_order_quantity", "comment": null}, "mobile_conversion_invites_post_engagement": {"type": "integer", "index": 101, "name": "mobile_conversion_invites_post_engagement", "comment": null}, "mobile_conversion_invites_post_view": {"type": "integer", "index": 102, "name": "mobile_conversion_invites_post_view", "comment": null}, "mobile_conversion_invites_sale_amount": {"type": "integer", "index": 103, "name": "mobile_conversion_invites_sale_amount", "comment": null}, "mobile_conversion_key_page_views_post_engagement": {"type": "integer", "index": 104, "name": "mobile_conversion_key_page_views_post_engagement", "comment": null}, "mobile_conversion_key_page_views_post_view": {"type": "integer", "index": 105, "name": "mobile_conversion_key_page_views_post_view", "comment": null}, "mobile_conversion_levels_achieved_assisted": {"type": "integer", "index": 106, "name": "mobile_conversion_levels_achieved_assisted", "comment": null}, "mobile_conversion_levels_achieved_order_quantity": {"type": "integer", "index": 107, "name": "mobile_conversion_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_levels_achieved_post_engagement": {"type": "integer", "index": 108, "name": "mobile_conversion_levels_achieved_post_engagement", "comment": null}, "mobile_conversion_levels_achieved_post_view": {"type": "integer", "index": 109, "name": "mobile_conversion_levels_achieved_post_view", "comment": null}, "mobile_conversion_levels_achieved_sale_amount": {"type": "integer", "index": 110, "name": "mobile_conversion_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_metric": {"type": "integer", "index": 111, "name": "mobile_conversion_lifetime_value_achievements_unlocked_metric", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_order_qu": {"type": "integer", "index": 112, "name": "mobile_conversion_lifetime_value_achievements_unlocked_order_qu", "comment": null}, "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo": {"type": "integer", "index": 113, "name": "mobile_conversion_lifetime_value_achievements_unlocked_sale_amo", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_metric": {"type": "integer", "index": 114, "name": "mobile_conversion_lifetime_value_add_to_carts_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_order_quantity": {"type": "integer", "index": 115, "name": "mobile_conversion_lifetime_value_add_to_carts_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_add_to_carts_sale_amount": {"type": "integer", "index": 116, "name": "mobile_conversion_lifetime_value_add_to_carts_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_metric": {"type": "integer", "index": 117, "name": "mobile_conversion_lifetime_value_add_to_wishlists_metric", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit": {"type": "integer", "index": 118, "name": "mobile_conversion_lifetime_value_add_to_wishlists_order_quantit", "comment": null}, "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount": {"type": "integer", "index": 119, "name": "mobile_conversion_lifetime_value_add_to_wishlists_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_metric": {"type": "integer", "index": 120, "name": "mobile_conversion_lifetime_value_checkouts_initiated_metric", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_order_quan": {"type": "integer", "index": 121, "name": "mobile_conversion_lifetime_value_checkouts_initiated_order_quan", "comment": null}, "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun": {"type": "integer", "index": 122, "name": "mobile_conversion_lifetime_value_checkouts_initiated_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_content_views_metric": {"type": "integer", "index": 123, "name": "mobile_conversion_lifetime_value_content_views_metric", "comment": null}, "mobile_conversion_lifetime_value_content_views_order_quantity": {"type": "integer", "index": 124, "name": "mobile_conversion_lifetime_value_content_views_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_content_views_sale_amount": {"type": "integer", "index": 125, "name": "mobile_conversion_lifetime_value_content_views_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_invites_metric": {"type": "integer", "index": 126, "name": "mobile_conversion_lifetime_value_invites_metric", "comment": null}, "mobile_conversion_lifetime_value_invites_order_quantity": {"type": "integer", "index": 127, "name": "mobile_conversion_lifetime_value_invites_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_invites_sale_amount": {"type": "integer", "index": 128, "name": "mobile_conversion_lifetime_value_invites_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_metric": {"type": "integer", "index": 129, "name": "mobile_conversion_lifetime_value_levels_achieved_metric", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_order_quantity": {"type": "integer", "index": 130, "name": "mobile_conversion_lifetime_value_levels_achieved_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_levels_achieved_sale_amount": {"type": "integer", "index": 131, "name": "mobile_conversion_lifetime_value_levels_achieved_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_logins_metric": {"type": "integer", "index": 132, "name": "mobile_conversion_lifetime_value_logins_metric", "comment": null}, "mobile_conversion_lifetime_value_logins_order_quantity": {"type": "integer", "index": 133, "name": "mobile_conversion_lifetime_value_logins_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_logins_sale_amount": {"type": "integer", "index": 134, "name": "mobile_conversion_lifetime_value_logins_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_metric": {"type": "integer", "index": 135, "name": "mobile_conversion_lifetime_value_payment_info_additions_metric", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_order_q": {"type": "integer", "index": 136, "name": "mobile_conversion_lifetime_value_payment_info_additions_order_q", "comment": null}, "mobile_conversion_lifetime_value_payment_info_additions_sale_am": {"type": "integer", "index": 137, "name": "mobile_conversion_lifetime_value_payment_info_additions_sale_am", "comment": null}, "mobile_conversion_lifetime_value_purchases_metric": {"type": "integer", "index": 138, "name": "mobile_conversion_lifetime_value_purchases_metric", "comment": null}, "mobile_conversion_lifetime_value_purchases_order_quantity": {"type": "integer", "index": 139, "name": "mobile_conversion_lifetime_value_purchases_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_purchases_sale_amount": {"type": "integer", "index": 140, "name": "mobile_conversion_lifetime_value_purchases_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_rates_metric": {"type": "integer", "index": 141, "name": "mobile_conversion_lifetime_value_rates_metric", "comment": null}, "mobile_conversion_lifetime_value_rates_order_quantity": {"type": "integer", "index": 142, "name": "mobile_conversion_lifetime_value_rates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_rates_sale_amount": {"type": "integer", "index": 143, "name": "mobile_conversion_lifetime_value_rates_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_reservations_metric": {"type": "integer", "index": 144, "name": "mobile_conversion_lifetime_value_reservations_metric", "comment": null}, "mobile_conversion_lifetime_value_reservations_order_quantity": {"type": "integer", "index": 145, "name": "mobile_conversion_lifetime_value_reservations_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_reservations_sale_amount": {"type": "integer", "index": 146, "name": "mobile_conversion_lifetime_value_reservations_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_searches_metric": {"type": "integer", "index": 147, "name": "mobile_conversion_lifetime_value_searches_metric", "comment": null}, "mobile_conversion_lifetime_value_searches_order_quantity": {"type": "integer", "index": 148, "name": "mobile_conversion_lifetime_value_searches_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_searches_sale_amount": {"type": "integer", "index": 149, "name": "mobile_conversion_lifetime_value_searches_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_shares_metric": {"type": "integer", "index": 150, "name": "mobile_conversion_lifetime_value_shares_metric", "comment": null}, "mobile_conversion_lifetime_value_shares_order_quantity": {"type": "integer", "index": 151, "name": "mobile_conversion_lifetime_value_shares_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_shares_sale_amount": {"type": "integer", "index": 152, "name": "mobile_conversion_lifetime_value_shares_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_metric": {"type": "integer", "index": 153, "name": "mobile_conversion_lifetime_value_sign_ups_metric", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_order_quantity": {"type": "integer", "index": 154, "name": "mobile_conversion_lifetime_value_sign_ups_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_sign_ups_sale_amount": {"type": "integer", "index": 155, "name": "mobile_conversion_lifetime_value_sign_ups_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_metric": {"type": "integer", "index": 156, "name": "mobile_conversion_lifetime_value_spent_credits_metric", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_order_quantity": {"type": "integer", "index": 157, "name": "mobile_conversion_lifetime_value_spent_credits_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_spent_credits_sale_amount": {"type": "integer", "index": 158, "name": "mobile_conversion_lifetime_value_spent_credits_sale_amount", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_metric": {"type": "integer", "index": 159, "name": "mobile_conversion_lifetime_value_tutorials_completed_metric", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_order_quan": {"type": "integer", "index": 160, "name": "mobile_conversion_lifetime_value_tutorials_completed_order_quan", "comment": null}, "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun": {"type": "integer", "index": 161, "name": "mobile_conversion_lifetime_value_tutorials_completed_sale_amoun", "comment": null}, "mobile_conversion_lifetime_value_updates_metric": {"type": "integer", "index": 162, "name": "mobile_conversion_lifetime_value_updates_metric", "comment": null}, "mobile_conversion_lifetime_value_updates_order_quantity": {"type": "integer", "index": 163, "name": "mobile_conversion_lifetime_value_updates_order_quantity", "comment": null}, "mobile_conversion_lifetime_value_updates_sale_amount": {"type": "integer", "index": 164, "name": "mobile_conversion_lifetime_value_updates_sale_amount", "comment": null}, "mobile_conversion_logins_assisted": {"type": "integer", "index": 165, "name": "mobile_conversion_logins_assisted", "comment": null}, "mobile_conversion_logins_order_quantity": {"type": "integer", "index": 166, "name": "mobile_conversion_logins_order_quantity", "comment": null}, "mobile_conversion_logins_post_engagement": {"type": "integer", "index": 167, "name": "mobile_conversion_logins_post_engagement", "comment": null}, "mobile_conversion_logins_post_view": {"type": "integer", "index": 168, "name": "mobile_conversion_logins_post_view", "comment": null}, "mobile_conversion_logins_sale_amount": {"type": "integer", "index": 169, "name": "mobile_conversion_logins_sale_amount", "comment": null}, "mobile_conversion_payment_info_additions_assisted": {"type": "integer", "index": 170, "name": "mobile_conversion_payment_info_additions_assisted", "comment": null}, "mobile_conversion_payment_info_additions_order_quantity": {"type": "integer", "index": 171, "name": "mobile_conversion_payment_info_additions_order_quantity", "comment": null}, "mobile_conversion_payment_info_additions_post_engagement": {"type": "integer", "index": 172, "name": "mobile_conversion_payment_info_additions_post_engagement", "comment": null}, "mobile_conversion_payment_info_additions_post_view": {"type": "integer", "index": 173, "name": "mobile_conversion_payment_info_additions_post_view", "comment": null}, "mobile_conversion_payment_info_additions_sale_amount": {"type": "integer", "index": 174, "name": "mobile_conversion_payment_info_additions_sale_amount", "comment": null}, "mobile_conversion_purchases_assisted": {"type": "integer", "index": 175, "name": "mobile_conversion_purchases_assisted", "comment": null}, "mobile_conversion_purchases_order_quantity": {"type": "integer", "index": 176, "name": "mobile_conversion_purchases_order_quantity", "comment": null}, "mobile_conversion_purchases_post_engagement": {"type": "integer", "index": 177, "name": "mobile_conversion_purchases_post_engagement", "comment": null}, "mobile_conversion_purchases_post_view": {"type": "integer", "index": 178, "name": "mobile_conversion_purchases_post_view", "comment": null}, "mobile_conversion_purchases_sale_amount": {"type": "integer", "index": 179, "name": "mobile_conversion_purchases_sale_amount", "comment": null}, "mobile_conversion_rates_assisted": {"type": "integer", "index": 180, "name": "mobile_conversion_rates_assisted", "comment": null}, "mobile_conversion_rates_order_quantity": {"type": "integer", "index": 181, "name": "mobile_conversion_rates_order_quantity", "comment": null}, "mobile_conversion_rates_post_engagement": {"type": "integer", "index": 182, "name": "mobile_conversion_rates_post_engagement", "comment": null}, "mobile_conversion_rates_post_view": {"type": "integer", "index": 183, "name": "mobile_conversion_rates_post_view", "comment": null}, "mobile_conversion_rates_sale_amount": {"type": "integer", "index": 184, "name": "mobile_conversion_rates_sale_amount", "comment": null}, "mobile_conversion_re_engages_assisted": {"type": "integer", "index": 185, "name": "mobile_conversion_re_engages_assisted", "comment": null}, "mobile_conversion_re_engages_order_quantity": {"type": "integer", "index": 186, "name": "mobile_conversion_re_engages_order_quantity", "comment": null}, "mobile_conversion_re_engages_post_engagement": {"type": "integer", "index": 187, "name": "mobile_conversion_re_engages_post_engagement", "comment": null}, "mobile_conversion_re_engages_post_view": {"type": "integer", "index": 188, "name": "mobile_conversion_re_engages_post_view", "comment": null}, "mobile_conversion_re_engages_sale_amount": {"type": "integer", "index": 189, "name": "mobile_conversion_re_engages_sale_amount", "comment": null}, "mobile_conversion_reservations_assisted": {"type": "integer", "index": 190, "name": "mobile_conversion_reservations_assisted", "comment": null}, "mobile_conversion_reservations_order_quantity": {"type": "integer", "index": 191, "name": "mobile_conversion_reservations_order_quantity", "comment": null}, "mobile_conversion_reservations_post_engagement": {"type": "integer", "index": 192, "name": "mobile_conversion_reservations_post_engagement", "comment": null}, "mobile_conversion_reservations_post_view": {"type": "integer", "index": 193, "name": "mobile_conversion_reservations_post_view", "comment": null}, "mobile_conversion_reservations_sale_amount": {"type": "integer", "index": 194, "name": "mobile_conversion_reservations_sale_amount", "comment": null}, "mobile_conversion_searches_assisted": {"type": "integer", "index": 195, "name": "mobile_conversion_searches_assisted", "comment": null}, "mobile_conversion_searches_order_quantity": {"type": "integer", "index": 196, "name": "mobile_conversion_searches_order_quantity", "comment": null}, "mobile_conversion_searches_post_engagement": {"type": "integer", "index": 197, "name": "mobile_conversion_searches_post_engagement", "comment": null}, "mobile_conversion_searches_post_view": {"type": "integer", "index": 198, "name": "mobile_conversion_searches_post_view", "comment": null}, "mobile_conversion_searches_sale_amount": {"type": "integer", "index": 199, "name": "mobile_conversion_searches_sale_amount", "comment": null}, "mobile_conversion_shares_assisted": {"type": "integer", "index": 200, "name": "mobile_conversion_shares_assisted", "comment": null}, "mobile_conversion_shares_order_quantity": {"type": "integer", "index": 201, "name": "mobile_conversion_shares_order_quantity", "comment": null}, "mobile_conversion_shares_post_engagement": {"type": "integer", "index": 202, "name": "mobile_conversion_shares_post_engagement", "comment": null}, "mobile_conversion_shares_post_view": {"type": "integer", "index": 203, "name": "mobile_conversion_shares_post_view", "comment": null}, "mobile_conversion_shares_sale_amount": {"type": "integer", "index": 204, "name": "mobile_conversion_shares_sale_amount", "comment": null}, "mobile_conversion_sign_ups_assisted": {"type": "integer", "index": 205, "name": "mobile_conversion_sign_ups_assisted", "comment": null}, "mobile_conversion_sign_ups_order_quantity": {"type": "integer", "index": 206, "name": "mobile_conversion_sign_ups_order_quantity", "comment": null}, "mobile_conversion_sign_ups_post_engagement": {"type": "integer", "index": 207, "name": "mobile_conversion_sign_ups_post_engagement", "comment": null}, "mobile_conversion_sign_ups_post_view": {"type": "integer", "index": 208, "name": "mobile_conversion_sign_ups_post_view", "comment": null}, "mobile_conversion_sign_ups_sale_amount": {"type": "integer", "index": 209, "name": "mobile_conversion_sign_ups_sale_amount", "comment": null}, "mobile_conversion_site_visits_order_quantity": {"type": "integer", "index": 210, "name": "mobile_conversion_site_visits_order_quantity", "comment": null}, "mobile_conversion_site_visits_post_engagement": {"type": "integer", "index": 211, "name": "mobile_conversion_site_visits_post_engagement", "comment": null}, "mobile_conversion_site_visits_post_view": {"type": "integer", "index": 212, "name": "mobile_conversion_site_visits_post_view", "comment": null}, "mobile_conversion_site_visits_sale_amount": {"type": "integer", "index": 213, "name": "mobile_conversion_site_visits_sale_amount", "comment": null}, "mobile_conversion_spent_credits_assisted": {"type": "integer", "index": 214, "name": "mobile_conversion_spent_credits_assisted", "comment": null}, "mobile_conversion_spent_credits_order_quantity": {"type": "integer", "index": 215, "name": "mobile_conversion_spent_credits_order_quantity", "comment": null}, "mobile_conversion_spent_credits_post_engagement": {"type": "integer", "index": 216, "name": "mobile_conversion_spent_credits_post_engagement", "comment": null}, "mobile_conversion_spent_credits_post_view": {"type": "integer", "index": 217, "name": "mobile_conversion_spent_credits_post_view", "comment": null}, "mobile_conversion_spent_credits_sale_amount": {"type": "integer", "index": 218, "name": "mobile_conversion_spent_credits_sale_amount", "comment": null}, "mobile_conversion_tutorials_completed_assisted": {"type": "integer", "index": 219, "name": "mobile_conversion_tutorials_completed_assisted", "comment": null}, "mobile_conversion_tutorials_completed_order_quantity": {"type": "integer", "index": 220, "name": "mobile_conversion_tutorials_completed_order_quantity", "comment": null}, "mobile_conversion_tutorials_completed_post_engagement": {"type": "integer", "index": 221, "name": "mobile_conversion_tutorials_completed_post_engagement", "comment": null}, "mobile_conversion_tutorials_completed_post_view": {"type": "integer", "index": 222, "name": "mobile_conversion_tutorials_completed_post_view", "comment": null}, "mobile_conversion_tutorials_completed_sale_amount": {"type": "integer", "index": 223, "name": "mobile_conversion_tutorials_completed_sale_amount", "comment": null}, "mobile_conversion_updates_assisted": {"type": "integer", "index": 224, "name": "mobile_conversion_updates_assisted", "comment": null}, "mobile_conversion_updates_order_quantity": {"type": "integer", "index": 225, "name": "mobile_conversion_updates_order_quantity", "comment": null}, "mobile_conversion_updates_post_engagement": {"type": "integer", "index": 226, "name": "mobile_conversion_updates_post_engagement", "comment": null}, "mobile_conversion_updates_post_view": {"type": "integer", "index": 227, "name": "mobile_conversion_updates_post_view", "comment": null}, "mobile_conversion_updates_sale_amount": {"type": "integer", "index": 228, "name": "mobile_conversion_updates_sale_amount", "comment": null}, "poll_card_vote": {"type": "integer", "index": 229, "name": "poll_card_vote", "comment": null}, "qualified_impressions": {"type": "integer", "index": 230, "name": "qualified_impressions", "comment": null}, "replies": {"type": "integer", "index": 231, "name": "replies", "comment": null}, "retweets": {"type": "integer", "index": 232, "name": "retweets", "comment": null}, "tweets_send": {"type": "integer", "index": 233, "name": "tweets_send", "comment": null}, "unfollows": {"type": "integer", "index": 234, "name": "unfollows", "comment": null}, "url_clicks": {"type": "integer", "index": 235, "name": "url_clicks", "comment": null}, "video_3_s_100_pct_views": {"type": "integer", "index": 236, "name": "video_3_s_100_pct_views", "comment": null}, "video_6_s_views": {"type": "integer", "index": 237, "name": "video_6_s_views", "comment": null}, "video_content_starts": {"type": "integer", "index": 238, "name": "video_content_starts", "comment": null}, "video_cta_clicks": {"type": "integer", "index": 239, "name": "video_cta_clicks", "comment": null}, "video_mrc_views": {"type": "integer", "index": 240, "name": "video_mrc_views", "comment": null}, "video_total_views": {"type": "integer", "index": 241, "name": "video_total_views", "comment": null}, "video_views_100": {"type": "integer", "index": 242, "name": "video_views_100", "comment": null}, "video_views_25": {"type": "integer", "index": 243, "name": "video_views_25", "comment": null}, "video_views_50": {"type": "integer", "index": 244, "name": "video_views_50", "comment": null}, "video_views_75": {"type": "integer", "index": 245, "name": "video_views_75", "comment": null}, "mobile_conversion_installs_skan_post_engagement": {"type": "integer", "index": 246, "name": "mobile_conversion_installs_skan_post_engagement", "comment": null}, "mobile_conversion_installs_skan_post_view": {"type": "integer", "index": 247, "name": "mobile_conversion_installs_skan_post_view", "comment": null}, "mobile_conversion_purchases_skan_post_engagement": {"type": "integer", "index": 248, "name": "mobile_conversion_purchases_skan_post_engagement", "comment": null}, "mobile_conversion_purchases_skan_post_view": {"type": "integer", "index": 249, "name": "mobile_conversion_purchases_skan_post_view", "comment": null}, "video_15_s_views": {"type": "integer", "index": 250, "name": "video_15_s_views", "comment": null}, "auto_created_conversion_landing_page_view": {"type": "integer", "index": 251, "name": "auto_created_conversion_landing_page_view", "comment": null}, "auto_created_conversion_session": {"type": "integer", "index": 252, "name": "auto_created_conversion_session", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_promoted_tweet_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "text", "index": 2, "name": "approval_status", "comment": null}, "created_at": {"type": "text", "index": 3, "name": "created_at", "comment": null}, "deleted": {"type": "boolean", "index": 4, "name": "deleted", "comment": null}, "entity_status": {"type": "text", "index": 5, "name": "entity_status", "comment": null}, "id": {"type": "text", "index": 6, "name": "id", "comment": null}, "line_item_id": {"type": "text", "index": 7, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "bigint", "index": 8, "name": "tweet_id", "comment": null}, "updated_at": {"type": "text", "index": 9, "name": "updated_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history"}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_promoted_tweet_report_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 2, "name": "account_id", "comment": null}, "billed_charge_local_micro": {"type": "integer", "index": 3, "name": "billed_charge_local_micro", "comment": null}, "clicks": {"type": "integer", "index": 4, "name": "clicks", "comment": null}, "date": {"type": "timestamp without time zone", "index": 5, "name": "date", "comment": null}, "impressions": {"type": "integer", "index": 6, "name": "impressions", "comment": null}, "promoted_tweet_id": {"type": "text", "index": 7, "name": "promoted_tweet_id", "comment": null}, "url_clicks": {"type": "integer", "index": 8, "name": "url_clicks", "comment": null}, "placement": {"type": "text", "index": 9, "name": "placement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report"}, "source.twitter_ads_source.twitter_ads.tweet": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_tweet_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "text", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "text", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "integer", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "integer", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "integer", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "text", "index": 7, "name": "created_at", "comment": null}, "favorite_count": {"type": "integer", "index": 8, "name": "favorite_count", "comment": null}, "favorited": {"type": "boolean", "index": 9, "name": "favorited", "comment": null}, "followers": {"type": "integer", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "text", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "integer", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "integer", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "integer", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "integer", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "integer", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "text", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "integer", "index": 18, "name": "media_key", "comment": null}, "retweet_count": {"type": "integer", "index": 19, "name": "retweet_count", "comment": null}, "retweeted": {"type": "boolean", "index": 20, "name": "retweeted", "comment": null}, "source": {"type": "text", "index": 21, "name": "source", "comment": null}, "truncated": {"type": "boolean", "index": 22, "name": "truncated", "comment": null}, "tweet_type": {"type": "text", "index": 23, "name": "tweet_type", "comment": null}, "user_id": {"type": "integer", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "integer", "index": 25, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet"}, "source.twitter_ads_source.twitter_ads.tweet_url": {"metadata": {"type": "BASE TABLE", "schema": "ad_reporting_integration_tests_2", "name": "twitter_tweet_url_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "text", "index": 1, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "text", "index": 2, "name": "display_url", "comment": null}, "expanded_url": {"type": "text", "index": 3, "name": "expanded_url", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}, "indices": {"type": "text", "index": 5, "name": "indices", "comment": null}, "tweet_id": {"type": "bigint", "index": 6, "name": "tweet_id", "comment": null}, "url": {"type": "text", "index": 7, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 65749e4..0000000 --- a/docs/index.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - - - dbt Docs - - - - - - - - - - - - - - - - - -
icons
-
- - diff --git a/docs/manifest.json b/docs/manifest.json deleted file mode 100644 index ac66020..0000000 --- a/docs/manifest.json +++ /dev/null @@ -1 +0,0 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.1", "generated_at": "2023-02-15T16:03:37.515257Z", "invocation_id": "34decfdc-e532-4953-b7aa-af2cb487294c", "env": {}, "project_id": "9bf57d857f8bb3abf75f1b334ad30f3c", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": {"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476949.9880068, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_line_item_history_data\""}, "seed.ad_reporting_integration_tests.amazon_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_campaign_history_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_campaign_history_data.csv", "original_file_path": "seeds/amazon_ads_campaign_history_data.csv", "name": "amazon_ads_campaign_history_data", "alias": "amazon_ads_campaign_history_data", "checksum": {"name": "sha256", "checksum": "9068962798044d194996c82d369af9f416fad5d1b701b3558f4ceea13fd2d36f"}, "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": 1676476949.993837, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_campaign_history_data\""}, "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_ad_group_level_report_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_ad_group_level_report_data.csv", "original_file_path": "seeds/amazon_ads_ad_group_level_report_data.csv", "name": "amazon_ads_ad_group_level_report_data", "alias": "amazon_ads_ad_group_level_report_data", "checksum": {"name": "sha256", "checksum": "2bd578c7a9b442d8ff680c377b1575193642d8567c02018b15b7feb06d633c23"}, "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": 1676476949.995082, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_ad_group_level_report_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": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476949.996423, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476949.997688, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476949.99896, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0003, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.001456, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.002662, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_keyword_performance_daily_report_data\""}, "seed.ad_reporting_integration_tests.amazon_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": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_ad_group_history_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_ad_group_history_data.csv", "original_file_path": "seeds/amazon_ads_ad_group_history_data.csv", "name": "amazon_ads_ad_group_history_data", "alias": "amazon_ads_ad_group_history_data", "checksum": {"name": "sha256", "checksum": "45753ff9cf086544b805b76303478c515ead8870e4ad9ae3988de8cae6befdde"}, "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": 1676476950.003829, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_ad_group_history_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": "bigint", "account_id": "bigint", "ad_set_id": "bigint", "campaign_id": "bigint", "creative_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_set_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "creative_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.005104, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_ad_history_data\""}, "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_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": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_campaign_level_report_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_campaign_level_report_data.csv", "original_file_path": "seeds/amazon_ads_campaign_level_report_data.csv", "name": "amazon_ads_campaign_level_report_data", "alias": "amazon_ads_campaign_level_report_data", "checksum": {"name": "sha256", "checksum": "5f7e1ab619881258876aaf8b90732b912e29efaf0a824faba39388dd4a6da544"}, "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": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1676476950.006315, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_campaign_level_report_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.007539, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.008766, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.010083, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.011266, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.012467, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.013751, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.014953, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.016194, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.0174038, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.0187452, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_ad_group_history_data\""}, "seed.ad_reporting_integration_tests.amazon_ads_product_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_product_ad_history_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_product_ad_history_data.csv", "original_file_path": "seeds/amazon_ads_product_ad_history_data.csv", "name": "amazon_ads_product_ad_history_data", "alias": "amazon_ads_product_ad_history_data", "checksum": {"name": "sha256", "checksum": "7efed04b5599f1f2a4e8db33b56eb1f43c6ed27a77a504c7f8b7d628aac37749"}, "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": 1676476950.019934, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_product_ad_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": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.02112, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.022311, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.023937, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.025146, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_ad_history_data\""}, "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_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": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_advertised_product_report_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_advertised_product_report_data.csv", "original_file_path": "seeds/amazon_ads_advertised_product_report_data.csv", "name": "amazon_ads_advertised_product_report_data", "alias": "amazon_ads_advertised_product_report_data", "checksum": {"name": "sha256", "checksum": "359aceee40e7bd32af39a8504323e8d5467d77630cf98aa0a4223d3b9c963016"}, "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": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float"}}, "created_at": 1676476950.0263412, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_advertised_product_report_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": "varchar", "template_page_link": "varchar", "id": "bigint", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0275671, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.052263, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.053498, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_promoted_tweet_history_data\""}, "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_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": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "keyword_bid": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_search_term_ad_keyword_report_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_search_term_ad_keyword_report_data.csv", "original_file_path": "seeds/amazon_ads_search_term_ad_keyword_report_data.csv", "name": "amazon_ads_search_term_ad_keyword_report_data", "alias": "amazon_ads_search_term_ad_keyword_report_data", "checksum": {"name": "sha256", "checksum": "f0aa8b9495b20a37e8ce3af2394355f4e4dee753bb615b8a87670625d619c246"}, "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": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "keyword_bid": "float"}}, "created_at": 1676476950.054844, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_search_term_ad_keyword_report_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.056044, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.057219, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.058409, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.059723, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.060931, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.062186, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.063396, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.064692, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_account_history_data\""}, "seed.ad_reporting_integration_tests.amazon_ads_profile_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_profile_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_profile_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_profile_data.csv", "original_file_path": "seeds/amazon_ads_profile_data.csv", "name": "amazon_ads_profile_data", "alias": "amazon_ads_profile_data", "checksum": {"name": "sha256", "checksum": "bf98315483844e348320dc4d774059cb5229ef48b495aebace17dd04520d160b"}, "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": 1676476950.065865, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_profile_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": "bigint", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.06707, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0684328, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0696902, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.070894, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.072087, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.07343, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.074687, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.075946, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.077178, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0785081, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "name": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0797079, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.080898, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.082242, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.083458, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.084658, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.085831, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.087142, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0883179, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.089472, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.090672, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.092031, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0932338, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.0944068, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.095617, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint", "campaign_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "account_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.0969741, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.098757, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.1001642, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.101602, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_hourly_report_data\""}, "seed.ad_reporting_integration_tests.amazon_ads_targeting_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": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float", "keyword_bid": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_targeting_keyword_report_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_targeting_keyword_report_data.csv", "original_file_path": "seeds/amazon_ads_targeting_keyword_report_data.csv", "name": "amazon_ads_targeting_keyword_report_data", "alias": "amazon_ads_targeting_keyword_report_data", "checksum": {"name": "sha256", "checksum": "9d8d836b312da8f87e0649638b7a040f11975c4817d4439d9a67e9726f8c46cc"}, "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": {"_fivetran_synced": "timestamp", "campaign_budget_amount": "float", "click_through_rate": "float", "keyword_bid": "float"}}, "created_at": 1676476950.1028621, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_targeting_keyword_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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.1041222, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.105366, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.10692, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.108196, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.1095061, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.110695, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "account_id": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "ad_id": "bigint", "keyword_id": "bigint", "last_modified_time": "timestamp", "modified_time": "timestamp", "spend": "float"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": "2defb0e38c65b2bf62ce5cb269c2f539437885533b53d7a3174d1cc04e2c7efe"}, "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": 1676476950.112022, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "ad_id": "bigint", "campaign_id": "bigint", "id": "bigint", "base_campaign_id": "bigint", "base_ad_group_id": "bigint", "ad_group_id": "bigint", "ad_group_criterion_criterion_id": "bigint", "base_adgroup_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.11326, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_group_criterion_history_data\""}, "seed.ad_reporting_integration_tests.amazon_ads_portfolio_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_portfolio_history_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_portfolio_history_data.csv", "original_file_path": "seeds/amazon_ads_portfolio_history_data.csv", "name": "amazon_ads_portfolio_history_data", "alias": "amazon_ads_portfolio_history_data", "checksum": {"name": "sha256", "checksum": "f35ce3ea8cd6309e50535134b9375861995eb6cda4e215efc0b170cae03a3eee"}, "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": 1676476950.114497, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_portfolio_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.115691, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_report_data\""}, "seed.ad_reporting_integration_tests.amazon_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": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "fqn": ["ad_reporting_integration_tests", "amazon_ads_keyword_history_data"], "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data", "raw_code": "", "language": "sql", "package_name": "ad_reporting_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests", "path": "amazon_ads_keyword_history_data.csv", "original_file_path": "seeds/amazon_ads_keyword_history_data.csv", "name": "amazon_ads_keyword_history_data", "alias": "amazon_ads_keyword_history_data", "checksum": {"name": "sha256", "checksum": "68a118d96a47a1c6ed2ee084efadd429eb0a54755ba72f283b57e13a9632f327"}, "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": 1676476950.11702, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_keyword_history_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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.118313, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.1200662, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.121502, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.122716, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.123911, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint", "ad_group_id": "bigint", "pin_id": "bigint", "advertiser_id": "bigint", "pin_promotion_id": "bigint", "keyword_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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.type == 'bigquery' else 'bigint' }}", "campaign_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "ad_group_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "advertiser_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "pin_promotion_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}", "keyword_id": "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"}}, "created_at": 1676476950.125123, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.126427, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "bigint", "campaign_id": "bigint"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.1276002, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.129141, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "ad_reporting_integration_tests_2", "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/joseph.markiewicz/Documents/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": 1676476950.130492, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.6269948, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.649251, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.646142, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 budget_association_status,\n clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__campaign_passthrough_metrics') }}\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "13b5edfd52333941e6cbf976ac71d69c1f4986ea71948f644c0f6bbdc4ac7de8"}, "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": []}, "budget_association_status": {"name": "budget_association_status", "description": "The status of the campaign's budget.", "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": 1676476952.641056, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__campaign_daily_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_distribution\n \n as \n \n ad_distribution\n \n, \n \n \n bid_match_type\n \n as \n \n bid_match_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n delivered_match_type\n \n as \n \n delivered_match_type\n \n, \n \n \n device_os\n \n as \n \n device_os\n \n, \n \n \n device_type\n \n as \n \n device_type\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n network\n \n as \n \n network\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n top_vs_other\n \n as \n \n top_vs_other\n \n, \n \n \n budget_association_status\n \n as \n \n budget_association_status\n \n\n\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 budget_association_status,\n clicks,\n impressions,\n spend\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.64275, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.6314619, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.6286762, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.633378, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.63634, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.624547, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.63807, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.271822, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_search_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.278293, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.282367, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_campaign_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.2875252, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.291998, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.296546, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_ad_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.300836, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.3065972, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_keyword_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.310582, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_keyword_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.316681, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.3205462, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_account_performance_daily_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.728223, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_report_hourly\"\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(26) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": "9d2e1b017a072d77ccdd7ce5d906429fdee130e6cefc34eb49358079223e2f32"}, "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": 1676476952.738527, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "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_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__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1676476952.731936, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_report_hourly\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__campaign_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.72284, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_history\"\n where is_most_recent_record\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_group_history\"\n where is_most_recent_record\n), \n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.717613, "compiled_code": "\n\nwith hourly as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__ad_report_hourly\"\n),\n\nadvertiser as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.784111, "compiled_code": "\n\nwith accounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\npromoted_tweet_report as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.775625, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where tweet_url.expanded_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(n=23) }}\n\n \n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": "06fc0ec0eca546e85c1f848988ec0e3b8c4c30504aa9d920c690fc58ed4ae5cb"}, "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": 1676476952.795119, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__tweet\"\n),\n\ntweet_url as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n where tweet_url.expanded_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23\n\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.790869, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__account_history\"\n where is_latest_version\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\npromoted_tweets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__promoted_tweet_history\"\n where is_latest_version\n),\n\ntweets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.781253, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__line_item_report\"\n),\n\nline_items as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__line_item_history\"\n where is_latest_version\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__campaign_history\"\n where is_latest_version\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where pins.destination_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(22) }}\n)\n\nselect * \nfrom joined", "language": "sql", "package_name": "pinterest", "root_path": "/Users/joseph.markiewicz/Documents/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": "1ee4b8fc3fdecf9aa27336f1939c1d5f78ee9ca877f4b85e5054f077ed9f12c2"}, "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": 1676476952.872988, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n where pins.destination_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.8773298, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__campaign_report\"\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.8812659, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__keyword_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.878998, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__advertiser_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.88413, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__pin_promotion_report\"\n), \n\npins as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__pin_promotion_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.875691, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__ad_group_report\"\n), \n\nadvertisers as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__advertiser_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_pinterest_source\".\"stg_pinterest_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 stats.account_id,\n campaigns.campaign_name,\n stats.campaign_id,\n ad_groups.ad_group_name,\n stats.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 stats.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n left join accounts\n on stats.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/joseph.markiewicz/Documents/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": "8afc77ec6f8a7e4348762f06892b32e48f7066973ff0344fa4e23ceae20cd77f"}, "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": "Total cost of ad clicks.", "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": 1676476952.9351318, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__keyword_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncriterions as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 stats.account_id,\n campaigns.campaign_name,\n stats.campaign_id,\n ad_groups.ad_group_name,\n stats.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 stats.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n left join accounts\n on stats.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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": "Total cost of ad clicks.", "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": 1676476952.932717, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__campaign_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where ads.source_final_urls is not null\n {% endif %}\n\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "google_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": "c0cd7ac20f5d6e744a3ab249e75f5a0facce6a833c9fe6bbb9efce90e78bd328"}, "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": "Total cost of ad clicks.", "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": 1676476952.924175, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n where ads.source_final_urls is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 stats.ad_id,\n ads.ad_name,\n ads.ad_status,\n ads.ad_type,\n ads.display_url,\n ads.source_final_urls,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions\n\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/joseph.markiewicz/Documents/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": "d37cc295aa04e6ad61dfac2a9a77267009ac200771988ed13937fe62f847301b"}, "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": "Total cost of ad clicks.", "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": 1676476952.9306712, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__ad_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 stats.ad_id,\n ads.ad_name,\n ads.ad_status,\n ads.ad_type,\n ads.display_url,\n ads.source_final_urls,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions\n\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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": "Total cost of ad clicks.", "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": 1676476952.928262, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__ad_group_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__account_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": "Total cost of ad clicks.", "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": 1676476952.925774, "compiled_code": "\n\nwith stats as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_google_ads_source\".\"stg_google_ads__account_stats\"\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__account_report\""}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_campaign_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__campaign_level_report"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__campaign_level_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__campaign_level_report_tmp')),\n staging_columns=get_campaign_level_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n campaign_applicable_budget_rule_id,\n campaign_applicable_budget_rule_name,\n campaign_bidding_strategy,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n campaign_rule_based_budget_amount,\n clicks,\n cost,\n date as date_day,\n impressions\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__campaign_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__campaign_level_report.sql", "original_file_path": "models/stg_amazon_ads__campaign_level_report.sql", "name": "stg_amazon_ads__campaign_level_report", "alias": "stg_amazon_ads__campaign_level_report", "checksum": {"name": "sha256", "checksum": "5ce672eafd208b1e9b7aa8bf32b50629a584366ac793d1d8efc1b4c22b754a93"}, "tags": [], "refs": [["stg_amazon_ads__campaign_level_report_tmp"], ["stg_amazon_ads__campaign_level_report_tmp"]], "sources": [], "metrics": [], "description": "Campaign reports contain performance data broken down at the campaign level.", "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.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "description": "The ID associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "description": "The name associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "description": "The value of the rule-based budget for a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__campaign_level_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.9738371, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n campaign_applicable_budget_rule_id\n \n as \n \n campaign_applicable_budget_rule_id\n \n, \n \n \n campaign_applicable_budget_rule_name\n \n as \n \n campaign_applicable_budget_rule_name\n \n, \n \n \n campaign_bidding_strategy\n \n as \n \n campaign_bidding_strategy\n \n, \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as FLOAT) as \n \n campaign_rule_based_budget_amount\n \n , \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n campaign_applicable_budget_rule_id,\n campaign_applicable_budget_rule_name,\n campaign_bidding_strategy,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n campaign_rule_based_budget_amount,\n clicks,\n cost,\n date as date_day,\n impressions\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\""}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_ad_group_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__ad_group_level_report"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__ad_group_level_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__ad_group_level_report_tmp')),\n staging_columns=get_ad_group_level_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n campaign_bidding_strategy,\n clicks,\n cost,\n date as date_day,\n impressions\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__ad_group_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__ad_group_level_report.sql", "original_file_path": "models/stg_amazon_ads__ad_group_level_report.sql", "name": "stg_amazon_ads__ad_group_level_report", "alias": "stg_amazon_ads__ad_group_level_report", "checksum": {"name": "sha256", "checksum": "35b1ce707ad6d7b38edddcd87412acfe91e8c4d5f6977c76f2a99b2ea60ebfa3"}, "tags": [], "refs": [["stg_amazon_ads__ad_group_level_report_tmp"], ["stg_amazon_ads__ad_group_level_report_tmp"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance by Amazon ad group.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "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_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__ad_group_level_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.967228, "compiled_code": "\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n campaign_bidding_strategy\n \n as \n \n campaign_bidding_strategy\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n campaign_bidding_strategy,\n clicks,\n cost,\n date as date_day,\n impressions\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report\""}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_advertised_product_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__advertised_product_report"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__advertised_product_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__advertised_product_report_tmp')),\n staging_columns=get_advertised_product_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_id,\n advertised_asin,\n advertised_sku,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__advertised_product_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__advertised_product_report.sql", "original_file_path": "models/stg_amazon_ads__advertised_product_report.sql", "name": "stg_amazon_ads__advertised_product_report", "alias": "stg_amazon_ads__advertised_product_report", "checksum": {"name": "sha256", "checksum": "2baf384e65bf9a5c433907885435b20bc372447c8c569dbad8d3eb6b817658da"}, "tags": [], "refs": [["stg_amazon_ads__advertised_product_report_tmp"], ["stg_amazon_ads__advertised_product_report_tmp"]], "sources": [], "metrics": [], "description": "Advertised product reports contain performance data for products that are advertised as part of your campaigns.", "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 AdGroup.", "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": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "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": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__advertised_product_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.9692008, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n cast(null as TEXT) as \n \n advertised_asin\n \n , \n cast(null as TEXT) as \n \n advertised_sku\n \n , \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_id,\n advertised_asin,\n advertised_sku,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report\""}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.amazon_ads_source.get_portfolio_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__portfolio_history"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__portfolio_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__portfolio_history_tmp')),\n staging_columns=get_portfolio_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n budget_amount,\n budget_currency_code,\n budget_end_date,\n budget_policy,\n budget_start_date,\n creation_date,\n id as portfolio_id,\n in_budget,\n last_updated_date,\n name as portfolio_name,\n profile_id,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__portfolio_history.sql", "original_file_path": "models/stg_amazon_ads__portfolio_history.sql", "name": "stg_amazon_ads__portfolio_history", "alias": "stg_amazon_ads__portfolio_history", "checksum": {"name": "sha256", "checksum": "dbb5664f227d1f730798be0a23d37be10111a421a76a6cf2e6bc18336fef266a"}, "tags": [], "refs": [["stg_amazon_ads__portfolio_history_tmp"], ["stg_amazon_ads__portfolio_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a portfolio in Amazon Ads.", "columns": {"portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__portfolio_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.978017, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__portfolio_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n budget_amount\n \n as \n \n budget_amount\n \n, \n \n \n budget_currency_code\n \n as \n \n budget_currency_code\n \n, \n \n \n budget_end_date\n \n as \n \n budget_end_date\n \n, \n \n \n budget_policy\n \n as \n \n budget_policy\n \n, \n \n \n budget_start_date\n \n as \n \n budget_start_date\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n in_budget\n \n as \n \n in_budget\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n profile_id\n \n as \n \n profile_id\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n budget_amount,\n budget_currency_code,\n budget_end_date,\n budget_policy,\n budget_start_date,\n creation_date,\n id as portfolio_id,\n in_budget,\n last_updated_date,\n name as portfolio_name,\n profile_id,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\""}, "model.amazon_ads_source.stg_amazon_ads__campaign_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__campaign_history"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n bidding_strategy,\n campaign_type,\n creation_date,\n daily_budget,\n end_date,\n id as campaign_id,\n last_updated_date,\n name as campaign_name,\n placement,\n portfolio_id,\n premium_bid_adjustment,\n profile_id,\n serving_status,\n start_date,\n state,\n targeting_type,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__campaign_history.sql", "original_file_path": "models/stg_amazon_ads__campaign_history.sql", "name": "stg_amazon_ads__campaign_history", "alias": "stg_amazon_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "17353e4bb7480533cb8c24a7a24e992c737998607f7515ac648cc92053653257"}, "tags": [], "refs": [["stg_amazon_ads__campaign_history_tmp"], ["stg_amazon_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a campaign in Amazon Ads.", "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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bidding_strategy": {"name": "bidding_strategy", "description": "The bidding strategy associated with a campaign (legacyForSales, autoForSales, or manual.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "The ad type related to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "The daily budget for the campaign as set by the advertiser.", "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": []}, "placement": {"name": "placement", "description": "The placement location where bid controls are used (placementTop or placementProductPage.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "premium_bid_adjustment": {"name": "premium_bid_adjustment", "description": "A boolean representing whether premium bid adjustment is turned on for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "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": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting_type": {"name": "targeting_type", "description": "The type of targeting used for the campaign, either manual or auto.", "meta": {}, "data_type": null, "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__campaign_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.9718652, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n bidding_strategy\n \n as \n \n bidding_strategy\n \n, \n \n \n campaign_type\n \n as \n \n campaign_type\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n daily_budget\n \n as \n \n daily_budget\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n placement\n \n as \n \n placement\n \n, \n \n \n portfolio_id\n \n as \n \n portfolio_id\n \n, \n \n \n premium_bid_adjustment\n \n as \n \n premium_bid_adjustment\n \n, \n \n \n profile_id\n \n as \n \n profile_id\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n targeting_type\n \n as \n \n targeting_type\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n bidding_strategy,\n campaign_type,\n creation_date,\n daily_budget,\n end_date,\n id as campaign_id,\n last_updated_date,\n name as campaign_name,\n placement,\n portfolio_id,\n premium_bid_adjustment,\n profile_id,\n serving_status,\n start_date,\n state,\n targeting_type,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\""}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_product_ad_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__product_ad_history"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__product_ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__product_ad_history_tmp')),\n staging_columns=get_product_ad_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n asin,\n campaign_id,\n creation_date,\n id as ad_id,\n last_updated_date,\n serving_status,\n sku,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__product_ad_history.sql", "original_file_path": "models/stg_amazon_ads__product_ad_history.sql", "name": "stg_amazon_ads__product_ad_history", "alias": "stg_amazon_ads__product_ad_history", "checksum": {"name": "sha256", "checksum": "c37feb8ade64671464ffca13e9b884b218d0e8a20cd67464d17ff98922da87fd"}, "tags": [], "refs": [["stg_amazon_ads__product_ad_history_tmp"], ["stg_amazon_ads__product_ad_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a product in Amazon Ads.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "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": []}, "asin": {"name": "asin", "description": "The ASIN associated with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sku": {"name": "sku", "description": "The product SKU associated with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__product_ad_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.9796338, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__product_ad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n asin\n \n as \n \n asin\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n sku\n \n as \n \n sku\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n asin,\n campaign_id,\n creation_date,\n id as ad_id,\n last_updated_date,\n serving_status,\n sku,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__product_ad_history\""}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_targeting_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__targeting_keyword_report"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__targeting_keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__targeting_keyword_report_tmp')),\n staging_columns=get_targeting_keyword_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n keyword_id,\n keyword_type,\n match_type,\n targeting\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__targeting_keyword_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__targeting_keyword_report.sql", "original_file_path": "models/stg_amazon_ads__targeting_keyword_report.sql", "name": "stg_amazon_ads__targeting_keyword_report", "alias": "stg_amazon_ads__targeting_keyword_report", "checksum": {"name": "sha256", "checksum": "0b676271538c47839aaa7a6acae657599564b83c3017faed34dabf71db3f1a7a"}, "tags": [], "refs": [["stg_amazon_ads__targeting_keyword_report_tmp"], ["stg_amazon_ads__targeting_keyword_report_tmp"]], "sources": [], "metrics": [], "description": "Targeting reports contain performance metrics broken down by both targeting expressions and keywords.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "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_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "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": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "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": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__targeting_keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.984315, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n ad_keyword_status\n \n as \n \n ad_keyword_status\n \n, \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_bid\n \n as \n \n keyword_bid\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n keyword_type\n \n as \n \n keyword_type\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n targeting\n \n as \n \n targeting\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n keyword_id,\n keyword_type,\n match_type,\n targeting\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report\""}, "model.amazon_ads_source.stg_amazon_ads__profile": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_profile_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp", "model.amazon_ads_source.stg_amazon_ads__profile_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__profile"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__profile_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__profile_tmp')),\n staging_columns=get_profile_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n id as profile_id,\n account_id,\n account_marketplace_string_id,\n account_name,\n account_sub_type,\n account_type,\n account_valid_payment_method,\n country_code,\n currency_code,\n daily_budget,\n timezone,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__profile.sql", "original_file_path": "models/stg_amazon_ads__profile.sql", "name": "stg_amazon_ads__profile", "alias": "stg_amazon_ads__profile", "checksum": {"name": "sha256", "checksum": "77978f552619be228968f6c3fae4e2c6222783f8fa99885e4481a6d3e230f3ca"}, "tags": [], "refs": [["stg_amazon_ads__profile_tmp"], ["stg_amazon_ads__profile_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a profile. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_marketplace_string_id": {"name": "account_marketplace_string_id", "description": "The identifier of the marketplace to which the account is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account subtype.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "One of seller, vendor, or agency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_valid_payment_method": {"name": "account_valid_payment_method", "description": "For Vendors, this returns if the Advertiser has set up a valid payment method.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency used for all monetary values for entities under this profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget for Sponsored Product campaigns for seller type accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The time zone used for all date-based campaign management and reporting.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__profile.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.9819891, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n account_marketplace_string_id\n \n as \n \n account_marketplace_string_id\n \n, \n \n \n account_name\n \n as \n \n account_name\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n account_valid_payment_method\n \n as \n \n account_valid_payment_method\n \n, \n \n \n country_code\n \n as \n \n country_code\n \n, \n \n \n currency_code\n \n as \n \n currency_code\n \n, \n \n \n daily_budget\n \n as \n \n daily_budget\n \n, \n \n \n timezone\n \n as \n \n timezone\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as profile_id,\n account_id,\n account_marketplace_string_id,\n account_name,\n account_sub_type,\n account_type,\n account_valid_payment_method,\n country_code,\n currency_code,\n daily_budget,\n timezone,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\""}, "model.amazon_ads_source.stg_amazon_ads__keyword_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__keyword_history"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n bid,\n campaign_id,\n creation_date,\n id as keyword_id,\n keyword_text,\n last_updated_date,\n match_type,\n native_language_keyword,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__keyword_history.sql", "original_file_path": "models/stg_amazon_ads__keyword_history.sql", "name": "stg_amazon_ads__keyword_history", "alias": "stg_amazon_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "bad9aeabb9eaba513e15d17f016799815ff7c0a4c2fe5b7970d29beaec9a02f5"}, "tags": [], "refs": [["stg_amazon_ads__keyword_history_tmp"], ["stg_amazon_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents a keyword in Amazon Ads.", "columns": {"keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "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": []}, "bid": {"name": "bid", "description": "Bid associated with this keyword.", "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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "One of (broad, exact, or phrase.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "native_language_keyword": {"name": "native_language_keyword", "description": "The unlocalized keyword text in the preferred locale of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__keyword_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.975799, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__keyword_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n bid\n \n as \n \n bid\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n keyword_text\n \n as \n \n keyword_text\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n match_type\n \n as \n \n match_type\n \n, \n \n \n native_language_keyword\n \n as \n \n native_language_keyword\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n bid,\n campaign_id,\n creation_date,\n id as keyword_id,\n keyword_text,\n last_updated_date,\n match_type,\n native_language_keyword,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__keyword_history\""}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__ad_group_history"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__ad_group_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n campaign_id,\n creation_date,\n default_bid,\n id as ad_group_id,\n last_updated_date,\n name as ad_group_name,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__ad_group_history.sql", "original_file_path": "models/stg_amazon_ads__ad_group_history.sql", "name": "stg_amazon_ads__ad_group_history", "alias": "stg_amazon_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "89a99f9f72fd70bfbc51eca3088513648b319c478477f4f974b65bc7cb24e880"}, "tags": [], "refs": [["stg_amazon_ads__ad_group_history_tmp"], ["stg_amazon_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "description": "Each record represents an ad group in Amazon Ads.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "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": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__ad_group_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.966143, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n creation_date\n \n as \n \n creation_date\n \n, \n \n \n default_bid\n \n as \n \n default_bid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_updated_date\n \n as \n \n last_updated_date\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n serving_status\n \n as \n \n serving_status\n \n, \n \n \n state\n \n as \n \n state\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n campaign_id,\n creation_date,\n default_bid,\n id as ad_group_id,\n last_updated_date,\n name as ad_group_name,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\""}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.amazon_ads_source.get_search_term_ad_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "stg_amazon_ads__search_term_ad_keyword_report"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__search_term_ad_keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__search_term_ad_keyword_report_tmp')),\n staging_columns=get_search_term_ad_keyword_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n keyword_id,\n search_term,\n targeting\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__search_term_ad_keyword_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "stg_amazon_ads__search_term_ad_keyword_report.sql", "original_file_path": "models/stg_amazon_ads__search_term_ad_keyword_report.sql", "name": "stg_amazon_ads__search_term_ad_keyword_report", "alias": "stg_amazon_ads__search_term_ad_keyword_report", "checksum": {"name": "sha256", "checksum": "64c6289e258a9cad91edad9b189ca8f4c0259d49723aa0d4e9bfcaf6a3074281"}, "tags": [], "refs": [["stg_amazon_ads__search_term_ad_keyword_report_tmp"], ["stg_amazon_ads__search_term_ad_keyword_report_tmp"]], "sources": [], "metrics": [], "description": "Search term reports contain search term performance metrics broken down by targeting expressions and keywords.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "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_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "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": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "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": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__search_term_ad_keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476952.9865642, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n cast(null as TEXT) as \n \n ad_keyword_status\n \n , \n \n \n campaign_budget_amount\n \n as \n \n campaign_budget_amount\n \n, \n \n \n campaign_budget_currency_code\n \n as \n \n campaign_budget_currency_code\n \n, \n \n \n campaign_budget_type\n \n as \n \n campaign_budget_type\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n cost\n \n as \n \n cost\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n keyword_bid\n \n as \n \n keyword_bid\n \n, \n \n \n keyword_id\n \n as \n \n keyword_id\n \n, \n \n \n search_term\n \n as \n \n search_term\n \n, \n \n \n targeting\n \n as \n \n targeting\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n keyword_id,\n search_term,\n targeting\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report\""}, "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__keyword_history_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_history') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__keyword_history_tmp.sql", "name": "stg_amazon_ads__keyword_history_tmp", "alias": "stg_amazon_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "7ba2cd1f2f0abf685c4d5ceb2b0e753cc1aad50f6a722db0152a8d4c477f612a"}, "tags": [], "refs": [], "sources": [["amazon_ads", "keyword_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__keyword_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.674764, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_keyword_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__keyword_history_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__profile_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.profile"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__profile_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('profile') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__profile_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__profile_tmp.sql", "name": "stg_amazon_ads__profile_tmp", "alias": "stg_amazon_ads__profile_tmp", "checksum": {"name": "sha256", "checksum": "b7c0823e89ac3513c15ea916f4fa4c1a05a9ef8b5e08446c3812797c733870a3"}, "tags": [], "refs": [], "sources": [["amazon_ads", "profile"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__profile_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.678758, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__search_term_ad_keyword_report_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('search_term_ad_keyword_report') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "alias": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "73d9f3ed1f49d3695cfb2266e7ad8ef6dd60f794bd767ae0dc7458eb4705a350"}, "tags": [], "refs": [], "sources": [["amazon_ads", "search_term_ad_keyword_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.690851, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_search_term_ad_keyword_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.product_ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__product_ad_history_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('product_ad_history') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__product_ad_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__product_ad_history_tmp.sql", "name": "stg_amazon_ads__product_ad_history_tmp", "alias": "stg_amazon_ads__product_ad_history_tmp", "checksum": {"name": "sha256", "checksum": "58aa82e3cba0533f9ea4bd0b8213b88f7596934bebb0939159b34955e7cf7016"}, "tags": [], "refs": [], "sources": [["amazon_ads", "product_ad_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__product_ad_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.695905, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_product_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__product_ad_history_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__ad_group_history_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_history') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__ad_group_history_tmp.sql", "name": "stg_amazon_ads__ad_group_history_tmp", "alias": "stg_amazon_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "0a0799551d10a2e0c0b5ea747e66aad1a55bf0091d318e902938f906ef53a5ef"}, "tags": [], "refs": [], "sources": [["amazon_ads", "ad_group_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__ad_group_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.700275, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_history_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.campaign_level_report"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__campaign_level_report_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_level_report') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "name": "stg_amazon_ads__campaign_level_report_tmp", "alias": "stg_amazon_ads__campaign_level_report_tmp", "checksum": {"name": "sha256", "checksum": "f767f297f6f15fce324971641eca1f2c7c2b0a0d13f2aed1ac3c80425a816e4f"}, "tags": [], "refs": [], "sources": [["amazon_ads", "campaign_level_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.709002, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_campaign_level_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.targeting_keyword_report"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__targeting_keyword_report_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('targeting_keyword_report') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "name": "stg_amazon_ads__targeting_keyword_report_tmp", "alias": "stg_amazon_ads__targeting_keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "1411fae1c9263de0790201a68288f49218e686bd8888b5405923b4548fa40aef"}, "tags": [], "refs": [], "sources": [["amazon_ads", "targeting_keyword_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.713366, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_targeting_keyword_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["source.amazon_ads_source.amazon_ads.portfolio_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__portfolio_history_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nselect * \nfrom {{ var('portfolio_history') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__portfolio_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__portfolio_history_tmp.sql", "name": "stg_amazon_ads__portfolio_history_tmp", "alias": "stg_amazon_ads__portfolio_history_tmp", "checksum": {"name": "sha256", "checksum": "652c00944c6643c4077189683c73cf52042ec68c3ffc50085d288c6d7c11fe48"}, "tags": [], "refs": [], "sources": [["amazon_ads", "portfolio_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__portfolio_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.71764, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_portfolio_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__portfolio_history_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__campaign_history_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__campaign_history_tmp.sql", "name": "stg_amazon_ads__campaign_history_tmp", "alias": "stg_amazon_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "e3099ab2e93224097e46899d6f07b3db453c1fcfc65e1b0f2be7e5264b044e99"}, "tags": [], "refs": [], "sources": [["amazon_ads", "campaign_history"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__campaign_history_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.721576, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.ad_group_level_report"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__ad_group_level_report_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_level_report') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "name": "stg_amazon_ads__ad_group_level_report_tmp", "alias": "stg_amazon_ads__ad_group_level_report_tmp", "checksum": {"name": "sha256", "checksum": "3adb9bbf019585b634b92ac775cd16e72b395be0691cbb2325da59ced157db6f"}, "tags": [], "refs": [], "sources": [["amazon_ads", "ad_group_level_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.725379, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_ad_group_level_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report_tmp\""}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.advertised_product_report"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads_source", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__advertised_product_report_tmp"], "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('advertised_product_report') }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "name": "stg_amazon_ads__advertised_product_report_tmp", "alias": "stg_amazon_ads__advertised_product_report_tmp", "checksum": {"name": "sha256", "checksum": "4a026b403c68336b435e4ae3c2169dfd1174085ed660f27b2ad5d2e3fbf8b0a7"}, "tags": [], "refs": [], "sources": [["amazon_ads", "advertised_product_report"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1676476950.729207, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_advertised_product_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report_tmp\""}, "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.type_timestamp", "macro.dbt.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.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.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/joseph.markiewicz/Documents/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": "d00cfaa4090be843e4157a73bf2e05ae970fe6fa654b234cd2d05b304c0c36e0"}, "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": 1676476953.058089, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__creative_history_tmp\"\n\n), macro as (\n\n select \n \n cast(null as TEXT) 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 TIMESTAMP) as last_modified_at,\n cast(created_time as TIMESTAMP) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n), url_fields as (\n\n select \n *,\n \n\n \n \n\n split_part(\n click_uri,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n click_uri,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n click_uri,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term\n \n from fields\n)\n\nselect *\nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by id 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/joseph.markiewicz/Documents/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": "12f98866db796269913da635f3597191300af87f91d3e018768b16c927e8f77f"}, "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": 1676476953.062065, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history_tmp\"\n\n), macro as (\n\n select \n \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as boolean) as \n \n audience_expansion_enabled\n \n , \n \n \n campaign_group_id\n \n as \n \n campaign_group_id\n \n, \n cast(null as TEXT) as \n \n cost_type\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n cast(null as TEXT) as \n \n creative_selection\n \n , \n cast(null as FLOAT) as \n \n daily_budget_amount\n \n , \n cast(null as TEXT) as \n \n daily_budget_currency_code\n \n , \n cast(null as TEXT) as \n \n format\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n cast(null as TEXT) as \n \n locale_country\n \n , \n cast(null as TEXT) as \n \n locale_language\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n objective_type\n \n , \n cast(null as boolean) as \n \n offsite_delivery_enabled\n \n , \n cast(null as TEXT) as \n \n optimization_target_type\n \n , \n cast(null as TIMESTAMP) as \n \n run_schedule_end\n \n , \n cast(null as TIMESTAMP) as \n \n run_schedule_start\n \n , \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as TEXT) as \n \n type\n \n , \n cast(null as FLOAT) as \n \n unit_cost_amount\n \n , \n cast(null as TEXT) as \n \n unit_cost_currency_code\n \n , \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n 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 TIMESTAMP) as run_schedule_start_at,\n cast(run_schedule_end as TIMESTAMP) as run_schedule_end_at,\n cast(last_modified_time as TIMESTAMP) as last_modified_at,\n cast(created_time as TIMESTAMP) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "b0bf02e1776326897d77e8060a8f30689fa628b67e826fa86198aef533c31569"}, "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": 1676476953.055278, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 date_trunc('day', day) 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by id 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/joseph.markiewicz/Documents/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": "9e4b57accd4f0a428f53d1b953c3c9dc25d6b5fbf4255f3a224f071f35474b66"}, "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": 1676476953.063788, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history_tmp\"\n\n), macro as (\n\n select\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as boolean) as \n \n backfilled\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TIMESTAMP) as \n \n run_schedule_end\n \n , \n cast(null as TIMESTAMP) as \n \n run_schedule_start\n \n , \n cast(null as TEXT) as \n \n status\n \n \n\n\n 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 TIMESTAMP) as run_schedule_start_at,\n cast(run_schedule_end as TIMESTAMP) as run_schedule_end_at,\n cast(last_modified_time as TIMESTAMP) as last_modified_at,\n cast(created_time as TIMESTAMP) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.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/joseph.markiewicz/Documents/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": "60047b6cc68c2bee2b8c25f07872167514305c30028cb0a589f55d82721f8593"}, "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": 1676476953.065274, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__account_history_tmp\"\n\n), macro as (\n\n select\n \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_modified_time\n \n as \n \n last_modified_time\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as TEXT) as \n \n type\n \n , \n \n \n version_tag\n \n as \n \n version_tag\n \n\n\n\n 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 TIMESTAMP) as last_modified_at,\n cast(created_time as TIMESTAMP) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "b5f5b1df9cc38a98aa8438602b219af4468b1493711e5b3ee01fb8836c61d2de"}, "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": 1676476953.05428, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 date_trunc('day', day) 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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.854147, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_analytics_by_creative_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.857973, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.8627782, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.86722, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_campaign_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.872927, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_creative_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476950.876974, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_analytics_by_campaign_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__ad_analytics_by_campaign_tmp\""}, "model.amazon_ads.amazon_ads__portfolio_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.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads", "fqn": ["amazon_ads", "amazon_ads__portfolio_report"], "unique_id": "model.amazon_ads.amazon_ads__portfolio_report", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ var('portfolio_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n portfolios.budget_amount,\n portfolios.budget_currency_code,\n portfolios.budget_start_date,\n portfolios.budget_end_date,\n portfolios.budget_policy,\n portfolios.in_budget,\n portfolios.serving_status,\n portfolios.state,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n --use campaign report since portfolio report not provided\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\n\n from portfolios\n\n left join campaigns\n on campaigns.portfolio_id = portfolios.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n left join report\n on report.campaign_id = campaigns.campaign_id\n\n {{ dbt_utils.group_by(15) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "amazon_ads__portfolio_report.sql", "original_file_path": "models/amazon_ads__portfolio_report.sql", "name": "amazon_ads__portfolio_report", "alias": "amazon_ads__portfolio_report", "checksum": {"name": "sha256", "checksum": "cabdd1c6fd859f1ccd8a40429234ba4b38c71fb303fcb298ffd44e8e35367712"}, "tags": [], "refs": [["stg_amazon_ads__campaign_level_report"], ["stg_amazon_ads__profile"], ["stg_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the portfolio level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__portfolio_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1676476953.126443, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\"\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n portfolios.budget_amount,\n portfolios.budget_currency_code,\n portfolios.budget_start_date,\n portfolios.budget_end_date,\n portfolios.budget_policy,\n portfolios.in_budget,\n portfolios.serving_status,\n portfolios.state,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n --use campaign report since portfolio report not provided\n \n\n\n\n\n\n from portfolios\n\n left join campaigns\n on campaigns.portfolio_id = portfolios.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n left join report\n on report.campaign_id = campaigns.campaign_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__portfolio_report\""}, "model.amazon_ads.amazon_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.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads", "fqn": ["amazon_ads", "amazon_ads__search_report"], "unique_id": "model.amazon_ads.amazon_ads__search_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('search_term_ad_keyword_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.match_type,\n keywords.serving_status,\n keywords.state,\n report.search_term,\n report.targeting,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__search_term_ad_keyword_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(18) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "amazon_ads__search_report.sql", "original_file_path": "models/amazon_ads__search_report.sql", "name": "amazon_ads__search_report", "alias": "amazon_ads__search_report", "checksum": {"name": "sha256", "checksum": "d9ad83ecb9dd1081b6220d8ab0fdd3e192eeefe5bee5acb98af91c07e6bd04fd"}, "tags": [], "refs": [["stg_amazon_ads__search_term_ad_keyword_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"], ["stg_amazon_ads__ad_group_history"], ["stg_amazon_ads__keyword_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the search term level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "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_group_name": {"name": "ad_group_name", "description": "The name 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": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "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": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__search_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1676476953.132742, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.match_type,\n keywords.serving_status,\n keywords.state,\n report.search_term,\n report.targeting,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_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\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__search_report\""}, "model.amazon_ads.amazon_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.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads", "fqn": ["amazon_ads", "amazon_ads__ad_group_report"], "unique_id": "model.amazon_ads.amazon_ads__ad_group_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('ad_group_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.serving_status,\n ad_groups.state,\n ad_groups.default_bid,\n report.campaign_bidding_strategy,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__ad_group_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = ad_groups.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(15) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "amazon_ads__ad_group_report.sql", "original_file_path": "models/amazon_ads__ad_group_report.sql", "name": "amazon_ads__ad_group_report", "alias": "amazon_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "e30ef8e1875095bb2f60e56a16c993c5578e51e3819ccbae8d577380c5e9e55f"}, "tags": [], "refs": [["stg_amazon_ads__ad_group_level_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"], ["stg_amazon_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 of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_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 Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a 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_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__ad_group_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1676476953.117422, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.serving_status,\n ad_groups.state,\n ad_groups.default_bid,\n report.campaign_bidding_strategy,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = ad_groups.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_group_report\""}, "model.amazon_ads.amazon_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.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads", "fqn": ["amazon_ads", "amazon_ads__keyword_report"], "unique_id": "model.amazon_ads.amazon_ads__keyword_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('targeting_keyword_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.serving_status,\n keywords.state,\n report.keyword_bid,\n report.keyword_type,\n report.match_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__targeting_keyword_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(18) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "amazon_ads__keyword_report.sql", "original_file_path": "models/amazon_ads__keyword_report.sql", "name": "amazon_ads__keyword_report", "alias": "amazon_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "853d0f5a2efe33b0098beb4728854589e3e57387a1993c289277e0263624e32e"}, "tags": [], "refs": [["stg_amazon_ads__targeting_keyword_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"], ["stg_amazon_ads__ad_group_history"], ["stg_amazon_ads__keyword_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the keyword level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "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_group_name": {"name": "ad_group_name", "description": "The name 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": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "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": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__keyword_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1676476953.1295948, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__targeting_keyword_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.serving_status,\n keywords.state,\n report.keyword_bid,\n report.keyword_type,\n report.match_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_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\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__keyword_report\""}, "model.amazon_ads.amazon_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.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads", "fqn": ["amazon_ads", "amazon_ads__campaign_report"], "unique_id": "model.amazon_ads.amazon_ads__campaign_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n report.campaign_bidding_strategy,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "amazon_ads__campaign_report.sql", "original_file_path": "models/amazon_ads__campaign_report.sql", "name": "amazon_ads__campaign_report", "alias": "amazon_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "58fad347379a7dce3b65a0032928042be589773051054f9a842e5b2794613b0e"}, "tags": [], "refs": [["stg_amazon_ads__campaign_level_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "description": "Each record in this table represents the daily performance at the campaign level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "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": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__campaign_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1676476953.123203, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n report.campaign_bidding_strategy,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\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": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__campaign_report\""}, "model.amazon_ads.amazon_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.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads", "fqn": ["amazon_ads", "amazon_ads__account_report"], "unique_id": "model.amazon_ads.amazon_ads__account_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n --use campaign report since portfolio report not provided\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n \n\n {{ dbt_utils.group_by(5) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "amazon_ads__account_report.sql", "original_file_path": "models/amazon_ads__account_report.sql", "name": "amazon_ads__account_report", "alias": "amazon_ads__account_report", "checksum": {"name": "sha256", "checksum": "0301d1001503ea32f7bff3358c9c625e14d371ff1a9a229caee3e5432a61a316"}, "tags": [], "refs": [["stg_amazon_ads__campaign_level_report"], ["stg_amazon_ads__profile"], ["stg_amazon_ads__campaign_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 of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__account_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1676476953.1145952, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_level_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n --use campaign report since portfolio report not provided\n \n\n\n\n\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n \n\n group by 1,2,3,4,5\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__account_report\""}, "model.amazon_ads.amazon_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.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads", "fqn": ["amazon_ads", "amazon_ads__ad_report"], "unique_id": "model.amazon_ads.amazon_ads__ad_report", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('advertised_product_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from {{ var('product_ad_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.ad_id,\n ads.serving_status,\n ads.state,\n report.advertised_asin,\n report.advertised_sku,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__advertised_product_passthrough_metrics', transform='sum') }}\n\n from report\n \n left join ads\n on ads.ad_id = report.ad_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom fields", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "amazon_ads__ad_report.sql", "original_file_path": "models/amazon_ads__ad_report.sql", "name": "amazon_ads__ad_report", "alias": "amazon_ads__ad_report", "checksum": {"name": "sha256", "checksum": "6e290fb18f0fd7e67d23f5f3421d14d468f89d31088e8245c2505b702b6e552d"}, "tags": [], "refs": [["stg_amazon_ads__advertised_product_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"], ["stg_amazon_ads__ad_group_history"], ["stg_amazon_ads__product_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 of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "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": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_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_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__ad_report.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1676476953.120717, "compiled_code": "\n\nwith report as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__advertised_product_report\"\n), \n\naccount_info as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\"\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"int_amazon_ads__portfolio_history\"\n), \n\ncampaigns as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__product_ad_history\"\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.ad_id,\n ads.serving_status,\n ads.state,\n report.advertised_asin,\n report.advertised_sku,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n \n left join ads\n on ads.ad_id = report.ad_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_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 fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_report\""}, "model.amazon_ads.int_amazon_ads__portfolio_history": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_amazon_ads", "fqn": ["amazon_ads", "intermediate", "int_amazon_ads__portfolio_history"], "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{# This intermediate model creates a dummy portfolio table if the user does not use portfolios. \nIf they are using them, the normal portfolio_history will be used. #}\n\nwith portfolios as (\n select\n {% if var('amazon_ads__portfolio_history_enabled', True) %}\n *\n from {{ var('portfolio_history') }}\n where is_most_recent_record = True\n {% else %}\n {# uses the columns macro from the source package to populate column names #}\n {%- set columns = amazon_ads_source.get_portfolio_history_columns() -%}\n {% for column in columns %}\n {# set null for each column #}\n {%- if column['name'] == 'id' -%}\n cast(null as {{ dbt.type_bigint() }}) as portfolio_id\n {%- elif column['name'] == 'name' -%}\n null as portfolio_name\n {%- else -%}\n null as {{column['name']}}\n {%- endif -%}\n {# add comma if not the last column #}\n {%- if not loop.last -%} , {% endif -%}\n {% endfor %}\n {% endif %}\n)\n\nselect * \nfrom portfolios", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "intermediate/int_amazon_ads__portfolio_history.sql", "original_file_path": "models/intermediate/int_amazon_ads__portfolio_history.sql", "name": "int_amazon_ads__portfolio_history", "alias": "int_amazon_ads__portfolio_history", "checksum": {"name": "sha256", "checksum": "f16073f69f2861ff80a5f7ebf6c93e4ad665ec5f091717de9b52f1a985028bae"}, "tags": [], "refs": [["stg_amazon_ads__portfolio_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/intermediate/int_amazon_ads__portfolio_history.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "view", "enabled": true}, "created_at": 1676476950.935429, "compiled_code": "\n\n\n\nwith portfolios as (\n select\n \n *\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\"\n where is_most_recent_record = True\n \n)\n\nselect * \nfrom portfolios", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"int_amazon_ads__portfolio_history\""}, "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": "postgres", "schema": "ad_reporting_integration_tests_2_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\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where creatives.url is not null\n {% endif %}\n \n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom joined", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": "f70f450f715f519a00124348bc02f28ba3c9512aeb5f3ce0d57f01421e7a7f18"}, "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": 1676476953.16879, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\ncreatives as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"int_facebook_ads__creative_history\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__ad_history\"\n where is_most_recent_record = true\n\n), \n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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\n \n where creatives.url is not null\n \n \n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.1759412, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 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 \n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.1738508, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.174932, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.1707132, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.172411, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__basic_ad\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__account_history\"\n where is_most_recent_record = true\n\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__campaign_history\"\n where is_most_recent_record = true\n\n),\n\nad_sets as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__ad_set_history\"\n where is_most_recent_record = true\n\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "58070e7fbe67471ca464a7f8fdb011e4e8582d1651e7b42b966218bdaf1b4235"}, "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": 1676476950.988354, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__creative_history\"\n where is_most_recent_record = true\n\n), \n\nurl_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n\n split_part(\n coalesce(page_link,template_page_link),\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n coalesce(page_link,template_page_link),\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n coalesce(page_link,template_page_link),\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base._fivetran_id = url_tags_pivoted._fivetran_id\n and base.creative_id = url_tags_pivoted.creative_id\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.240583, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n),ad_hourly as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), creatives as (\n\n select *\n from __dbt__cte__snapchat_ads__creative_history_prep\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n)"}], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 ad_squads.ad_squad_id,\n ad_squads.ad_squad_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n account.currency,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend\n \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\n \n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n left join creatives\n on ads.creative_id = creatives.creative_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 creatives.ad_account_id = account.ad_account_id\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where creatives.url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(18) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": "5ef679cec36298aa943c64d752fd4f730f71b1ab20127e5bbbd5d1ad952131f4"}, "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_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad 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": []}, "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": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad 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": []}, "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": 1676476953.247993, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n),ad_hourly as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), creatives as (\n\n select *\n from __dbt__cte__snapchat_ads__creative_history_prep\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 ad_squads.ad_squad_id,\n ad_squads.ad_squad_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n account.currency,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend\n \n \n\n\n\n\n \n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n left join creatives\n on ads.creative_id = creatives.creative_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 creatives.ad_account_id = account.ad_account_id\n\n \n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where creatives.url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "sql": " __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\n)\n\nselect *\nfrom fields\n)"}], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.239011, "compiled_code": "\n\nwith ad_hourly as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.2442722, "compiled_code": "\n\nwith ad_squad_hourly as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), ad_squads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.242283, "compiled_code": "\n\nwith campaign_hourly as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__campaign_hourly_report\"\n\n), account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history\"\n where is_most_recent_record = true\n\n), campaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__campaign_report\""}, "model.snapchat_ads.snapchat_ads__creative_history_prep": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "96937fe8400a512c70ff7cf59a4f215276169b68df7c5bdd67b9a0c1234d86e8"}, "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": 1676476951.066933, "compiled_code": "\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__creative_history\"\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n\n split_part(\n base.url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n base.url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n base.url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n coalesce(url_tags_pivoted.utm_source, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_source,\n coalesce(url_tags_pivoted.utm_medium, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_medium,\n coalesce(url_tags_pivoted.utm_campaign, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_campaign,\n coalesce(url_tags_pivoted.utm_content, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_content,\n coalesce(url_tags_pivoted.utm_term, nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n base.url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'')) as utm_term\n from base\n left join url_tags_pivoted\n on base.creative_id = url_tags_pivoted.creative_id\n\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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "50112c5d48ed15989072dc56b8e1fc598778564b5fef97bcc538ca6927117713"}, "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": 1676476953.29206, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 TEXT) 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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.296376, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "a74962ca2bca2e4507e3c647d9dd4ff276be310258c25d99c1228024b6e7e03c"}, "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": 1676476953.2818408, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 TEXT) as ad_group_id,\n updated_at,\n type as ad_group_type, \n campaign_id, \n campaign_name, \n name as ad_group_name, \n status as ad_group_status,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.type_string", "macro.dbt.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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.split_part(string_text='final_urls', delimiter_text=\"','\", part_number=1) }} as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n {{ dbt.split_part('final_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('final_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('final_url') }} as url_path,\n {{ 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/joseph.markiewicz/Documents/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": "e0ff6b7aea218822442000bf423b307647e99e54c9bf48ed4bf411bcc6f00edb"}, "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": 1676476953.284574, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 TEXT) as ad_group_id, \n id as ad_id,\n name as ad_name,\n updated_at,\n type as ad_type,\n status as ad_status,\n display_url,\n final_urls as source_final_urls,\n replace(replace(final_urls, '[', ''),']','') as final_urls,\n row_number() over (partition by 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 \n\n split_part(\n final_urls,\n ',',\n 1\n )\n\n\n \n\n as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n \n\n \n \n\n split_part(\n final_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n final_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n final_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term\n from final_urls\n)\n\nselect * \nfrom url_fields", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "ffc5f45c98b6b7a2824807980d55ad185258b67c2e8b3066844722616cdf4074"}, "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": 1676476953.295041, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 TEXT) 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.type_string", "macro.dbt.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": "postgres", "schema": "ad_reporting_integration_tests_2_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 in ('spark','databricks') %}\n coalesce(cast(ad_group_id as {{ dbt.type_string() }}), split(ad_group,'adGroups/')[1]) as ad_group_id,\n {% else %}\n coalesce(cast(ad_group_id as {{ dbt.type_string() }}), {{ dbt.split_part(string_text='ad_group', delimiter_text=\"'adGroups/'\", part_number=2) }}) as ad_group_id,\n {% endif %}\n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n 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/joseph.markiewicz/Documents/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": "be21b75b017ffad3f142c3d90ab9be8f9d99e9f16ea682acdf00217e6817fea2"}, "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": 1676476953.286415, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 TEXT), \n\n \n \n\n split_part(\n ad_group,\n 'adGroups/',\n 2\n )\n\n\n \n\n) as ad_group_id,\n \n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "0f6a6882c94309772926b30b0b1d0ddf5f38fa9cdc8133ad6d771ead57c0a6a3"}, "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": 1676476953.2905412, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 TEXT) as ad_group_id,\n base_campaign_id,\n updated_at,\n type,\n status,\n keyword_match_type,\n keyword_text,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.2935228, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.2884219, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.280354, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.183518, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_account_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.187385, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.1983218, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_campaign_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.203656, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.21342, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.217199, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_group_criterion_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.2217999, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_group_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.229082, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_keyword_stats_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.232803, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.2365801, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.381463, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__ad_report\"\n), \n\nad as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__ad_history\"\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.378571, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_report\"\n), \n\nad_group as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.386488, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__keyword_report\"\n), \n\nkeyword as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__keyword_history\"\n where is_most_recent_record = True\n), \n\nad_group as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__ad_group_history\"\n where is_most_recent_record = True\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3918238, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__search_term_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.383771, "compiled_code": "\n\nwith report as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\"\n\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.388994, "compiled_code": "\n\nwith report as (\n \n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__campaign_report\"\n), \n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads_source\".\"stg_apple_search_ads__campaign_history\"\n where is_most_recent_record = True\n), \n\norganization as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.460315, "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 date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__campaign_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__campaign_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__campaign_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__campaign_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__campaign_group_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__campaign_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__campaign_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__campaign_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__campaign_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\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 date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__campaign_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__campaign_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__campaign_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__campaign_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__campaign_group_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__campaign_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__campaign_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__campaign_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__campaign_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4547288, "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 date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__account_report\"\n\n),\n\n\n\nfacebook_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__account_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__account_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__account_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__organization_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__account_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__advertiser_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__account_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__advertiser_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__account_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\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 date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__account_report\"\n\n),\n\n\n\nfacebook_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__account_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__account_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__account_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__organization_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__account_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__advertiser_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__account_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__advertiser_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__account_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.456797, "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 date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__ad_group_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__ad_group_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__ad_group_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__ad_set_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__ad_group_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(ad_squad_id as TEXT) as ad_group_id \n ,cast(ad_squad_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__ad_squad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__ad_group_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__line_item_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_group_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\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 date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__ad_group_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__ad_group_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__ad_group_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__ad_set_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__ad_group_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(ad_squad_id as TEXT) as ad_group_id \n ,cast(ad_squad_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__ad_squad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__ad_group_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__line_item_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_group_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 = ['amazon_ads', 'apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', 'microsoft_ads'] %}\n{% endif %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__search_report') }}\n),\n\naggregated as (\n \n select \n 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/joseph.markiewicz/Documents/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": "6bc6ff01c66a8e32bcedc6a6f3f8429bc445c65f6bd18ed2ee4813ddb065fb2b"}, "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": 1676476953.464813, "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 date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_name as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_query as TEXT) as search_query \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__search_report\"\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_term_text as TEXT) as search_query \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__search_term_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_term as TEXT) as search_query \n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__search_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__search_report\n),\n\naggregated as (\n \n select \n 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 date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_name as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_query as TEXT) as search_query \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__search_report\"\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_term_text as TEXT) as search_query \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__search_term_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_term as TEXT) as search_query \n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__search_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.458875, "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 date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__ad_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__ad_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__ad_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__ad_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(creative_id as TEXT) as ad_id \n ,cast(null as TEXT) as ad_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__creative_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(pin_promotion_id as TEXT) as ad_id \n ,cast(pin_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__pin_promotion_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(null as TEXT) as ad_group_id \n ,cast(null as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(null as TEXT) as campaign_id \n ,cast(null as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__ad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__ad_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(promoted_tweet_id as TEXT) as ad_id \n ,cast(tweet_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__promoted_tweet_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(advertised_asin as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\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 date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__ad_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__ad_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__ad_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__ad_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(creative_id as TEXT) as ad_id \n ,cast(null as TEXT) as ad_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__creative_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(pin_promotion_id as TEXT) as ad_id \n ,cast(pin_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__pin_promotion_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(null as TEXT) as ad_group_id \n ,cast(null as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(null as TEXT) as campaign_id \n ,cast(null as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__ad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__ad_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(promoted_tweet_id as TEXT) as ad_id \n ,cast(tweet_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__promoted_tweet_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(advertised_asin as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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=['amazon_ads', 'apple_search_ads']) %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__url_report') }}\n),\n\naggregated as (\n \n select \n 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/joseph.markiewicz/Documents/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": "0df96babf636b0d123d5368bd60ec0f6447614786299fdc3705d5fabb6fb8686"}, "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": 1676476953.4676359, "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 date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__url_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__url_report\"\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__url_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__url_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__url_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(ad_squad_id as TEXT) as ad_group_id \n ,cast(ad_squad_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__url_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__url_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_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 date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__url_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__url_report\"\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__url_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__url_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__url_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(ad_squad_id as TEXT) as ad_group_id \n ,cast(ad_squad_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__url_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__url_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 = ['amazon_ads', 'apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', '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/joseph.markiewicz/Documents/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": "19712b5731c1c125a6a6940b48c1b72255d30ad165ceb8be94d17e0af110c044"}, "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": 1676476953.462522, "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 date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__keyword_report\"\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(criterion_id as TEXT) as keyword_id \n ,cast(keyword_match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__keyword_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_name as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__keyword_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_value as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__keyword_report\"\n\n),\n\n\n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__keyword_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__keyword_report\n),\n\naggregated as (\n \n select \n 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 date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__keyword_report\"\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(criterion_id as TEXT) as keyword_id \n ,cast(keyword_match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__keyword_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_name as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__keyword_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_value as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__keyword_report\"\n\n),\n\n\n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__keyword_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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", "model.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_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\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='campaign', \n field_mapping={\n 'spend': 'cost'\n },\n relation=ref('amazon_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": "3a49dd812fd0f4aeaa60f4d040e32396709e7a74a9650a6dcd1b39346bb47a42"}, "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"], ["amazon_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": 1676476951.367805, "compiled_code": "\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__campaign_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__campaign_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__campaign_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__campaign_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__campaign_group_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__campaign_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__campaign_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__campaign_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__campaign_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\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", "model.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 = ['amazon_ads', 'apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', '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': 'keyword_id',\n 'keyword_text': 'keyword',\n 'keyword_match_type': 'null'\n },\n relation=ref('twitter_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='keyword', \n field_mapping={\n 'spend': 'cost',\n 'keyword_match_type': 'match_type'\n },\n relation=ref('amazon_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": "29b788469d109e4a6a03f5c5ed31ad693712c1f0e4bae524c9ed3271924f133d"}, "tags": [], "refs": [["apple_search_ads__keyword_report"], ["google_ads__keyword_report"], ["microsoft_ads__keyword_report"], ["pinterest_ads__keyword_report"], ["amazon_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": 1676476951.401102, "compiled_code": "\n \n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__keyword_report\"\n\n),\n\n\n\ngoogle_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(criterion_id as TEXT) as keyword_id \n ,cast(keyword_match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__keyword_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_name as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__keyword_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_value as TEXT) as keyword_text \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__keyword_report\"\n\n),\n\n\n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(match_type as TEXT) as keyword_match_type \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__keyword_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "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", "model.amazon_ads.amazon_ads__ad_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": "postgres", "schema": "ad_reporting_integration_tests_2_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\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='ad', \n field_mapping={\n 'spend': 'cost',\n 'ad_name': 'advertised_asin'\n },\n relation=ref('amazon_ads__ad_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": "bdebddf297a965868b760abcba9a332a2b18fde5e5bd8542df384db30a85ec82"}, "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"], ["amazon_ads__ad_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": 1676476951.420425, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__ad_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__ad_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__ad_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__ad_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(creative_id as TEXT) as ad_id \n ,cast(null as TEXT) as ad_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__creative_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(pin_promotion_id as TEXT) as ad_id \n ,cast(pin_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__pin_promotion_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(null as TEXT) as ad_group_id \n ,cast(null as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(null as TEXT) as campaign_id \n ,cast(null as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__ad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(ad_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__ad_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(promoted_tweet_id as TEXT) as ad_id \n ,cast(tweet_name as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__promoted_tweet_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(ad_id as TEXT) as ad_id \n ,cast(advertised_asin as TEXT) as ad_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\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", "model.amazon_ads.amazon_ads__account_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": "postgres", "schema": "ad_reporting_integration_tests_2_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\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='account', \n field_mapping={\n 'spend': 'cost'\n },\n relation=ref('amazon_ads__account_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": "e212850f3f1075f15be1172db935eba3b5543cb29b4237ee69e21b0c5336a9a9"}, "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"], ["amazon_ads__account_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": 1676476951.4511502, "compiled_code": "\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__account_report\"\n\n),\n\n\n\nfacebook_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__account_report\"\n\n),\n\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__account_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__account_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__organization_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__account_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__advertiser_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__account_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__advertiser_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__account_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\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": "postgres", "schema": "ad_reporting_integration_tests_2_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=['amazon_ads', 'apple_search_ads']) %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='url',\n relation=ref(package ~ '__url_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='url', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='url', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'spend': 'cost'\n },\n relation=ref('linkedin_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('pinterest_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'ad_group_id': 'ad_squad_id',\n 'ad_group_name': 'ad_squad_name',\n 'clicks':'swipes'\n },\n relation=ref('snapchat_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('tiktok_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='url', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name'\n },\n relation=ref('twitter_ads__url_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": "9b1e8ddc786974b3aa51470fcd3554beb307829d7e6f45723154b3503c823631"}, "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": 1676476951.470804, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__url_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__url_report\"\n\n),\n\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__url_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__url_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__url_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(ad_squad_id as TEXT) as ad_group_id \n ,cast(ad_squad_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__url_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__url_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(base_url as TEXT) as base_url \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n ,cast(url_host as TEXT) as url_host \n ,cast(url_path as TEXT) as url_path \n ,cast(utm_campaign as TEXT) as utm_campaign \n ,cast(utm_content as TEXT) as utm_content \n ,cast(utm_medium as TEXT) as utm_medium \n ,cast(utm_source as TEXT) as utm_source \n ,cast(utm_term as TEXT) as utm_term \n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_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", "model.amazon_ads.amazon_ads__search_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 = ['amazon_ads', 'apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', 'microsoft_ads'] %}\n{% endif %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith \n{% if 'microsoft_ads' in enabled_packages %}\nmicrosoft_ads as (\n\n {{ get_query(\n platform='microsoft_ads', \n report_type='search', \n field_mapping={\n 'keyword_text': 'keyword_name',\n 'search_match_type': 'match_type'\n },\n relation=ref('microsoft_ads__search_report')\n ) }}\n), \n{% endif %}\n\n{% if 'apple_search_ads' in enabled_packages and var('apple_search_ads__using_search_terms', True) %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='search', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'search_match_type': 'match_type',\n 'search_query': 'search_term_text',\n 'clicks': 'taps'\n },\n relation=ref('apple_search_ads__search_term_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='search', \n field_mapping={\n 'spend': 'cost',\n 'search_match_type': 'match_type',\n 'search_query': 'search_term'\n },\n relation=ref('amazon_ads__search_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": "c54a943cafae9d0d7576cb97fdd93653f099b36133aa3a2ff454c1f0039d279c"}, "tags": [], "refs": [["microsoft_ads__search_report"], ["apple_search_ads__search_term_report"], ["amazon_ads__search_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": 1676476951.502802, "compiled_code": "\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_name as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_query as TEXT) as search_query \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__search_report\"\n\n), \n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_term_text as TEXT) as search_query \n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__search_term_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(keyword_id as TEXT) as keyword_id \n ,cast(keyword_text as TEXT) as keyword_text \n ,cast(match_type as TEXT) as search_match_type \n ,cast(search_term as TEXT) as search_query \n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__search_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": [], "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", "model.amazon_ads.amazon_ads__ad_group_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": "postgres", "schema": "ad_reporting_integration_tests_2_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\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='ad_group', \n field_mapping={\n 'spend': 'cost'\n },\n relation=ref('amazon_ads__ad_group_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": "351f16e8943edc510614e587ae211887b3767a1bc4d7a1d87a1b49399f751f5d"}, "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"], ["amazon_ads__ad_group_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": 1676476951.516217, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'google_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_google_ads\".\"google_ads__ad_group_report\"\n\n),\n\n\n\nmicrosoft_ads as (\n select \n \n date(date_day)\n as date_day,\n cast( 'microsoft_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__ad_group_report\"\n\n),\n\n\n\n\napple_search_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'apple_search_ads' as TEXT) as platform,\n\n cast(organization_id as TEXT) as account_id \n ,cast(organization_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(taps as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_apple_search_ads\".\"apple_search_ads__ad_group_report\"\n\n),\n\n\n\nlinkedin_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'linkedin_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(campaign_id as TEXT) as ad_group_id \n ,cast(campaign_name as TEXT) as ad_group_name \n ,cast(campaign_group_id as TEXT) as campaign_id \n ,cast(campaign_group_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__campaign_report\"\n\n),\n\n\n\nfacebook_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'facebook_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_set_id as TEXT) as ad_group_id \n ,cast(ad_set_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads\".\"facebook_ads__ad_set_report\"\n\n),\n\n\n\npinterest_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'pinterest_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__ad_group_report\"\n\n),\n\n\n\nsnapchat_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'snapchat_ads' as TEXT) as platform,\n\n cast(ad_account_id as TEXT) as account_id \n ,cast(ad_account_name as TEXT) as account_name \n ,cast(ad_squad_id as TEXT) as ad_group_id \n ,cast(ad_squad_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(swipes as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_ads__ad_squad_report\"\n\n), \n\n\n\ntiktok_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'tiktok_ads' as TEXT) as platform,\n\n cast(advertiser_id as TEXT) as account_id \n ,cast(advertiser_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_ads__ad_group_report\"\n\n), \n\n\n\ntwitter_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'twitter_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(line_item_id as TEXT) as ad_group_id \n ,cast(line_item_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(spend as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_ads__line_item_report\"\n\n), \n\n\n\namazon_ads as (\n\n select \n \n date(date_day)\n as date_day,\n cast( 'amazon_ads' as TEXT) as platform,\n\n cast(account_id as TEXT) as account_id \n ,cast(account_name as TEXT) as account_name \n ,cast(ad_group_id as TEXT) as ad_group_id \n ,cast(ad_group_name as TEXT) as ad_group_name \n ,cast(campaign_id as TEXT) as campaign_id \n ,cast(campaign_name as TEXT) as campaign_name \n ,cast(clicks as INT) as clicks\n\n ,cast(impressions as INT) as impressions\n\n ,cast(cost as FLOAT) as spend\n\n \nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_group_report\"\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.536906, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 INT) 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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5353742, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.538274, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.542788, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.541735, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5403142, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.545828, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5303009, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.533302, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.531817, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.665715, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_search_term_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.6703098, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.6742349, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_keyword_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.67898, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.68325, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_group_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.691463, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.6956549, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_campaign_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.6993659, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.7109241, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_keyword_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.715661, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "e24e7b799bab5b8e676d2cd221c948f13063c4ac00fe3a6bdfe459413bb1a404"}, "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": 1676476953.605291, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 TEXT) as \n \n android_deep_link\n \n , \n cast(null as TEXT) as \n \n click_tracking_url\n \n , \n \n \n created_time\n \n as \n \n created_time\n \n, \n \n \n creative_type\n \n as \n \n creative_type\n \n, \n \n \n destination_url\n \n as \n \n destination_url\n \n, \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n ios_deep_link\n \n , \n cast(null as boolean) as \n \n is_pin_deleted\n \n , \n cast(null as boolean) as \n \n is_removable\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n pin_id\n \n as \n \n pin_id\n \n, \n cast(null as TEXT) as \n \n review_status\n \n , \n \n \n status\n \n as \n \n status\n \n, \n cast(null as TIMESTAMP) as \n \n updated_time\n \n , \n cast(null as TEXT) as \n \n view_tracking_url\n \n \n\n\n 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 \n\n split_part(\n destination_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n destination_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n destination_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term,\n name as pin_name,\n pin_id,\n status as pin_status,\n creative_type,\n _fivetran_synced,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "041972aec2c8e0b6e3655d0c2c13ff2d06dd8569a75a835ea881824a3c07dcca"}, "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": 1676476953.616582, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 INT) 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 INT) 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 date_trunc('day', date) as date_day,\n keyword_id,\n pin_promotion_id,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "9617b510c122f03795bf8c8e2978d343fd8ea7a3bc11d4d687c91869e309143f"}, "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": 1676476953.608341, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 INT) 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 INT) 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 date_trunc('day', date) as date_day,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.602527, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "870b2eac0c7dc5686b5b7cc39c6d07f31f8d6f9d6cbc84ae0ee4cf6c2f5b20b8"}, "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": 1676476953.611275, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 INT) 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 INT) 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 date_trunc('day', date) as date_day,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.610234, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "d329a85922efac69ec814a21b6650f97f0c4658550fb9d345d38c7ba5bfa69bc"}, "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": 1676476953.6126552, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 INT) 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 INT) 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 date_trunc('day', date) as date_day,\n campaign_id,\n campaign_name,\n campaign_status,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.614675, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "8399848dccc00c25a8bc40f817330fe92ac295b3afdb9742d663200a25a0fdc0"}, "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": 1676476953.6067588, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 date_trunc('day', date) as date_day,\n pin_promotion_id,\n ad_group_id,\n campaign_id,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.60125, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.8261461, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_advertiser_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.830036, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_pin_promotion_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.833986, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_campaign_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.8378649, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_advertiser_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.842665, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_keyword_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.8468869, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_ad_group_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.854966, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_keyword_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.859029, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.8699079, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_ad_group_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476951.873902, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_pin_promotion_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "4a1fb091732e5edc0b035accbe4bf8d5485868129b8e52e6573cc9b06bca582e"}, "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": 1676476953.78603, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 TIMESTAMP) as stat_time_hour,\n cpc, \n cpm,\n ctr,\n impressions,\n clicks,\n spend,\n reach,\n conversion,\n cost_per_conversion,\n conversion_rate,\n likes,\n comments,\n shares,\n profile_visits,\n follows,\n video_play_actions,\n video_watched_2_s,\n video_watched_6_s,\n video_views_p_25,\n video_views_p_50,\n video_views_p_75,\n average_video_play,\n average_video_play_per_user\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "e6aa8625ed40497e25ec5f7f5dd5a02febf003e50002aad7d5fa11bc5cd353b8"}, "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": 1676476953.781912, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 TIMESTAMP) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n \n\n\n\n\n\n from fields\n) \n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "293ad5bd25638965207578b5a55376e173cb199e24c62f0e3fd643c9db913a5a"}, "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": 1676476953.7691112, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "6da656ea12d8f458960301cdc683b06b0556eb112a4d553491d9b9267ff78776"}, "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": 1676476953.7774642, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 TIMESTAMP) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.7662358, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.type_timestamp", "macro.dbt.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n {{ dbt.split_part('landing_page_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('landing_page_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('landing_page_url') }} as url_path,\n {{ 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/joseph.markiewicz/Documents/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": "04ee4bd6f5c670fa46d8c3d6846d21da350c898d5287ee8cca7a8db9518f5b5e"}, "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": 1676476953.7720141, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 TIMESTAMP) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n \n\n \n \n\n split_part(\n landing_page_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n landing_page_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n landing_page_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term,\n landing_page_url,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "cee0a9b6849129be52b0512780a02bfc3ced5461a128c9a7006cfaf5230673c9"}, "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": 1676476953.773377, "compiled_code": "\n\nwith base as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.0065799, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_ad_report_hourly_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.010408, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.014864, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_adgroup_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.0186272, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_campaign_report_hourly_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.022366, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_adgroup_report_hourly_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.026092, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.030684, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_advertiser_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_bigint() }}) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend,\n 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/joseph.markiewicz/Documents/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": "2034249ba6885eae9434fc88a91b108e34b667b7e29c83711b29498b85da644a"}, "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": 1676476953.83197, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__basic_ad_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n cast(null as TEXT) as \n \n ad_name\n \n , \n cast(null as TEXT) as \n \n adset_name\n \n , \n \n \n date\n \n as \n \n date\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n inline_link_clicks\n \n as \n \n inline_link_clicks\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n cast(null as INT) as \n \n reach\n \n , \n cast(null as FLOAT) as \n \n frequency\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(ad_id as bigint) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as bigint) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend,\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_bigint() }}) as creative_id,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n name as creative_name,\n page_link,\n template_page_link,\n url_tags,\n asset_feed_spec_link_urls,\n object_story_link_data_child_attachments,\n object_story_link_data_caption, \n object_story_link_data_description, \n object_story_link_data_link, \n object_story_link_data_message,\n template_app_link_spec_ios,\n template_app_link_spec_ipad,\n template_app_link_spec_android,\n template_app_link_spec_iphone,\n 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/joseph.markiewicz/Documents/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": "b881fe7a6d7f0ec06355c9073495a4e1f89529eceffc1771ca48044e6f401309"}, "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": 1676476953.830206, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__creative_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n page_link\n \n as \n \n page_link\n \n, \n \n \n template_page_link\n \n as \n \n template_page_link\n \n, \n \n \n url_tags\n \n as \n \n url_tags\n \n, \n \n \n asset_feed_spec_link_urls\n \n as \n \n asset_feed_spec_link_urls\n \n, \n \n \n object_story_link_data_child_attachments\n \n as \n \n object_story_link_data_child_attachments\n \n, \n \n \n object_story_link_data_caption\n \n as \n \n object_story_link_data_caption\n \n, \n \n \n object_story_link_data_description\n \n as \n \n object_story_link_data_description\n \n, \n \n \n object_story_link_data_link\n \n as \n \n object_story_link_data_link\n \n, \n \n \n object_story_link_data_message\n \n as \n \n object_story_link_data_message\n \n, \n cast(null as TEXT) as \n \n template_app_link_spec_android\n \n , \n \n \n template_app_link_spec_ios\n \n as \n \n template_app_link_spec_ios\n \n, \n cast(null as TEXT) as \n \n template_app_link_spec_ipad\n \n , \n cast(null as TEXT) as \n \n template_app_link_spec_iphone\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n cast(id as bigint) as creative_id,\n cast(account_id as bigint) as account_id,\n name as creative_name,\n page_link,\n template_page_link,\n url_tags,\n asset_feed_spec_link_urls,\n object_story_link_data_child_attachments,\n object_story_link_data_caption, \n object_story_link_data_description, \n object_story_link_data_link, \n object_story_link_data_message,\n template_app_link_spec_ios,\n template_app_link_spec_ipad,\n template_app_link_spec_android,\n template_app_link_spec_iphone,\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_bigint() }}) as account_id,\n cast(id as {{ dbt.type_bigint() }}) as campaign_id,\n name as campaign_name,\n start_time as start_at,\n stop_time as end_at,\n status,\n daily_budget,\n lifetime_budget,\n budget_remaining,\n 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/joseph.markiewicz/Documents/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": "d536771ac164bc64d15f6a8f03f6c06626d76f344c02de8d04bf97b978ed60d7"}, "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": 1676476953.8271291, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__campaign_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n updated_time\n \n as \n \n updated_time\n \n, \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as TIMESTAMP) as \n \n stop_time\n \n , \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as INT) as \n \n daily_budget\n \n , \n cast(null as INT) as \n \n lifetime_budget\n \n , \n cast(null as FLOAT) 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 bigint) as account_id,\n cast(id as bigint) as campaign_id,\n name as campaign_name,\n start_time as start_at,\n stop_time as end_at,\n status,\n daily_budget,\n lifetime_budget,\n budget_remaining,\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "db38aeeedb4c0b457605036f2452543a77d1e65f0d7d13287fac1b705c1d1407"}, "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": 1676476953.821646, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__account_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n account_status\n \n , \n cast(null as TEXT) as \n \n business_country_code\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as TEXT) as \n \n currency\n \n , \n cast(null as TEXT) as \n \n timezone_name\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as bigint) as account_id,\n _fivetran_synced,\n name as account_name,\n account_status,\n business_country_code,\n created_time as created_at,\n currency,\n timezone_name,\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_bigint() }}) as ad_id,\n name as ad_name,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(ad_set_id as {{ dbt.type_bigint() }}) as ad_set_id, \n cast(campaign_id as {{ dbt.type_bigint() }}) as campaign_id,\n cast(creative_id as {{ dbt.type_bigint() }}) as creative_id,\n 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/joseph.markiewicz/Documents/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": "19719ef45773ae189aeec4da0c5467b45bc6a253bbaf2a13ee271d63723e64da"}, "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": 1676476953.823056, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 bigint) as ad_id,\n name as ad_name,\n cast(account_id as bigint) as account_id,\n cast(ad_set_id as bigint) as ad_set_id, \n cast(campaign_id as bigint) as campaign_id,\n cast(creative_id as bigint) as creative_id,\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_bigint() }}) as ad_set_id,\n name as ad_set_name,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(campaign_id as {{ dbt.type_bigint() }}) as campaign_id,\n start_time as start_at,\n end_time as end_at,\n bid_strategy,\n daily_budget,\n budget_remaining,\n status,\n 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/joseph.markiewicz/Documents/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": "32c6ae0ef94b4f88261a0dd4dda62e6e92de99a56ffbe8ae1360c6469052e212"}, "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": 1676476953.825085, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_facebook_ads_source\".\"stg_facebook_ads__ad_set_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n updated_time\n \n as \n \n updated_time\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as TIMESTAMP) as \n \n end_time\n \n , \n cast(null as TEXT) as \n \n bid_strategy\n \n , \n cast(null as INT) as \n \n daily_budget\n \n , \n cast(null as INT) as \n \n budget_remaining\n \n , \n cast(null as TEXT) 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 bigint) as ad_set_id,\n name as ad_set_name,\n cast(account_id as bigint) as account_id,\n cast(campaign_id as bigint) as campaign_id,\n start_time as start_at,\n end_time as end_at,\n bid_strategy,\n daily_budget,\n budget_remaining,\n status,\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.103434, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_ad_set_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.1076941, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_basic_ad_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.112913, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.116857, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.121162, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_creative_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.125068, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "aad7890ff2546a5611d55ff7393a3580ffae73d4f1036f158589bd8c20dd36e7"}, "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": 1676476953.9111, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 TIMESTAMP) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by 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/joseph.markiewicz/Documents/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": "b9f87bec0fe3fe17b30ccd2de99f8cb85d764a3867d0c7d1876f60a91b717445"}, "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": 1676476953.903682, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_squad_id\n \n as \n \n ad_squad_id\n \n, \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n \n \n creative_id\n \n as \n \n creative_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n id as ad_id,\n name as ad_name,\n cast (created_at as TIMESTAMP) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as created_at,\n campaign_id,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by 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/joseph.markiewicz/Documents/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": "b78ca2d715716a88b33e55219ef00243ae62fa062be779ccbd0e4ace8351e903"}, "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": 1676476953.908223, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_squad_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n 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 TIMESTAMP) as created_at,\n campaign_id,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "ce7ad13fe4751d9607130fc2995b208171cfd944ac7fbd8a499209ae6a75aba2"}, "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": 1676476953.9065988, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_hourly_report_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n cast(null as numeric(28,6)) as \n \n attachment_quartile_1\n \n , \n cast(null as numeric(28,6)) as \n \n attachment_quartile_2\n \n , \n cast(null as numeric(28,6)) as \n \n attachment_quartile_3\n \n , \n cast(null as numeric(28,6)) as \n \n attachment_total_view_time_millis\n \n , \n cast(null as numeric(28,6)) as \n \n attachment_view_completion\n \n , \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n cast(null as numeric(28,6)) as \n \n quartile_1\n \n , \n cast(null as numeric(28,6)) as \n \n quartile_2\n \n , \n cast(null as numeric(28,6)) as \n \n quartile_3\n \n , \n cast(null as numeric(28,6)) as \n \n saves\n \n , \n cast(null as numeric(28,6)) as \n \n screen_time_millis\n \n , \n cast(null as numeric(28,6)) as \n \n shares\n \n , \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n swipes\n \n as \n \n swipes\n \n, \n cast(null as numeric(28,6)) as \n \n video_views\n \n , \n cast(null as numeric(28,6)) as \n \n view_completion\n \n , \n cast(null as numeric(28,6)) as \n \n view_time_millis\n \n \n\n \n from base\n),\n\nfinal as (\n \n select \n ad_id,\n cast (date as TIMESTAMP) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by 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/joseph.markiewicz/Documents/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": "52f2479f057f755f7fca3153351bb4bbda4767ca96ed9379a2fa1ec30df6fb52"}, "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": 1676476953.916588, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__creative_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n \n \n web_view_url\n \n as \n \n web_view_url\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as creative_id,\n cast (created_at as TIMESTAMP) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "ed5cc64860273e4d9198143e337401240d61e563e41e587369e82184ee3254f5"}, "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": 1676476953.917609, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 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", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by 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/joseph.markiewicz/Documents/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": "b3c1ecb6e139e06bd3242b0ae35973de841a51fc916e32db5ee62a61c69da760"}, "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": 1676476953.902293, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__ad_account_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as TEXT) as \n \n advertiser\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as TEXT) as \n \n currency\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TEXT) as \n \n timezone\n \n , \n cast(null as TEXT) as \n \n type\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n 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 TIMESTAMP) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "b8abf4f1e0b0aa8d163a63e275f064d72d58b1f1ccb72b6c0a28d90dca2ecf38"}, "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": 1676476953.91521, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 TIMESTAMP) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.type_timestamp() }}) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by 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/joseph.markiewicz/Documents/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": "a8a584b7e724b5a0d6b89278795b3d2a9cfc45aa83be000333e2acb288da179d"}, "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": 1676476953.912368, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads_source\".\"stg_snapchat_ads__campaign_history_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ad_account_id\n \n as \n \n ad_account_id\n \n, \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n id as campaign_id,\n ad_account_id,\n cast (created_at as TIMESTAMP) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.2219331, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_creative_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.225722, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.230043, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_hourly_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.233803, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_creative_url_tag_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.23758, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_squad_hourly_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.241591, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.2462, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.2823548, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_squad_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.2864141, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_campaign_hourly_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n ads.type as ad_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform = 'sum') }}\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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/joseph.markiewicz/Documents/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": "934fc75d0e83e5d37bb42d7e6d12bcbabd93de634135fcdd7d865735d2d3393a"}, "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": 1676476953.972341, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n ads.type as ad_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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/joseph.markiewicz/Documents/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": "82d1cfaf1da6109ebe37a96d610aef7b6618cf1b3aa14978ec1466c290db1a39"}, "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": 1676476953.969661, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_daily_report\"\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n),\n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n keywords.keyword_name,\n report.keyword_id,\n keywords.match_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__keyword_passthrough_metrics', transform = 'sum') }}\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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/joseph.markiewicz/Documents/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": "d68019c66e2ec76c9e4b63d44639606aaefdb559b7e82220549a206332762798"}, "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": 1676476953.977649, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__keyword_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n keywords.keyword_name,\n report.keyword_id,\n keywords.match_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads\".\"microsoft_ads__keyword_report\""}, "model.microsoft_ads.microsoft_ads__url_report": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.dbt.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": "postgres", "schema": "ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n {{ dbt.split_part('ads.final_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('ads.final_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('ads.final_url') }} as url_path,\n\n {% if var('microsoft_ads_auto_tagging_enabled', false) %}\n\n coalesce( {{ 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\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where base_url is not null\n {% endif %}\n)\n\nselect *\nfrom filtered", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": "568188d83446e2332ec4fc7053bb17ed95bf0cd1a878ab8fec2835f82035a2cb"}, "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": 1676476953.9844701, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_daily_report\"\n\n), \n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n \n\n \n \n\n split_part(\n ads.final_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n ads.final_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n\n \n\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n \n\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n ads.final_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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\n \n where base_url is not null\n \n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 report.account_id,\n accounts.time_zone as account_timezone,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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/joseph.markiewicz/Documents/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": "33fcae2d635e30598310a5da35782efce11b976c89c69da690ff50160271cc8f"}, "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": 1676476953.967391, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__account_daily_report\"\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 report.account_id,\n accounts.time_zone as account_timezone,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.keyword_id,\n keywords.keyword_name,\n coalesce(report.delivered_match_type, report.bid_match_type) as match_type,\n report.search_query,\n report.device_os,\n report.device_type,\n report.network,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__search_passthrough_metrics', transform = 'sum') }}\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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/joseph.markiewicz/Documents/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": "6eebba936b78f5793b3d0dc2cd72916637af31cbd2a94ee628b7b1561019511d"}, "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": 1676476953.980671, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__search_daily_report\"\n\n), \n\nkeywords as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__keyword_history\"\n where is_most_recent_record = True\n),\n\nads as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_history\"\n where is_most_recent_record = True\n\n), \n\nad_groups as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__ad_group_history\"\n where is_most_recent_record = True\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n\n), \n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.keyword_id,\n keywords.keyword_name,\n coalesce(report.delivered_match_type, report.bid_match_type) as match_type,\n report.search_query,\n report.device_os,\n report.device_type,\n report.network,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.type as campaign_type,\n campaigns.time_zone as campaign_timezone,\n campaigns.status as campaign_status,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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/joseph.markiewicz/Documents/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": "67405deb1cc6d60f53c6743998081fa4ea77b67191d8a84a423ac68f2051396e"}, "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": 1676476953.974726, "compiled_code": "\n\nwith report as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__campaign_daily_report\"\n\n), \n\ncampaigns as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_microsoft_ads_source\".\"stg_microsoft_ads__campaign_history\"\n where is_most_recent_record = True\n),\n\naccounts as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.type as campaign_type,\n campaigns.time_zone as campaign_timezone,\n campaigns.status as campaign_status,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "f81071b6cdbc860c2ae2316870f010fe0f0fc2c8166fc3b2d5eeea729f6defcd"}, "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": 1676476954.063087, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 date_trunc('day', date) as date_day,\n account_id,\n campaign_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.0562692, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "3e4a99488dfe650a4fbdcd7a60b982d2044c2c2b3ad1be7479fc35c4b929d343"}, "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": 1676476954.064684, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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 date_trunc('day', date) as date_day,\n account_id,\n line_item_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.052085, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "90aa40996baaf0ab4455ec96ddd1bb6e9fabee419da4496f9b534e0d866ac36d"}, "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": 1676476954.0593631, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 date_trunc('day', date) as date_day,\n account_id,\n promoted_tweet_id,\n placement,\n clicks as clicks,\n impressions as impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks as url_clicks\n\n \n\n\n\n\n \n from renamed\n\n)\n\nselect * from spend_calc", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.067463, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.0487292, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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.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/joseph.markiewicz/Documents/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": "96ff5a0344a66484694df8a7eff61312f4b5e5dd177f81470447d7a4698ee2d1"}, "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": 1676476954.061564, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n\n split_part(\n expanded_url,\n '?',\n 1\n )\n\n\n \n\n as base_url,\n \n \n cast(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/',\n 1\n )\n\n\n \n\n,\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_host,\n '/' || \n \n cast(\n\n \n \n\n split_part(\n \n\n right(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n \n\n length(\n \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n position(\n '/' in \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ), 0),\n \n\n position(\n '?' in \n\n replace(\n \n\n replace(\n expanded_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n ) - 1\n )\n ),\n '?',\n 1\n )\n\n\n \n\n as TEXT)\n as url_path,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_source=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_source,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_medium=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_medium,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_campaign=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_campaign,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_content=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_content,\n nullif(\n\n \n \n\n split_part(\n \n\n \n \n\n split_part(\n expanded_url,\n 'utm_term=',\n 2\n )\n\n\n \n\n,\n '&',\n 1\n )\n\n\n \n\n,'') as utm_term\n \n from fields\n\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.05778, "compiled_code": "\n\nwith source as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.4622111, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_tweet_url_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.467155, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_tweet_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.47375, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_promoted_tweet_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.4776268, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_line_item_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.4814, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_campaign_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.485889, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_campaign_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.493692, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_line_item_report_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.497493, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_account_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.502039, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_promoted_tweet_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1623302, "compiled_code": "\n\nwith campaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.165545, "compiled_code": "\n\nwith creative as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1599722, "compiled_code": "\n\nwith campaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.155149, "compiled_code": "\n\nwith account as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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 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.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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where creative.click_uri is not null\n {% endif %}\n\n {{ dbt_utils.group_by(n=19) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "linkedin", "root_path": "/Users/joseph.markiewicz/Documents/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": "f27d55e979f8fb3ef7e216f896b7ae0875426ffa511baa0d19606b3ddc54737f"}, "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": 1676476954.168979, "compiled_code": "\n\nwith creative as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__creative_history\"\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_history\"\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__campaign_group_history\"\n where is_latest_version\n),\n\naccount as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads_source\".\"stg_linkedin_ads__account_history\"\n where is_latest_version\n),\n\nreport as (\n\n select *\n from \"postgres\".\"ad_reporting_integration_tests_2_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 \n where creative.click_uri is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.653576, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.654758, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.6621492, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.66331, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.667307, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.6683378, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.671099, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.672124, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.676697, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.677712, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.680524, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.68156, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.686053, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.687073, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.6898181, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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__budget_association_status.6f2312e762": {"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", "budget_association_status"], "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_3d58d273ca86ec068f90d76d9e472d27", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_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__budget_association_status"], "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__budget_association_status.6f2312e762", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27\") }}", "language": "sql", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27.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__budget_association_status", "alias": "dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27", "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_3d58d273ca86ec068f90d76d9e472d27.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27"}, "created_at": 1676476952.6908998, "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, budget_association_status\n from \"postgres\".\"ad_reporting_integration_tests_2_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, budget_association_status\n having count(*) > 1\n\n)\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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.695271, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.69629, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.6990469, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.700088, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.704736, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.705772, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.7390878, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.740306, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.741493, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n advertiser_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.744798, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.7458072, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.747025, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.750308, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.751322, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.752343, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.755414, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.756735, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.7581089, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, advertiser_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.761246, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.7622678, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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.not_null_tiktok_ads__url_report_base_url.37afef2e1b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_base_url"], "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/tiktok_ads", "path": "not_null_tiktok_ads__url_report_base_url.sql", "original_file_path": "models/tiktok_ads.yml", "name": "not_null_tiktok_ads__url_report_base_url", "alias": "not_null_tiktok_ads__url_report_base_url", "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_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1676476952.763598, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_integration_tests_2_tiktok_ads\".\"tiktok_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50\") }}", "language": "sql", "package_name": "tiktok_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50"}, "created_at": 1676476952.764957, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.795649, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.796772, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.7978828, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.798885, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, placement, account_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.8020449, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.8030221, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.803995, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.8051572, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.808367, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.809362, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.810345, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.811332, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, placement\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.814192, "column_name": "date_day", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_keyword_id"], "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__keyword_report_keyword_id.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__keyword_report_keyword_id", "alias": "not_null_twitter_ads__keyword_report_keyword_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": 1676476952.815548, "column_name": "keyword_id", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_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_5dd02ea4aea03fbc902c8987427642b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id"], "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1\") }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1.sql", "original_file_path": "models/twitter.yml", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id", "alias": "dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1", "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_5dd02ea4aea03fbc902c8987427642b1"}, "created_at": 1676476952.816555, "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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.819392, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.820388, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.821394, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.8247411, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.825875, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.8268642, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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.not_null_twitter_ads__url_report_base_url.dfd7ab549e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_base_url"], "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads", "path": "not_null_twitter_ads__url_report_base_url.sql", "original_file_path": "models/twitter.yml", "name": "not_null_twitter_ads__url_report_base_url", "alias": "not_null_twitter_ads__url_report_base_url", "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_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1676476952.828204, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads\".\"twitter_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7\") }}", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7"}, "created_at": 1676476952.8295648, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.884622, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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_destination_url.0bb7f30502": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "destination_url", "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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_destination_url"], "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/pinterest", "path": "not_null_pinterest_ads__url_report_destination_url.sql", "original_file_path": "models/pinterest.yml", "name": "not_null_pinterest_ads__url_report_destination_url", "alias": "not_null_pinterest_ads__url_report_destination_url", "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_destination_url.sql", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1676476952.886088, "compiled_code": "\n \n \n\n\n\nselect destination_url\nfrom \"postgres\".\"ad_reporting_integration_tests_2_pinterest\".\"pinterest_ads__url_report\"\nwhere destination_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "destination_url", "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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.887135, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4\") }}", "language": "sql", "package_name": "pinterest", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4"}, "created_at": 1676476952.888632, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.891937, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.892939, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.893955, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.8970299, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.898023, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.899158, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, advertiser_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.902022, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.903038, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.904045, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n advertiser_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.906832, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.907839, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.9092171, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.9123971, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.913408, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.9144151, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true}, "created_at": 1676476952.93595, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b\") }}", "language": "sql", "package_name": "google_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b"}, "created_at": 1676476952.937387, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.9404118, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.941605, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.944831, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.945865, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.948693, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.949674, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.952611, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.953727, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.9567518, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.957771, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, criterion_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_amazon_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.amazon_ads_source.stg_amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__ad_group_history_ad_group_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__ad_group_history_ad_group_id", "alias": "not_null_stg_amazon_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__ad_group_history_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476952.9870741, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_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_amazon_ads__ad_group_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_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.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date", "alias": "dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__ad_group_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1"}, "created_at": 1676476952.988182, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, last_updated_date\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_history\"\n group by ad_group_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_amazon_ads__ad_group_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_level_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id", "alias": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__ad_group_level_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476952.991023, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_report\"\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "ad_group_id", "file_key_name": "models.stg_amazon_ads__ad_group_level_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_level_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.amazon_ads_source.stg_amazon_ads__ad_group_level_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day", "alias": "dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__ad_group_level_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d"}, "created_at": 1676476952.992183, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__ad_group_level_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_amazon_ads__ad_group_level_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__advertised_product_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__advertised_product_report_ad_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__advertised_product_report_ad_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__advertised_product_report_ad_id", "alias": "not_null_stg_amazon_ads__advertised_product_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__advertised_product_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__advertised_product_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476952.994808, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__advertised_product_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_amazon_ads__advertised_product_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__advertised_product_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.amazon_ads_source.stg_amazon_ads__advertised_product_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day", "alias": "dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__advertised_product_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417"}, "created_at": 1676476952.995989, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__advertised_product_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.stg_amazon_ads__advertised_product_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_amazon_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.amazon_ads_source.stg_amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__campaign_history_campaign_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__campaign_history_campaign_id", "alias": "not_null_stg_amazon_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__campaign_history_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476952.998684, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_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_amazon_ads__campaign_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_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.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date", "alias": "dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9"}, "created_at": 1676476952.999669, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, last_updated_date\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_history\"\n group by campaign_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_amazon_ads__campaign_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_level_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__campaign_level_report_campaign_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__campaign_level_report_campaign_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__campaign_level_report_campaign_id", "alias": "not_null_stg_amazon_ads__campaign_level_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__campaign_level_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__campaign_level_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.002424, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_level_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_amazon_ads__campaign_level_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_level_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.amazon_ads_source.stg_amazon_ads__campaign_level_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day", "alias": "dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__campaign_level_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748"}, "created_at": 1676476953.003437, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__campaign_level_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_amazon_ads__campaign_level_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_amazon_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.amazon_ads_source.stg_amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__keyword_history_keyword_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__keyword_history_keyword_id", "alias": "not_null_stg_amazon_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__keyword_history_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.006151, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_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_amazon_ads__keyword_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_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.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date", "alias": "dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__keyword_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be"}, "created_at": 1676476953.007178, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, last_updated_date\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__keyword_history\"\n group by keyword_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_amazon_ads__keyword_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "portfolio_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__portfolio_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__portfolio_history_portfolio_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__portfolio_history_portfolio_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__portfolio_history_portfolio_id", "alias": "not_null_stg_amazon_ads__portfolio_history_portfolio_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__portfolio_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__portfolio_history_portfolio_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.009886, "compiled_code": "\n \n \n\n\n\nselect portfolio_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\"\nwhere portfolio_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "portfolio_id", "file_key_name": "models.stg_amazon_ads__portfolio_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["portfolio_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__portfolio_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.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date", "alias": "dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__portfolio_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147"}, "created_at": 1676476953.010904, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n portfolio_id, last_updated_date\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__portfolio_history\"\n group by portfolio_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_amazon_ads__portfolio_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__product_ad_history')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__product_ad_history_ad_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__product_ad_history_ad_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__product_ad_history_ad_id", "alias": "not_null_stg_amazon_ads__product_ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__product_ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__product_ad_history_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.013623, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__product_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_amazon_ads__product_ad_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__product_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.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date", "alias": "dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__product_ad_history"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814"}, "created_at": 1676476953.014613, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, last_updated_date\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__product_ad_history\"\n group by ad_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_amazon_ads__product_ad_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__profile')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__profile"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__profile_profile_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__profile_profile_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__profile_profile_id", "alias": "not_null_stg_amazon_ads__profile_profile_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__profile"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__profile_profile_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.017298, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__profile\"\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "profile_id", "file_key_name": "models.stg_amazon_ads__profile"}, "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__targeting_keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id", "alias": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__targeting_keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.0183082, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__targeting_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_amazon_ads__targeting_keyword_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__targeting_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.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day", "alias": "dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__targeting_keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6"}, "created_at": 1676476953.0197701, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__targeting_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_amazon_ads__targeting_keyword_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term", "model": "{{ get_where_subquery(ref('stg_amazon_ads__search_term_ad_keyword_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"]}, "config": {"enabled": true, "alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term"], "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term", "alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__search_term_ad_keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe"}, "created_at": 1676476953.022408, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report\"\nwhere search_term is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_term", "file_key_name": "models.stg_amazon_ads__search_term_ad_keyword_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["search_term", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__search_term_ad_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.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day"], "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28\") }}", "language": "sql", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28.sql", "original_file_path": "models/stg_amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day", "alias": "dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_amazon_ads__search_term_ad_keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28"}, "created_at": 1676476953.023547, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n search_term, keyword_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads_source\".\"stg_amazon_ads__search_term_ad_keyword_report\"\n group by search_term, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_amazon_ads__search_term_ad_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.065873, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.0669818, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.068001, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, creative_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.07129, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.0722911, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.073287, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.0760891, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.077098, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.0782459, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n version_tag, creative_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.0809789, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.081953, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.082965, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n version_tag, campaign_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.0857549, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.0867672, "compiled_code": "\n \n \n\n\n\nselect last_modified_at\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.087914, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n last_modified_at, campaign_group_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.090535, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.091669, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.092679, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, version_tag\n from \"postgres\".\"ad_reporting_integration_tests_2_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.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "not_null_amazon_ads__account_report_profile_id"], "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "not_null_amazon_ads__account_report_profile_id.sql", "original_file_path": "models/amazon_ads.yml", "name": "not_null_amazon_ads__account_report_profile_id", "alias": "not_null_amazon_ads__account_report_profile_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__account_report_profile_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.133245, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__account_report\"\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "profile_id", "file_key_name": "models.amazon_ads__account_report"}, "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "not_null_amazon_ads__account_report_account_id"], "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "not_null_amazon_ads__account_report_account_id.sql", "original_file_path": "models/amazon_ads.yml", "name": "not_null_amazon_ads__account_report_account_id", "alias": "not_null_amazon_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__account_report_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.134437, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_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.amazon_ads__account_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "profile_id"], "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_ads__account_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id"], "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06\") }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06.sql", "original_file_path": "models/amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id", "alias": "dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__account_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06"}, "created_at": 1676476953.135465, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, profile_id\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__account_report\"\n group by date_day, profile_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.amazon_ads__account_report"}, "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "not_null_amazon_ads__ad_group_report_ad_group_id"], "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "not_null_amazon_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/amazon_ads.yml", "name": "not_null_amazon_ads__ad_group_report_ad_group_id", "alias": "not_null_amazon_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__ad_group_report_ad_group_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.1383328, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_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.amazon_ads__ad_group_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_group_id"], "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_ads__ad_group_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id"], "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241\") }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241.sql", "original_file_path": "models/amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id", "alias": "dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__ad_group_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241"}, "created_at": 1676476953.1393542, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_group_id\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_group_report\"\n group by 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.amazon_ads__ad_group_report"}, "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "not_null_amazon_ads__ad_report_ad_id"], "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "not_null_amazon_ads__ad_report_ad_id.sql", "original_file_path": "models/amazon_ads.yml", "name": "not_null_amazon_ads__ad_report_ad_id", "alias": "not_null_amazon_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__ad_report_ad_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.14222, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_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.amazon_ads__ad_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_id"], "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_ads__ad_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id"], "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536\") }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536.sql", "original_file_path": "models/amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id", "alias": "dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__ad_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536"}, "created_at": 1676476953.143285, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_id\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__ad_report\"\n group by date_day, 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.amazon_ads__ad_report"}, "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "not_null_amazon_ads__campaign_report_campaign_id"], "unique_id": "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "not_null_amazon_ads__campaign_report_campaign_id.sql", "original_file_path": "models/amazon_ads.yml", "name": "not_null_amazon_ads__campaign_report_campaign_id", "alias": "not_null_amazon_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__campaign_report_campaign_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.146349, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_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.amazon_ads__campaign_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id"], "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_ads__campaign_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id"], "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33\") }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33.sql", "original_file_path": "models/amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id", "alias": "dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__campaign_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33"}, "created_at": 1676476953.147357, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__campaign_report\"\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.amazon_ads__campaign_report"}, "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('amazon_ads__portfolio_report')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__portfolio_report"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "not_null_amazon_ads__portfolio_report_profile_id"], "unique_id": "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "not_null_amazon_ads__portfolio_report_profile_id.sql", "original_file_path": "models/amazon_ads.yml", "name": "not_null_amazon_ads__portfolio_report_profile_id", "alias": "not_null_amazon_ads__portfolio_report_profile_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__portfolio_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__portfolio_report_profile_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.1501188, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__portfolio_report\"\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "profile_id", "file_key_name": "models.amazon_ads__portfolio_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "portfolio_id"], "model": "{{ get_where_subquery(ref('amazon_ads__portfolio_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.amazon_ads.amazon_ads__portfolio_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id"], "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f\") }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f.sql", "original_file_path": "models/amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id", "alias": "dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__portfolio_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f"}, "created_at": 1676476953.151127, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, portfolio_id\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__portfolio_report\"\n group by date_day, portfolio_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.amazon_ads__portfolio_report"}, "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "not_null_amazon_ads__keyword_report_keyword_id"], "unique_id": "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "not_null_amazon_ads__keyword_report_keyword_id.sql", "original_file_path": "models/amazon_ads.yml", "name": "not_null_amazon_ads__keyword_report_keyword_id", "alias": "not_null_amazon_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__keyword_report_keyword_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.1538382, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_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.amazon_ads__keyword_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_id"], "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_ads__keyword_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id"], "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751\") }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751.sql", "original_file_path": "models/amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id", "alias": "dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__keyword_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751"}, "created_at": 1676476953.154856, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, keyword_id\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__keyword_report\"\n group by date_day, keyword_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.amazon_ads__keyword_report"}, "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term", "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "not_null_amazon_ads__search_report_search_term"], "unique_id": "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "not_null_amazon_ads__search_report_search_term.sql", "original_file_path": "models/amazon_ads.yml", "name": "not_null_amazon_ads__search_report_search_term", "alias": "not_null_amazon_ads__search_report_search_term", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__search_report_search_term.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.157611, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__search_report\"\nwhere search_term is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "search_term", "file_key_name": "models.amazon_ads__search_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "search_term", "keyword_id"], "model": "{{ get_where_subquery(ref('amazon_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.amazon_ads.amazon_ads__search_report"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id"], "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67\") }}", "language": "sql", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67.sql", "original_file_path": "models/amazon_ads.yml", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id", "alias": "dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["amazon_ads__search_report"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67"}, "created_at": 1676476953.1586308, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, search_term, keyword_id\n from \"postgres\".\"ad_reporting_integration_tests_2_amazon_ads\".\"amazon_ads__search_report\"\n group by date_day, search_term, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.amazon_ads__search_report"}, "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": "postgres", "schema": "ad_reporting_integration_tests_2_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) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true}, "created_at": 1676476953.1767309, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb\") }}", "language": "sql", "package_name": "facebook_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb"}, "created_at": 1676476953.178227, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.1817799, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.182801, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.1859462, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.18709, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.190112, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.191115, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.193975, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.194997, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.197727, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.198742, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_id, key, type\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.248496, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.2496939, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.250682, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_account_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.253428, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.2544, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.2553952, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.25804, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.259007, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.260109, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.2627058, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.263669, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.26464, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.267448, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.268673, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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.not_null_snapchat_ads__url_report_base_url.15676dc1de": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_base_url"], "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/snapchat_ads", "path": "not_null_snapchat_ads__url_report_base_url.sql", "original_file_path": "models/snapchat.yml", "name": "not_null_snapchat_ads__url_report_base_url", "alias": "not_null_snapchat_ads__url_report_base_url", "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_base_url.sql", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1676476953.270474, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_integration_tests_2_snapchat_ads\".\"snapchat_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7\") }}", "language": "sql", "package_name": "snapchat_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7"}, "created_at": 1676476953.2719638, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.296927, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.298097, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.301023, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3020391, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.304866, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3060591, "compiled_code": "\n\n\n\n\n with grouped_expression as (\n select\n \n \n \n \n\n\n\n \narray_length((select regexp_matches(source_final_urls, ',')), 1)\n\n\n = 0\n as expression\n\n\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.315413, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, ad_group_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3183901, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3194199, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3204339, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.323982, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.325017, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.327759, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3288, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n criterion_id, ad_group_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3317251, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.332736, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.333794, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3376708, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.33885, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3399491, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3431501, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.344188, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3452091, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.3480031, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.348994, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.350154, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.392363, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.393491, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.394499, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.397782, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.398926, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.399937, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4031842, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.404201, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4052181, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, campaign_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.408161, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.409446, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4104671, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.413824, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.414826, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4158342, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.418625, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.419629, "compiled_code": "\n \n \n\n\n\nselect search_term_text\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4207659, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n search_term_text, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.468204, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.469302, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, account_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4721868, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4731688, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4767108, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.477788, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.481458, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4826381, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, campaign_id, account_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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_id.51a45fb334": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["ad_reporting", "not_null_ad_reporting__keyword_report_keyword_id"], "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "not_null_ad_reporting__keyword_report_keyword_id.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "not_null_ad_reporting__keyword_report_keyword_id", "alias": "not_null_ad_reporting__keyword_report_keyword_id", "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_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1676476953.485941, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_ad_reporting\".\"ad_reporting__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.ad_reporting__keyword_report"}, "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "keyword_id", "keyword_match_type", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": "dbt_utils"}, "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_5499321364b1d21748e920ddf811ea4e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__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_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/ad_reporting", "path": "dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e.sql", "original_file_path": "models/ad_reporting_models.yml", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id", "alias": "dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e", "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_5499321364b1d21748e920ddf811ea4e.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e"}, "created_at": 1676476953.486974, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, keyword_id, keyword_match_type, ad_group_id, campaign_id, account_id\n from \"postgres\".\"ad_reporting_integration_tests_2_ad_reporting\".\"ad_reporting__keyword_report\"\n group by platform, date_day, keyword_id, keyword_match_type, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.49045, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.4914482, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true}, "created_at": 1676476953.495494, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10\") }}", "language": "sql", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10"}, "created_at": 1676476953.496854, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.546349, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.547644, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.548743, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5517051, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.552712, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.553716, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.556491, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.557457, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5585752, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.561256, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.562399, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.563402, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.564406, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day, ad_group_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.567324, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5683389, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.569469, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.57219, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.573289, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.574293, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.577118, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.578113, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.579115, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, modified_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5821161, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5831318, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.584276, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.586889, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.5880718, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.590846, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.591865, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.592869, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_id, date_day\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.6170838, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.6182, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.621046, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.622072, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.6248598, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.625877, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_synced, pin_promotion_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.628615, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.629617, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.630782, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.634198, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.635299, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.636377, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.639935, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.640946, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n updated_at, advertiser_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.678237, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.679277, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.680299, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, advertiser_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.6830888, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.6841102, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.6852438, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, advertiser_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.688108, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.6891499, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, ad_group_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.69204, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.6930509, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.694059, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.786537, "compiled_code": "\n \n \n\nselect\n advertiser_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"ad_reporting_integration_tests_2_stg_tiktok_ads\".\"stg_tiktok_ads__advertiser\"\nwhere advertiser_id is not null\ngroup by advertiser_id\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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.7876291, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.788713, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.7896829, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.793403, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.794487, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.7973912, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.798395, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8011699, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8022091, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.803226, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, stat_time_hour\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.806087, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.807094, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8082418, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, stat_time_hour\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.811001, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.812014, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.813023, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, stat_time_hour\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8324769, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.833646, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.834861, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.837854, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.838994, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.840016, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8428218, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.843828, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.844843, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_set_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8476338, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.848684, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.849824, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.85258, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8540852, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.855103, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8580952, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.859127, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.8601532, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_id, account_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9181252, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.919244, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9202728, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_account_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.923139, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9242802, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9252858, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.92801, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.928999, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.929972, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_hour\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.932818, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.933852, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.935128, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.938129, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9392781, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.940344, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_squad_id, date_hour\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.943239, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9442492, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9452522, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9482281, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9491892, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9502752, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_hour\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.952996, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9539762, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9549592, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, _fivetran_synced\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.957707, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.958722, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, param_key, updated_at\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.984979, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.986092, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9894998, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.990653, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.994217, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9952269, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476953.9994051, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.000431, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.003849, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.004874, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.0088031, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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__match_type.8b1ebd50a3": {"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", "match_type"], "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_b73fdaf0afd1eb1f0b0e2311ce77d70d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_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__match_type"], "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__match_type.8b1ebd50a3", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads", "path": "dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d.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__match_type", "alias": "dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d", "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_b73fdaf0afd1eb1f0b0e2311ce77d70d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d"}, "created_at": 1676476954.009823, "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, match_type\n from \"postgres\".\"ad_reporting_integration_tests_2_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, match_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.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": "postgres", "schema": "ad_reporting_integration_tests_2_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) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true}, "created_at": 1676476954.014117, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432\") }}", "language": "sql", "package_name": "microsoft_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432"}, "created_at": 1676476954.015709, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.06797, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.069197, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, updated_timestamp\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.071965, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.073133, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_timestamp\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.075856, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.0768352, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n line_item_id, updated_timestamp\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.0796192, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.080626, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n promoted_tweet_id, updated_timestamp\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.0833259, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.084331, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.085331, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.086657, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, promoted_tweet_id, placement\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.123832, "compiled_code": "\n \n \n\n\n\nselect index\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1250172, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.126026, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, tweet_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1290681, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.130094, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1313322, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.132378, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id, placement\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1357079, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.136739, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.137742, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1388988, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, line_item_id, placement\n from \"postgres\".\"ad_reporting_integration_tests_2_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_keyword_id.e5f015e9ec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_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": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id"], "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "name": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id", "alias": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "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": 1676476954.142038, "column_name": "keyword_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_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.143071, "column_name": "date_day", "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__keyword_id.fbb70cacf6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_id"], "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_e6d80438f6069924aabc58f58480a4b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id"], "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id.fbb70cacf6", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9\") }}", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/twitter_ads_source", "path": "dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9.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__keyword_id", "alias": "dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9", "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_e6d80438f6069924aabc58f58480a4b9"}, "created_at": 1676476954.1440482, "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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.146919, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.147937, "compiled_code": "\n \n \n\nselect\n tweet_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"ad_reporting_integration_tests_2_twitter_ads_source\".\"stg_twitter_ads__tweet\"\nwhere tweet_id is not null\ngroup by tweet_id\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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.169452, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1705222, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.171511, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.174499, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.175662, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.176664, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1797462, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.1807601, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.181769, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_group_id, account_id\n from \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.18503, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.186035, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.187196, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.190381, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476954.191403, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom \"postgres\".\"ad_reporting_integration_tests_2_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.not_null_linkedin_ads__url_report_click_uri.81534087cb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "click_uri", "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": "postgres", "schema": "ad_reporting_integration_tests_2_dbt_test__audit", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_click_uri"], "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/linkedin", "path": "not_null_linkedin_ads__url_report_click_uri.sql", "original_file_path": "models/linkedin.yml", "name": "not_null_linkedin_ads__url_report_click_uri", "alias": "not_null_linkedin_ads__url_report_click_uri", "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_click_uri.sql", "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1676476954.1927218, "compiled_code": "\n \n \n\n\n\nselect click_uri\nfrom \"postgres\".\"ad_reporting_integration_tests_2_linkedin_ads\".\"linkedin_ads__url_report\"\nwhere click_uri is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "click_uri", "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": "postgres", "schema": "ad_reporting_integration_tests_2_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(enabled=True,alias=\"dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f\") }}", "language": "sql", "package_name": "linkedin", "root_path": "/Users/joseph.markiewicz/Documents/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": {"enabled": true, "alias": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f"}, "created_at": 1676476954.1942, "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 \"postgres\".\"ad_reporting_integration_tests_2_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": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_account_history_data\"", "created_at": 1676476954.1981921}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "account_performance_daily_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_account_performance_daily_report_data\"", "created_at": 1676476954.1983008}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_ad_group_history_data\"", "created_at": 1676476954.198383}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_performance_daily_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": []}, "budget_association_status": {"name": "budget_association_status", "description": "The status of the campaign's budget.", "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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_ad_group_performance_daily_report_data\"", "created_at": 1676476954.1984692}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_ad_history_data\"", "created_at": 1676476954.198545}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "ad_performance_daily_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_ad_performance_daily_report_data\"", "created_at": 1676476954.1986308}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_campaign_history_data\"", "created_at": 1676476954.198706}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_performance_daily_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_campaign_performance_daily_report_data\"", "created_at": 1676476954.1987891}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_keyword_history_data\"", "created_at": 1676476954.1988611}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_performance_daily_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_keyword_performance_daily_report_data\"", "created_at": 1676476954.198947}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"fqn": ["microsoft_ads_source", "microsoft_ads", "search_query_performance_daily_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"microsoft_ads_search_performance_daily_report_data\"", "created_at": 1676476954.199032}, "source.amazon_ads_source.amazon_ads.ad_group_history": {"fqn": ["amazon_ads_source", "amazon_ads", "ad_group_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_history", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "ad_group_history", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_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 an ad group in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name 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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_ad_group_history_data\"", "created_at": 1676476954.199111}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"fqn": ["amazon_ads_source", "amazon_ads", "ad_group_level_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_level_report", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "ad_group_level_report", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_ad_group_level_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 Amazon ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "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": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_ad_group_level_report_data\"", "created_at": 1676476954.199185}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"fqn": ["amazon_ads_source", "amazon_ads", "advertised_product_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.advertised_product_report", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "advertised_product_report", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_advertised_product_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": "Advertised product reports contain performance data for products that are advertised as part of your campaigns.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the AdGroup.", "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": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_advertised_product_report_data\"", "created_at": 1676476954.19926}, "source.amazon_ads_source.amazon_ads.campaign_history": {"fqn": ["amazon_ads_source", "amazon_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.campaign_history", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "campaign_history", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_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 campaign in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bidding_strategy": {"name": "bidding_strategy", "description": "The bidding strategy associated with a campaign (legacyForSales, autoForSales, or manual.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "The ad type related to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "The daily budget for the campaign as set by the advertiser.", "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": []}, "placement": {"name": "placement", "description": "The placement location where bid controls are used (placementTop or placementProductPage.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "premium_bid_adjustment": {"name": "premium_bid_adjustment", "description": "A boolean representing whether premium bid adjustment is turned on for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "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": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting_type": {"name": "targeting_type", "description": "The type of targeting used for the campaign, either manual or auto.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_campaign_history_data\"", "created_at": 1676476954.1994188}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"fqn": ["amazon_ads_source", "amazon_ads", "campaign_level_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.campaign_level_report", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "campaign_level_report", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_campaign_level_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 Amazon campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "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": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_campaign_level_report_data\"", "created_at": 1676476954.199494}, "source.amazon_ads_source.amazon_ads.keyword_history": {"fqn": ["amazon_ads_source", "amazon_ads", "keyword_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.keyword_history", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "keyword_history", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_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 keyword in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "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": []}, "bid": {"name": "bid", "description": "Bid associated with this keyword.", "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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "One of (broad, exact, or phrase.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "native_language_keyword": {"name": "native_language_keyword", "description": "The unlocalized keyword text in the preferred locale of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_keyword_history_data\"", "created_at": 1676476954.199577}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"fqn": ["amazon_ads_source", "amazon_ads", "portfolio_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.portfolio_history", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "portfolio_history", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_portfolio_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 portfolio in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_portfolio_history_data\"", "created_at": 1676476954.199659}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"fqn": ["amazon_ads_source", "amazon_ads", "product_ad_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.product_ad_history", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "product_ad_history", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_product_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 product in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "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": []}, "asin": {"name": "asin", "description": "The Amazon Standard Identification Number (ASIN) associated with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sku": {"name": "sku", "description": "The product SKU associated with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_product_ad_history_data\"", "created_at": 1676476954.199736}, "source.amazon_ads_source.amazon_ads.profile": {"fqn": ["amazon_ads_source", "amazon_ads", "profile"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.profile", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "profile", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_profile_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 profile. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "ID of the profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_marketplace_string_id": {"name": "account_marketplace_string_id", "description": "The identifier of the marketplace to which the account is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account subtype.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "One of seller, vendor, or agency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_valid_payment_method": {"name": "account_valid_payment_method", "description": "For Vendors, this returns if the Advertiser has set up a valid payment method.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency used for all monetary values for entities under this profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget for Sponsored Product campaigns for seller type accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The time zone used for all date-based campaign management and reporting.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_profile_data\"", "created_at": 1676476954.1998148}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"fqn": ["amazon_ads_source", "amazon_ads", "targeting_keyword_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.targeting_keyword_report", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "targeting_keyword_report", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_targeting_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": "Targeting reports contain performance metrics broken down by both targeting expressions and keywords.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "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": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_targeting_keyword_report_data\"", "created_at": 1676476954.19989}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"fqn": ["amazon_ads_source", "amazon_ads", "search_term_ad_keyword_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "name": "search_term_ad_keyword_report", "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "amazon_ads_search_term_ad_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": "Search term reports contain search term performance metrics broken down by targeting expressions and keywords.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "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": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"amazon_ads_search_term_ad_keyword_report_data\"", "created_at": 1676476954.199965}, "source.linkedin_source.linkedin.ad_analytics_by_creative": {"fqn": ["linkedin_source", "linkedin", "ad_analytics_by_creative"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_creative", "package_name": "linkedin_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_analytics_by_creative_data\"", "created_at": 1676476954.200043}, "source.linkedin_source.linkedin.creative_history": {"fqn": ["linkedin_source", "linkedin", "creative_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.linkedin_source.linkedin.creative_history", "package_name": "linkedin_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_creative_history_data\"", "created_at": 1676476954.2001212}, "source.linkedin_source.linkedin.campaign_history": {"fqn": ["linkedin_source", "linkedin", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.linkedin_source.linkedin.campaign_history", "package_name": "linkedin_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_campaign_history_data\"", "created_at": 1676476954.200217}, "source.linkedin_source.linkedin.campaign_group_history": {"fqn": ["linkedin_source", "linkedin", "campaign_group_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.linkedin_source.linkedin.campaign_group_history", "package_name": "linkedin_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_campaign_group_history_data\"", "created_at": 1676476954.20029}, "source.linkedin_source.linkedin.account_history": {"fqn": ["linkedin_source", "linkedin", "account_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.linkedin_source.linkedin.account_history", "package_name": "linkedin_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_account_history_data\"", "created_at": 1676476954.2003682}, "source.linkedin_source.linkedin.ad_analytics_by_campaign": {"fqn": ["linkedin_source", "linkedin", "ad_analytics_by_campaign"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_campaign", "package_name": "linkedin_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"linkedin_ad_analytics_by_campaign_data\"", "created_at": 1676476954.200439}, "source.google_ads_source.google_ads.ad_stats": {"fqn": ["google_ads_source", "google_ads", "ad_stats"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.ad_stats", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_stats_data\"", "created_at": 1676476954.200555}, "source.google_ads_source.google_ads.ad_history": {"fqn": ["google_ads_source", "google_ads", "ad_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.ad_history", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_history_data\"", "created_at": 1676476954.200633}, "source.google_ads_source.google_ads.ad_group_history": {"fqn": ["google_ads_source", "google_ads", "ad_group_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.ad_group_history", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_group_history_data\"", "created_at": 1676476954.2007098}, "source.google_ads_source.google_ads.campaign_history": {"fqn": ["google_ads_source", "google_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.campaign_history", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_campaign_history_data\"", "created_at": 1676476954.2007911}, "source.google_ads_source.google_ads.account_history": {"fqn": ["google_ads_source", "google_ads", "account_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.account_history", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_account_history_data\"", "created_at": 1676476954.200864}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"fqn": ["google_ads_source", "google_ads", "ad_group_criterion_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_group_criterion_history_data\"", "created_at": 1676476954.200941}, "source.google_ads_source.google_ads.ad_group_stats": {"fqn": ["google_ads_source", "google_ads", "ad_group_stats"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.ad_group_stats", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_ad_group_stats_data\"", "created_at": 1676476954.2010171}, "source.google_ads_source.google_ads.campaign_stats": {"fqn": ["google_ads_source", "google_ads", "campaign_stats"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.campaign_stats", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_campaign_stats_data\"", "created_at": 1676476954.201091}, "source.google_ads_source.google_ads.keyword_stats": {"fqn": ["google_ads_source", "google_ads", "keyword_stats"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.keyword_stats", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_keyword_stats_data\"", "created_at": 1676476954.201169}, "source.google_ads_source.google_ads.account_stats": {"fqn": ["google_ads_source", "google_ads", "account_stats"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.google_ads_source.google_ads.account_stats", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"google_ads_account_stats_data\"", "created_at": 1676476954.201241}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_group_history_data\"", "created_at": 1676476954.201319}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_group_report_data\"", "created_at": 1676476954.201393}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_history_data\"", "created_at": 1676476954.201468}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "ad_level_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_ad_report_data\"", "created_at": 1676476954.201546}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_campaign_history_data\"", "created_at": 1676476954.201619}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_campaign_report_data\"", "created_at": 1676476954.2016919}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_keyword_history_data\"", "created_at": 1676476954.201768}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_keyword_report_data\"", "created_at": 1676476954.201868}, "source.apple_search_ads_source.apple_search_ads.organization": {"fqn": ["apple_search_ads_source", "apple_search_ads", "organization"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.organization", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_organization_data\"", "created_at": 1676476954.2019389}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"fqn": ["apple_search_ads_source", "apple_search_ads", "search_term_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report", "package_name": "apple_search_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"ad_reporting_integration_tests_2\".\"apple_search_search_term_report_data\"", "created_at": 1676476954.202023}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_pin_promotion_report_data\"", "created_at": 1676476954.202102}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_pin_promotion_history_data\"", "created_at": 1676476954.202177}, "source.pinterest_source.pinterest_ads.campaign_history": {"fqn": ["pinterest_source", "pinterest_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.campaign_history", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_campaign_history_data\"", "created_at": 1676476954.202249}, "source.pinterest_source.pinterest_ads.ad_group_history": {"fqn": ["pinterest_source", "pinterest_ads", "ad_group_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_ad_group_history_data\"", "created_at": 1676476954.202323}, "source.pinterest_source.pinterest_ads.ad_group_report": {"fqn": ["pinterest_source", "pinterest_ads", "ad_group_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_ad_group_report_data\"", "created_at": 1676476954.202403}, "source.pinterest_source.pinterest_ads.advertiser_history": {"fqn": ["pinterest_source", "pinterest_ads", "advertiser_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_advertiser_history_data\"", "created_at": 1676476954.2024808}, "source.pinterest_source.pinterest_ads.advertiser_report": {"fqn": ["pinterest_source", "pinterest_ads", "advertiser_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_advertiser_report_data\"", "created_at": 1676476954.202556}, "source.pinterest_source.pinterest_ads.campaign_report": {"fqn": ["pinterest_source", "pinterest_ads", "campaign_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.campaign_report", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_campaign_report_data\"", "created_at": 1676476954.202634}, "source.pinterest_source.pinterest_ads.keyword_history": {"fqn": ["pinterest_source", "pinterest_ads", "keyword_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.keyword_history", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_keyword_history_data\"", "created_at": 1676476954.202713}, "source.pinterest_source.pinterest_ads.keyword_report": {"fqn": ["pinterest_source", "pinterest_ads", "keyword_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.pinterest_source.pinterest_ads.keyword_report", "package_name": "pinterest_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"pinterest_ads_keyword_report_data\"", "created_at": 1676476954.202793}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"fqn": ["tiktok_ads_source", "tiktok_ads", "advertiser"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser", "package_name": "tiktok_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_advertiser_data\"", "created_at": 1676476954.202893}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history", "package_name": "tiktok_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_campaign_history_data\"", "created_at": 1676476954.202998}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history", "package_name": "tiktok_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_adgroup_history_data\"", "created_at": 1676476954.203145}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"fqn": ["tiktok_ads_source", "tiktok_ads", "ad_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history", "package_name": "tiktok_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_ad_history_data\"", "created_at": 1676476954.203236}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "ad_report_hourly"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_ad_report_hourly_data\"", "created_at": 1676476954.203347}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_report_hourly"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_campaign_report_hourly_data\"", "created_at": 1676476954.203457}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_report_hourly"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly", "package_name": "tiktok_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"tiktok_adgroup_report_hourly_data\"", "created_at": 1676476954.203587}, "source.facebook_ads_source.facebook_ads.account_history": {"fqn": ["facebook_ads_source", "facebook_ads", "account_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.facebook_ads_source.facebook_ads.account_history", "package_name": "facebook_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_account_history_data\"", "created_at": 1676476954.2036648}, "source.facebook_ads_source.facebook_ads.ad_history": {"fqn": ["facebook_ads_source", "facebook_ads", "ad_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.facebook_ads_source.facebook_ads.ad_history", "package_name": "facebook_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_ad_history_data\"", "created_at": 1676476954.2037382}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"fqn": ["facebook_ads_source", "facebook_ads", "ad_set_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history", "package_name": "facebook_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_ad_set_history_data\"", "created_at": 1676476954.203816}, "source.facebook_ads_source.facebook_ads.basic_ad": {"fqn": ["facebook_ads_source", "facebook_ads", "basic_ad"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad", "package_name": "facebook_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_basic_ad_data\"", "created_at": 1676476954.203892}, "source.facebook_ads_source.facebook_ads.campaign_history": {"fqn": ["facebook_ads_source", "facebook_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history", "package_name": "facebook_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_campaign_history_data\"", "created_at": 1676476954.20397}, "source.facebook_ads_source.facebook_ads.creative_history": {"fqn": ["facebook_ads_source", "facebook_ads", "creative_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.facebook_ads_source.facebook_ads.creative_history", "package_name": "facebook_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"facebook_ads_creative_history_data\"", "created_at": 1676476954.204057}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_account_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_account_history_data\"", "created_at": 1676476954.204133}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_history_data\"", "created_at": 1676476954.204203}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_hourly_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_hourly_report_data\"", "created_at": 1676476954.204288}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_squad_history_data\"", "created_at": 1676476954.2043562}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_hourly_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_ad_squad_hourly_report_data\"", "created_at": 1676476954.204441}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_campaign_history_data\"", "created_at": 1676476954.204509}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_hourly_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_campaign_hourly_report_data\"", "created_at": 1676476954.204614}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "creative_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_creative_history_data\"", "created_at": 1676476954.204685}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"fqn": ["snapchat_ads_source", "snapchat_ads", "creative_url_tag_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history", "package_name": "snapchat_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"snapchat_creative_url_tag_history_data\"", "created_at": 1676476954.2047548}, "source.twitter_ads_source.twitter_ads.account_history": {"fqn": ["twitter_ads_source", "twitter_ads", "account_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.account_history", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_account_history_data\"", "created_at": 1676476954.204841}, "source.twitter_ads_source.twitter_ads.campaign_history": {"fqn": ["twitter_ads_source", "twitter_ads", "campaign_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_campaign_history_data\"", "created_at": 1676476954.2049248}, "source.twitter_ads_source.twitter_ads.line_item_history": {"fqn": ["twitter_ads_source", "twitter_ads", "line_item_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_line_item_history_data\"", "created_at": 1676476954.205017}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_history"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_promoted_tweet_history_data\"", "created_at": 1676476954.205091}, "source.twitter_ads_source.twitter_ads.tweet_url": {"fqn": ["twitter_ads_source", "twitter_ads", "tweet_url"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_tweet_url_data\"", "created_at": 1676476954.205162}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_promoted_tweet_report_data\"", "created_at": 1676476954.205236}, "source.twitter_ads_source.twitter_ads.tweet": {"fqn": ["twitter_ads_source", "twitter_ads", "tweet"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.tweet", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_tweet_data\"", "created_at": 1676476954.205309}, "source.twitter_ads_source.twitter_ads.campaign_report": {"fqn": ["twitter_ads_source", "twitter_ads", "campaign_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_campaign_report_data\"", "created_at": 1676476954.205384}, "source.twitter_ads_source.twitter_ads.line_item_report": {"fqn": ["twitter_ads_source", "twitter_ads", "line_item_report"], "database": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_line_item_report_data\"", "created_at": 1676476954.2054558}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.002347, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0025752, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\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": 1676476949.0026891, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.002795, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.002906, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\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": 1676476949.0040908, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.004813, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n 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": 1676476949.010327, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.010821, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0111392, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0114582, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0119429, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').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": 1676476949.0123148, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.012487, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.012816, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.013281, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.014108, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.014303, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.014613, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.014882, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0153039, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0155299, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0161269, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.016336, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0164511, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0169642, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.017746, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/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": 1676476949.018036, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/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": 1676476949.0187142, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/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 ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0219278, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\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": 1676476949.022169, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/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.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.022738, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/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.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.023235, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0243578, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.024561, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.024708, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.024848, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.024989, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.02543, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.025734, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.026046, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.026544, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.026824, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.030186, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0303528, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.030565, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.031276, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0314429, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0316212, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.033003, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.034378, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.038238, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.038516, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.03868, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.038764, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.038906, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0390441, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.039291, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.040172, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0403771, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.040629, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.041069, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0474722, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.049852, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.050565, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.050911, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.051384, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0517912, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.053378, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.053938, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0545878, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.054827, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.055557, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.059819, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.061468, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.061701, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0624168, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.062686, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.063398, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0641549, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.065047, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0652869, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.065472, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0657291, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0659149, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.066168, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0663512, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.066614, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0668092, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.066963, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.067245, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0721889, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.077389, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.078578, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.079742, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0805929, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.08322, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.083806, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0839942, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.084427, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.084836, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0874429, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0878248, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.088047, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.089623, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.090049, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0902112, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.090397, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.090657, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.093942, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.0985138, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.0994198, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.099659, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.100139, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.100331, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.100461, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.100598, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.10071, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.100875, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.100992, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.101471, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1016572, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.102958, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.103461, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.10369, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1042728, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.104534, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.104823, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.10529, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1055439, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.10597, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1063418, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.106664, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1073012, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.108795, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.10942, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.109705, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1114628, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1126661, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1134222, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1136608, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.113984, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.114061, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.114463, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.114634, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.114955, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.115079, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1154041, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.11551, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1159282, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1160939, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.116404, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.116485, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.116825, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.116967, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1173298, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.117538, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.118228, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.118628, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.11904, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.119207, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.119574, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.119715, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.120039, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.120199, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.120511, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.120671, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.120988, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.121095, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.121453, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.121588, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.121909, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.122014, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1230578, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.123225, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1236742, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.123829, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.123988, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.124136, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1242912, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.124463, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.124622, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.124771, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1249259, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.125063, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1252139, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.125351, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.125737, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.125875, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1262121, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1263192, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1267378, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.127007, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.127157, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.127743, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.127913, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.128211, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.128566, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.128695, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.129138, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.129386, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1297421, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.129876, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1303082, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.130492, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.130655, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.130835, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1313689, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.13152, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1316621, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.131767, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.131933, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.132009, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.132172, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.132341, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1328661, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.133075, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1332328, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.133645, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.136777, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.136951, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.137175, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.137473, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1377192, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1380491, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.138242, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1384661, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.138659, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.138827, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.139052, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.139366, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.139621, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.140196, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.140522, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.14067, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1408799, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.141539, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1419861, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.143839, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1439722, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.144151, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.144265, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.144612, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1448069, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.144908, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.145138, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.145331, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.145567, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.145756, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1459892, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.146731, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.147032, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1472871, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1475148, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1486342, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.149467, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.149643, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1498518, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.150028, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.150312, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.150804, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.152294, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.152555, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.152749, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.152904, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.153087, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.153337, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.153546, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1538491, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1540449, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1542132, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.155894, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.156131, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.156439, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.156616, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.15695, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1571681, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1577442, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.157993, "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": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1587808, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.160311, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.160785, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.161234, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.161633, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1617038, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.162282, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.162522, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.1628082, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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": 1676476949.163082, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.164, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_association_status\", \"datatype\": dbt.type_string()}\n] %}\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.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.165903, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.167828, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__account_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.169467, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.170421, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.171183, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"title_part_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"final_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.172099, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.174043, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.176129, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1769779, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"search_query\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__search_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.178965, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.1794078, "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/joseph.markiewicz/Documents/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.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1798851, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.180429, "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/joseph.markiewicz/Documents/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.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.18109, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.181485, "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/joseph.markiewicz/Documents/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.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1818151, "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/joseph.markiewicz/Documents/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, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\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": 1676476949.182931, "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/joseph.markiewicz/Documents/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, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.184055, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\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": 1676476949.1849759, "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/joseph.markiewicz/Documents/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, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1860611, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.1868029, "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/joseph.markiewicz/Documents/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": 1676476949.187128, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "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": 1676476949.1879108, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.188714, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\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": 1676476949.189228, "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/joseph.markiewicz/Documents/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, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1896698, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.190335, "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/joseph.markiewicz/Documents/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": 1676476949.190803, "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/joseph.markiewicz/Documents/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": 1676476949.191416, "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/joseph.markiewicz/Documents/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": 1676476949.191802, "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/joseph.markiewicz/Documents/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, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\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": 1676476949.192338, "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/joseph.markiewicz/Documents/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, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\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": 1676476949.1927931, "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/joseph.markiewicz/Documents/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": 1676476949.193463, "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/joseph.markiewicz/Documents/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": 1676476949.194172, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.194806, "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/joseph.markiewicz/Documents/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.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.195146, "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/joseph.markiewicz/Documents/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) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\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": 1676476949.195613, "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/joseph.markiewicz/Documents/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) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "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": 1676476949.1959748, "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/joseph.markiewicz/Documents/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, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **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": 1676476949.1966898, "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/joseph.markiewicz/Documents/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, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.197512, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\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": 1676476949.198463, "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/joseph.markiewicz/Documents/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, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.1993752, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.200178, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.201056, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.201642, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2019432, "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/joseph.markiewicz/Documents/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": 1676476949.2053041, "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/joseph.markiewicz/Documents/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 }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.206889, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.207294, "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/joseph.markiewicz/Documents/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": 1676476949.207468, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_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": 1676476949.207998, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.208353, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.208554, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.208884, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.209055, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2097511, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_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": 1676476949.210641, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.211416, "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/joseph.markiewicz/Documents/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.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.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.212019, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.212251, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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 \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.212616, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.213015, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.2133691, "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/joseph.markiewicz/Documents/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": 1676476949.2141418, "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/joseph.markiewicz/Documents/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": 1676476949.2151182, "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/joseph.markiewicz/Documents/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": 1676476949.216017, "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/joseph.markiewicz/Documents/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": 1676476949.216426, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.216618, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.217118, "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/joseph.markiewicz/Documents/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": 1676476949.2178419, "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/joseph.markiewicz/Documents/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": 1676476949.218679, "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/joseph.markiewicz/Documents/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": 1676476949.2191691, "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/joseph.markiewicz/Documents/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": 1676476949.219457, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\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": 1676476949.22068, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "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": 1676476949.22212, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\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": 1676476949.2235038, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2251918, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"unique_id": "macro.dbt_utils.safe_divide", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2255921, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"unique_id": "macro.dbt_utils.default__safe_divide", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.225728, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.2287538, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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 {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2324438, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.232855, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.233109, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2339242, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.2341409, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.234345, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.234538, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.234787, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.23505, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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 {% 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": 1676476949.235625, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2358909, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\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": 1676476949.236379, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.236949, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.237371, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.2377, "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/joseph.markiewicz/Documents/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.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.239317, "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/joseph.markiewicz/Documents/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 {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "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": 1676476949.2396748, "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/joseph.markiewicz/Documents/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": 1676476949.240447, "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/joseph.markiewicz/Documents/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": 1676476949.240942, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.242053, "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/joseph.markiewicz/Documents/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": 1676476949.243513, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.244589, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.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.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2456472, "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/joseph.markiewicz/Documents/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": 1676476949.246377, "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/joseph.markiewicz/Documents/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": 1676476949.247138, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/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": 1676476949.248641, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/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.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.249115, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/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.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2495801, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/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": 1676476949.2497761, "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/joseph.markiewicz/Documents/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": 1676476949.2502642, "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/joseph.markiewicz/Documents/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": 1676476949.25088, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.251425, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.252086, "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/joseph.markiewicz/Documents/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.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.252557, "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/joseph.markiewicz/Documents/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 {{ adapter.quote('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": 1676476949.2526982, "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/joseph.markiewicz/Documents/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 {{ adapter.quote('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": 1676476949.25284, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"unique_id": "macro.dbt_utils.get_single_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.253402, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"unique_id": "macro.dbt_utils.default__get_single_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.254229, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.255289, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.255567, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.256149, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.25696, "supported_languages": null}, "macro.amazon_ads_source.get_ad_group_history_columns": {"unique_id": "macro.amazon_ads_source.get_ad_group_history_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_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.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2580328, "supported_languages": null}, "macro.amazon_ads_source.get_product_ad_history_columns": {"unique_id": "macro.amazon_ads_source.get_product_ad_history_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "macros/get_product_ad_history_columns.sql", "original_file_path": "macros/get_product_ad_history_columns.sql", "name": "get_product_ad_history_columns", "macro_sql": "{% macro get_product_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"asin\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2591848, "supported_languages": null}, "macro.amazon_ads_source.get_profile_columns": {"unique_id": "macro.amazon_ads_source.get_profile_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "macros/get_profile_columns.sql", "original_file_path": "macros/get_profile_columns.sql", "name": "get_profile_columns", "macro_sql": "{% macro get_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_marketplace_string_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_valid_payment_method\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.260633, "supported_languages": null}, "macro.amazon_ads_source.get_advertised_product_report_columns": {"unique_id": "macro.amazon_ads_source.get_advertised_product_report_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "macros/get_advertised_product_report_columns.sql", "original_file_path": "macros/get_advertised_product_report_columns.sql", "name": "get_advertised_product_report_columns", "macro_sql": "{% macro get_advertised_product_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"advertised_asin\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertised_sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__advertised_product_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.262151, "supported_languages": null}, "macro.amazon_ads_source.get_ad_group_level_report_columns": {"unique_id": "macro.amazon_ads_source.get_ad_group_level_report_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "macros/get_ad_group_level_report_columns.sql", "original_file_path": "macros/get_ad_group_level_report_columns.sql", "name": "get_ad_group_level_report_columns", "macro_sql": "{% macro get_ad_group_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.263078, "supported_languages": null}, "macro.amazon_ads_source.get_search_term_ad_keyword_report_columns": {"unique_id": "macro.amazon_ads_source.get_search_term_ad_keyword_report_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "macros/get_search_term_ad_keyword_report_columns.sql", "original_file_path": "macros/get_search_term_ad_keyword_report_columns.sql", "name": "get_search_term_ad_keyword_report_columns", "macro_sql": "{% macro get_search_term_ad_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_keyword_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"search_term\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__search_term_ad_keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.26485, "supported_languages": null}, "macro.amazon_ads_source.get_campaign_level_report_columns": {"unique_id": "macro.amazon_ads_source.get_campaign_level_report_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "macros/get_campaign_level_report_columns.sql", "original_file_path": "macros/get_campaign_level_report_columns.sql", "name": "get_campaign_level_report_columns", "macro_sql": "{% macro get_campaign_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_applicable_budget_rule_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_applicable_budget_rule_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_rule_based_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2664168, "supported_languages": null}, "macro.amazon_ads_source.get_campaign_history_columns": {"unique_id": "macro.amazon_ads_source.get_campaign_history_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_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\": \"bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"portfolio_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"premium_bid_adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"profile_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.26831, "supported_languages": null}, "macro.amazon_ads_source.get_portfolio_history_columns": {"unique_id": "macro.amazon_ads_source.get_portfolio_history_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "macros/get_portfolio_history_columns.sql", "original_file_path": "macros/get_portfolio_history_columns.sql", "name": "get_portfolio_history_columns", "macro_sql": "{% macro get_portfolio_history_columns() %}\n\n{% set columns = [\n {\"name\": \"budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_end_date\", \"datatype\": \"date\"},\n {\"name\": \"budget_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_start_date\", \"datatype\": \"date\"},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"in_budget\", \"datatype\": \"boolean\"},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"profile_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2697861, "supported_languages": null}, "macro.amazon_ads_source.get_targeting_keyword_report_columns": {"unique_id": "macro.amazon_ads_source.get_targeting_keyword_report_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "macros/get_targeting_keyword_report_columns.sql", "original_file_path": "macros/get_targeting_keyword_report_columns.sql", "name": "get_targeting_keyword_report_columns", "macro_sql": "{% macro get_targeting_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_keyword_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__targeting_keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.271753, "supported_languages": null}, "macro.amazon_ads_source.get_keyword_history_columns": {"unique_id": "macro.amazon_ads_source.get_keyword_history_columns", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_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.type_int()},\n {\"name\": \"bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_language_keyword\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.273142, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"click_uri\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.274328, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"backfilled\", \"datatype\": \"boolean\"},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2754529, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"day\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\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.type_int", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2763982, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"audience_expansion_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"campaign_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"daily_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"format\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"locale_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"locale_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"offsite_delivery_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"optimization_target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.279039, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"day\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\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.type_int", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.279985, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.2810109, "supported_languages": null}, "macro.spark_utils.get_tables": {"unique_id": "macro.spark_utils.get_tables", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.2859561, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"unique_id": "macro.spark_utils.get_delta_tables", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.2867, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"unique_id": "macro.spark_utils.get_statistic_columns", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.2875788, "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/joseph.markiewicz/Documents/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": 1676476949.2883258, "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/joseph.markiewicz/Documents/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": 1676476949.289053, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"unique_id": "macro.spark_utils.spark_analyze_tables", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.28996, "supported_languages": null}, "macro.spark_utils.spark__concat": {"unique_id": "macro.spark_utils.spark__concat", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.290271, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"unique_id": "macro.spark_utils.spark__type_numeric", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.2904582, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"unique_id": "macro.spark_utils.spark__dateadd", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.293269, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"unique_id": "macro.spark_utils.spark__datediff", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3007538, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"unique_id": "macro.spark_utils.spark__current_timestamp", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.301059, "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/joseph.markiewicz/Documents/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": 1676476949.3011358, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"unique_id": "macro.spark_utils.spark__split_part", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3017678, "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/joseph.markiewicz/Documents/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": 1676476949.303353, "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/joseph.markiewicz/Documents/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": 1676476949.3036869, "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/joseph.markiewicz/Documents/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": 1676476949.30396, "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/joseph.markiewicz/Documents/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": 1676476949.3042371, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"unique_id": "macro.spark_utils.assert_not_null", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.304648, "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/joseph.markiewicz/Documents/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": 1676476949.304848, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"unique_id": "macro.spark_utils.spark__convert_timezone", "package_name": "spark_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.305131, "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/joseph.markiewicz/Documents/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.postgres__get_url_tags_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3062358, "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/joseph.markiewicz/Documents/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": 1676476949.306355, "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/joseph.markiewicz/Documents/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": 1676476949.3064692, "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/joseph.markiewicz/Documents/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": 1676476949.306638, "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/joseph.markiewicz/Documents/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": 1676476949.3067389, "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/joseph.markiewicz/Documents/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": 1676476949.306834, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"unique_id": "macro.dbt_date.get_date_dimension", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.315371, "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/joseph.markiewicz/Documents/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.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=false) }} as day_of_week,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week_iso,\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ last_day('d.date_day', 'quarter') }} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3176131, "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/joseph.markiewicz/Documents/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.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week,\n\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt.dateadd('day', '-1', dbt.dateadd('month', '3', dbt.date_trunc('quarter', 'd.date_day')))}} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.319891, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"unique_id": "macro.dbt_date.get_base_dates", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.default__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3209732, "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/joseph.markiewicz/Documents/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.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3217258, "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/joseph.markiewicz/Documents/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.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.322402, "supported_languages": null}, "macro.dbt_date.get_intervals_between": {"unique_id": "macro.dbt_date.get_intervals_between", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/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_date')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.323164, "supported_languages": null}, "macro.dbt_date.default__get_intervals_between": {"unique_id": "macro.dbt_date.default__get_intervals_between", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/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.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.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.32376, "supported_languages": null}, "macro.dbt_date.date_spine": {"unique_id": "macro.dbt_date.date_spine", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_date')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.323991, "supported_languages": null}, "macro.dbt_date.default__date_spine": {"unique_id": "macro.dbt_date.default__date_spine", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/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 \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{\n dbt_date.generate_series(\n dbt_date.get_intervals_between(start_date, end_date, datepart)\n )\n }}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.generate_series", "macro.dbt_date.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.324351, "supported_languages": null}, "macro.dbt_date.get_powers_of_two": {"unique_id": "macro.dbt_date.get_powers_of_two", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/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_date')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.325238, "supported_languages": null}, "macro.dbt_date.default__get_powers_of_two": {"unique_id": "macro.dbt_date.default__get_powers_of_two", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/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": 1676476949.325655, "supported_languages": null}, "macro.dbt_date.generate_series": {"unique_id": "macro.dbt_date.generate_series", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.325839, "supported_languages": null}, "macro.dbt_date.default__generate_series": {"unique_id": "macro.dbt_date.default__generate_series", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_date.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.326356, "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/joseph.markiewicz/Documents/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": 1676476949.3281522, "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/joseph.markiewicz/Documents/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.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.datediff('d.week_end_date', 'm.month_end_date', 'day') }})\n\n ) as closest_to_month_end\n from\n year_week_ends d\n join\n year_month_end m on d.fiscal_year_number = m.fiscal_year_number\n),\nfiscal_year_range as (\n\n select\n w.fiscal_year_number,\n cast(\n {{ dbt.dateadd('day', 1,\n 'lag(w.week_end_date) over(order by w.week_end_date)') }}\n as date) as fiscal_year_start_date,\n w.week_end_date as fiscal_year_end_date\n from\n weeks_at_month_end w\n where\n w.closest_to_month_end = 1\n\n),\nfiscal_year_dates as (\n\n select\n d.date_day,\n m.fiscal_year_number,\n m.fiscal_year_start_date,\n m.fiscal_year_end_date,\n w.week_start_date,\n w.week_end_date,\n -- we reset the weeks of the year starting with the merch year start date\n dense_rank()\n over(\n partition by m.fiscal_year_number\n order by w.week_start_date\n ) as fiscal_week_of_year\n from\n 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.dateadd", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.328738, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"unique_id": "macro.dbt_date.get_fiscal_periods", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.type_int() }}\n ), 13) as w13_number,\n -- Chop weeks into 13 week merch quarters\n cast(\n least(\n floor((f.fiscal_week_of_year-1)/13.0)\n , 3)\n as {{ dbt.type_int() }}) as quarter_number\n from\n fscl_year_dates_for_periods f\n\n),\nfscl_periods as (\n\n select\n f.date_day,\n f.fiscal_year_number,\n f.week_start_date,\n f.week_end_date,\n f.fiscal_week_of_year,\n case\n -- we move week 53 into the 3rd period of the quarter\n when f.fiscal_week_of_year = 53 then 3\n when f.w13_number between 0 and 3 then 1\n when f.w13_number between 4 and 8 then 2\n when f.w13_number between 9 and 12 then 3\n end as period_of_quarter,\n f.quarter_number\n from\n fscl_year_w13 f\n\n),\nfscl_periods_quarters as (\n\n select\n f.*,\n cast((\n (f.quarter_number * 3) + f.period_of_quarter\n ) as {{ dbt.type_int() }}) as fiscal_period_number\n from\n fscl_periods f\n\n)\nselect\n date_day,\n fiscal_year_number,\n week_start_date,\n week_end_date,\n fiscal_week_of_year,\n dense_rank() over(partition by fiscal_period_number order by fiscal_week_of_year) as fiscal_week_of_period,\n fiscal_period_number,\n quarter_number+1 as fiscal_quarter_number,\n period_of_quarter as fiscal_period_of_quarter\nfrom\n fscl_periods_quarters\norder by 1,2\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.32976, "supported_languages": null}, "macro.dbt_date.tomorrow": {"unique_id": "macro.dbt_date.tomorrow", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3300622, "supported_languages": null}, "macro.dbt_date.next_week": {"unique_id": "macro.dbt_date.next_week", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.330318, "supported_languages": null}, "macro.dbt_date.next_month_name": {"unique_id": "macro.dbt_date.next_month_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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(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": 1676476949.330629, "supported_languages": null}, "macro.dbt_date.next_month": {"unique_id": "macro.dbt_date.next_month", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.33088, "supported_languages": null}, "macro.dbt_date.day_name": {"unique_id": "macro.dbt_date.day_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.331546, "supported_languages": null}, "macro.dbt_date.default__day_name": {"unique_id": "macro.dbt_date.default__day_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3318138, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"unique_id": "macro.dbt_date.snowflake__day_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.332018, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"unique_id": "macro.dbt_date.bigquery__day_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3322098, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"unique_id": "macro.dbt_date.postgres__day_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.33241, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"unique_id": "macro.dbt_date.to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.default__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3327749, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"unique_id": "macro.dbt_date.default__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.332907, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3330402, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.333139, "supported_languages": null}, "macro.dbt_date.n_days_away": {"unique_id": "macro.dbt_date.n_days_away", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.333449, "supported_languages": null}, "macro.dbt_date.week_start": {"unique_id": "macro.dbt_date.week_start", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.333973, "supported_languages": null}, "macro.dbt_date.default__week_start": {"unique_id": "macro.dbt_date.default__week_start", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.date_trunc('week', date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3341172, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"unique_id": "macro.dbt_date.snowflake__week_start", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.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.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.334408, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"unique_id": "macro.dbt_date.postgres__week_start", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.dateadd('day', -1, dbt.date_trunc('week', dbt.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "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": 1676476949.334673, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"unique_id": "macro.dbt_date.iso_week_start", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.335221, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"unique_id": "macro.dbt_date._iso_week_start", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.335374, "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/joseph.markiewicz/Documents/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": 1676476949.3355079, "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/joseph.markiewicz/Documents/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": 1676476949.335642, "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/joseph.markiewicz/Documents/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": 1676476949.335774, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"unique_id": "macro.dbt_date.n_days_ago", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.336249, "supported_languages": null}, "macro.dbt_date.last_week": {"unique_id": "macro.dbt_date.last_week", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.336503, "supported_languages": null}, "macro.dbt_date.now": {"unique_id": "macro.dbt_date.now", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.current_timestamp(), tz) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.336778, "supported_languages": null}, "macro.dbt_date.periods_since": {"unique_id": "macro.dbt_date.periods_since", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.337174, "supported_languages": null}, "macro.dbt_date.today": {"unique_id": "macro.dbt_date.today", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.337423, "supported_languages": null}, "macro.dbt_date.last_month": {"unique_id": "macro.dbt_date.last_month", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.337673, "supported_languages": null}, "macro.dbt_date.day_of_year": {"unique_id": "macro.dbt_date.day_of_year", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.338041, "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/joseph.markiewicz/Documents/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": 1676476949.338177, "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/joseph.markiewicz/Documents/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": 1676476949.338312, "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/joseph.markiewicz/Documents/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.type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.338499, "supported_languages": null}, "macro.dbt_date.round_timestamp": {"unique_id": "macro.dbt_date.round_timestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_date", "path": "macros/calendar_date/round_timestamp.sql", "original_file_path": "macros/calendar_date/round_timestamp.sql", "name": "round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ dbt.date_trunc(\"day\", dbt.dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.338827, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"unique_id": "macro.dbt_date.from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.340068, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"unique_id": "macro.dbt_date.default__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.340336, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.340607, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3410869, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.341475, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"unique_id": "macro.dbt_date.n_months_ago", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.date_trunc('month',\n dbt.dateadd('month', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.341994, "supported_languages": null}, "macro.dbt_date.date_part": {"unique_id": "macro.dbt_date.date_part", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.default__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.342387, "supported_languages": null}, "macro.dbt_date.default__date_part": {"unique_id": "macro.dbt_date.default__date_part", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3425221, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"unique_id": "macro.dbt_date.bigquery__date_part", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.342653, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"unique_id": "macro.dbt_date.n_weeks_away", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.date_trunc('week',\n dbt.dateadd('week', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.343095, "supported_languages": null}, "macro.dbt_date.day_of_month": {"unique_id": "macro.dbt_date.day_of_month", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.343395, "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/joseph.markiewicz/Documents/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.type_bigint() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3435872, "supported_languages": null}, "macro.dbt_date.yesterday": {"unique_id": "macro.dbt_date.yesterday", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.343976, "supported_languages": null}, "macro.dbt_date.day_of_week": {"unique_id": "macro.dbt_date.day_of_week", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.345642, "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/joseph.markiewicz/Documents/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": 1676476949.345935, "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/joseph.markiewicz/Documents/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": 1676476949.346338, "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/joseph.markiewicz/Documents/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": 1676476949.346692, "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/joseph.markiewicz/Documents/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.type_int() }})\n {%- else -%}\n {%- set dow_part = 'dow' -%}\n -- Sunday(1) to Saturday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} + 1 as {{ dbt.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.347175, "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/joseph.markiewicz/Documents/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.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3475661, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"unique_id": "macro.dbt_date.iso_week_end", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.348144, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"unique_id": "macro.dbt_date._iso_week_end", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3483598, "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/joseph.markiewicz/Documents/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": 1676476949.348502, "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/joseph.markiewicz/Documents/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": 1676476949.3486369, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"unique_id": "macro.dbt_date.n_weeks_ago", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.date_trunc('week',\n dbt.dateadd('week', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3490849, "supported_languages": null}, "macro.dbt_date.month_name": {"unique_id": "macro.dbt_date.month_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.349615, "supported_languages": null}, "macro.dbt_date.default__month_name": {"unique_id": "macro.dbt_date.default__month_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3498182, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"unique_id": "macro.dbt_date.bigquery__month_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.350018, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"unique_id": "macro.dbt_date.snowflake__month_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.350219, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"unique_id": "macro.dbt_date.postgres__month_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.350422, "supported_languages": null}, "macro.dbt_date.last_month_name": {"unique_id": "macro.dbt_date.last_month_name", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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(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": 1676476949.350752, "supported_languages": null}, "macro.dbt_date.week_of_year": {"unique_id": "macro.dbt_date.week_of_year", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3512452, "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/joseph.markiewicz/Documents/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.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.351506, "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/joseph.markiewicz/Documents/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.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.351656, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"unique_id": "macro.dbt_date.convert_timezone", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.352629, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"unique_id": "macro.dbt_date.default__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.352833, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"unique_id": "macro.dbt_date.bigquery__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.352982, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"unique_id": "macro.dbt_date.spark__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.35315, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"unique_id": "macro.dbt_date.postgres__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3533828, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"unique_id": "macro.dbt_date.redshift__convert_timezone", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.353575, "supported_languages": null}, "macro.dbt_date.n_months_away": {"unique_id": "macro.dbt_date.n_months_away", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.date_trunc('month',\n dbt.dateadd('month', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3539999, "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/joseph.markiewicz/Documents/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.postgres__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3545978, "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/joseph.markiewicz/Documents/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.type_int() }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3548002, "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/joseph.markiewicz/Documents/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": 1676476949.3549418, "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/joseph.markiewicz/Documents/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": 1676476949.355078, "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/joseph.markiewicz/Documents/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": 1676476949.355221, "supported_languages": null}, "macro.dbt_date.week_end": {"unique_id": "macro.dbt_date.week_end", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.355752, "supported_languages": null}, "macro.dbt_date.default__week_end": {"unique_id": "macro.dbt_date.default__week_end", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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{{ last_day(date, 'week') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3558881, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"unique_id": "macro.dbt_date.snowflake__week_end", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.356086, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"unique_id": "macro.dbt_date.postgres__week_end", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.356288, "supported_languages": null}, "macro.dbt_date.next_month_number": {"unique_id": "macro.dbt_date.next_month_number", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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(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": 1676476949.356578, "supported_languages": null}, "macro.dbt_date.last_month_number": {"unique_id": "macro.dbt_date.last_month_number", "package_name": "dbt_date", "root_path": "/Users/joseph.markiewicz/Documents/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(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": 1676476949.3568609, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3580601, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\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.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3594759, "supported_languages": null}, "macro.google_ads_source.spark__regexp_instr": {"unique_id": "macro.google_ads_source.spark__regexp_instr", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/google_ads_source", "path": "macros/regexp_instr.sql", "original_file_path": "macros/regexp_instr.sql", "name": "spark__regexp_instr", "macro_sql": "{% macro spark__regexp_instr(source_value, regexp, position=1, occurrence=1, is_raw=False) %}\nregexp_instr({{ source_value }}, '{{ regexp }}')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.35981, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\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.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.361114, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"advertising_channel_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_date\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_date\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_url_template\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.362457, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_ad_group_criterion\", \"datatype\": dbt.type_string()}\n] %}\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.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.36399, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"auto_tagging_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"descriptive_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.364993, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"display_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"final_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3660429, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"base_campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_text\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.367154, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_criterion_criterion_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\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.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3686342, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\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.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.369854, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.370348, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3713129, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.371488, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.371659, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.371827, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.371978, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.372143, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "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": 1676476949.3731132, "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/joseph.markiewicz/Documents/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": 1676476949.373823, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.374901, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.37515, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.375393, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.375629, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.375874, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3761358, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.376394, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.376789, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3768902, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.376989, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.377085, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.37753, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.37819, "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/joseph.markiewicz/Documents/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 is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3790379, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.379692, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.37987, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.380009, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.380137, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.380376, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.383212, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.383378, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3835342, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.383691, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.385333, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3862212, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.386359, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.386627, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3869052, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.387031, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.387153, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.387273, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.387817, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.3883789, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.388923, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.389122, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.389334, "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/joseph.markiewicz/Documents/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": 1676476949.389795, "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/joseph.markiewicz/Documents/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 is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.391247, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.395294, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.395664, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3961642, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.397742, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.398296, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.398913, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3990688, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.399219, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.399391, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.3995478, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.399703, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.400471, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4014761, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.40224, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.402411, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.402566, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.402727, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.402886, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4031382, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.4034681, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.40357, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.403668, "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/joseph.markiewicz/Documents/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": 1676476949.4043689, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.405765, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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 {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\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=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\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": 1676476949.408181, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.409712, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.41006, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.410165, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.410264, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.4107451, "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/joseph.markiewicz/Documents/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": 1676476949.411219, "supported_languages": null}, "macro.ad_reporting.is_enabled": {"unique_id": "macro.ad_reporting.is_enabled", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476953.504731, "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/joseph.markiewicz/Documents/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.default__get_date_from_timestamp"]}, "description": "This macro takes a column of type timestamp or forces the column into a timestamp (depending on the data warehouse) and extracts the date in the format of e.g. 2022-01-01.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "column", "type": "string", "description": "Specifies the column of type timestamp to extract the date from."}], "created_at": 1676476953.502202, "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/joseph.markiewicz/Documents/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": 1676476949.412168, "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/joseph.markiewicz/Documents/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": 1676476949.412269, "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/joseph.markiewicz/Documents/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": 1676476949.412365, "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/joseph.markiewicz/Documents/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": 1676476949.412459, "supported_languages": null}, "macro.ad_reporting.union_ctes": {"unique_id": "macro.ad_reporting.union_ctes", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476953.5051851, "supported_languages": null}, "macro.ad_reporting.get_query": {"unique_id": "macro.ad_reporting.get_query", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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.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.type_int() }}) as {{ field }}\n\n {% elif field == 'spend' -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_float() }}) as {{ field }}\n\n {% elif '_id' in field or '_name' in field or 'url' in field or 'utm' in field or field in ['keyword_match_type', 'keyword_text', 'search_match_type', 'search_query'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_string() }}) as {{ field }} \n {% 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.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "This macro compiles the final query with all aliasing and casting incorporated.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "platform", "type": "string", "description": "Specifies the platform for the CTE; this value should match exactly one value for the `all_packages` variable within `macros/get_enabled_packages.sql`.\n"}, {"name": "report_type", "type": "string", "description": "Specifies the report type and should map to the respective model; could take on one of the following values ['account', 'campaign', 'ad_group', 'ad', 'url', 'keyword', 'search'].\n"}, {"name": "field_mapping", "type": null, "description": "A dictionary that specifies any column name overriding as necessary since standard names in Ad Reporting may map to a different name as it appears natively within each platform. Each key will have exactly one corresponding string value; if a value is NULL then it will map to the string 'null'.\n"}, {"name": "relation", "type": null, "description": "This is a reference to the upstream model that the query will be selecting from; an example argument would look like this: relation=ref('tiktok_ads__advertiser_report').\n"}], "created_at": 1676476953.50425, "supported_languages": null}, "macro.ad_reporting.get_enabled_packages": {"unique_id": "macro.ad_reporting.get_enabled_packages", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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 'amazon_ads',\n 'apple_search_ads', \n 'facebook_ads', \n 'google_ads', \n 'linkedin_ads',\n 'microsoft_ads', \n 'pinterest_ads',\n 'snapchat_ads',\n 'tiktok_ads',\n 'twitter_ads'] %}\n\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": 1676476953.503017, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.420594, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.421869, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"ad_group_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_amount_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"bid_amount_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"search_term_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"search_term_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ 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.type_string", "macro.dbt.type_int", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.424213, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4253042, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4263911, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.427377, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"org_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.428624, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4297931, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.430547, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"bid_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"bid_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"text\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4316669, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.432669, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"android_deep_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"destination_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ios_deep_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_pin_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_removable\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pin_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"view_tracking_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.434648, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__keyword_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.436376, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__pin_promotion_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.437809, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__campaign_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4392629, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.440154, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"billing_profile_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"merchant_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.441601, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__ad_group_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.443249, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"archived\", \"datatype\": \"boolean\"},\n {\"name\": \"bid\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.44464, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__advertiser_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4458308, "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/joseph.markiewicz/Documents/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.type_numeric()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"adgroup_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"audience_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"category\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"frequency_schedule\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"interest_category_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"action_categories\", \"datatype\": dbt.type_string()},\n {\"name\": \"age\", \"datatype\": dbt.type_string()},\n {\"name\": \"languages\", \"datatype\": dbt.type_string()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.447901, "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/joseph.markiewicz/Documents/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.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_group_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.450814, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"contacter\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"industry\", \"datatype\": dbt.type_string()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"telephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.452606, "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/joseph.markiewicz/Documents/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.type_numeric()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"split_test_variable\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.453558, "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/joseph.markiewicz/Documents/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.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__campaign_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.456553, "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/joseph.markiewicz/Documents/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.type_numeric()},\n {\"name\": \"ad_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"call_to_action\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"impression_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.457813, "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/joseph.markiewicz/Documents/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.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4605892, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4618812, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"page_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_page_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_tags\", \"datatype\": dbt.type_string()},\n {\"name\": \"asset_feed_spec_link_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_child_attachments\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_caption\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_message\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_android\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_ios\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_ipad\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_iphone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.464154, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"stop_time\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"lifetime_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.465548, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"ad_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"adset_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"inline_link_clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"reach\", \"datatype\": dbt.type_int()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ 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.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.466889, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.467936, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_set_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4688919, "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/joseph.markiewicz/Documents/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.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__campaign_hourly_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.471241, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.472099, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"web_view_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.473044, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"saves\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__ad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4752588, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__ad_squad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.477463, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.478315, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.478972, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"ad_squad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.479912, "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/joseph.markiewicz/Documents/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.type_timestamp()},\n {\"name\": \"advertiser\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.481034, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"full_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"lang\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.481785, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"segment\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__line_item_keywords_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.483019, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__line_item_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4841611, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__campaign_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4852931, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"business_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"industry_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"salt\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_switch_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.488589, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"duration_in_days\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency_cap\", \"datatype\": dbt.type_int()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"servable\", \"datatype\": \"boolean\"},\n {\"name\": \"standard_delivery\", \"datatype\": \"boolean\"},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4901671, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"advertiser_user_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"automatically_select_bid\", \"datatype\": \"boolean\"},\n {\"name\": \"bid_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"charge_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_web_event_tag\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"target_cpa_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.492238, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.493035, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"expanded_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"indices\", \"datatype\": dbt.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4937012, "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/joseph.markiewicz/Documents/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.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"promoted_tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__promoted_tweet_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.494611, "supported_languages": null}, "macro.dbt_expectations.type_timestamp": {"unique_id": "macro.dbt_expectations.type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.495126, "supported_languages": null}, "macro.dbt_expectations.default__type_timestamp": {"unique_id": "macro.dbt_expectations.default__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.495202, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_timestamp": {"unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.495276, "supported_languages": null}, "macro.dbt_expectations.postgres__type_timestamp": {"unique_id": "macro.dbt_expectations.postgres__type_timestamp", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.495347, "supported_languages": null}, "macro.dbt_expectations.type_datetime": {"unique_id": "macro.dbt_expectations.type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.4955049, "supported_languages": null}, "macro.dbt_expectations.default__type_datetime": {"unique_id": "macro.dbt_expectations.default__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.495577, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_datetime": {"unique_id": "macro.dbt_expectations.snowflake__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.495646, "supported_languages": null}, "macro.dbt_expectations.postgres__type_datetime": {"unique_id": "macro.dbt_expectations.postgres__type_datetime", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.495714, "supported_languages": null}, "macro.dbt_expectations.group_by": {"unique_id": "macro.dbt_expectations.group_by", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_expectations')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.496076, "supported_languages": null}, "macro.dbt_expectations.default__group_by": {"unique_id": "macro.dbt_expectations.default__group_by", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/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": 1676476949.496346, "supported_languages": null}, "macro.dbt_expectations.regexp_instr": {"unique_id": "macro.dbt_expectations.regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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, is_raw=False) %}\n\n {{ adapter.dispatch('regexp_instr', 'dbt_expectations')(\n source_value, regexp, position, occurrence, is_raw\n ) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.postgres__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.497026, "supported_languages": null}, "macro.dbt_expectations.default__regexp_instr": {"unique_id": "macro.dbt_expectations.default__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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, is_raw) %}\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": 1676476949.497225, "supported_languages": null}, "macro.dbt_expectations.snowflake__regexp_instr": {"unique_id": "macro.dbt_expectations.snowflake__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": "snowflake__regexp_instr", "macro_sql": "{% macro snowflake__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\n{%- set regexp = \"$$\" ~ regexp ~ \"$$\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\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": 1676476949.497535, "supported_languages": null}, "macro.dbt_expectations.bigquery__regexp_instr": {"unique_id": "macro.dbt_expectations.bigquery__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": "bigquery__regexp_instr", "macro_sql": "{% macro bigquery__regexp_instr(source_value, regexp, position, occurrence, is_raw) %}\n{%- set regexp = \"r'\" ~ regexp ~ \"'\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\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": 1676476949.497837, "supported_languages": null}, "macro.dbt_expectations.postgres__regexp_instr": {"unique_id": "macro.dbt_expectations.postgres__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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, is_raw) %}\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": 1676476949.4980092, "supported_languages": null}, "macro.dbt_expectations.redshift__regexp_instr": {"unique_id": "macro.dbt_expectations.redshift__regexp_instr", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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, is_raw) %}\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": 1676476949.498205, "supported_languages": null}, "macro.dbt_expectations.log_natural": {"unique_id": "macro.dbt_expectations.log_natural", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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.default__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.498566, "supported_languages": null}, "macro.dbt_expectations.default__log_natural": {"unique_id": "macro.dbt_expectations.default__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.4986749, "supported_languages": null}, "macro.dbt_expectations.bigquery__log_natural": {"unique_id": "macro.dbt_expectations.bigquery__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.4987788, "supported_languages": null}, "macro.dbt_expectations.snowflake__log_natural": {"unique_id": "macro.dbt_expectations.snowflake__log_natural", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.498951, "supported_languages": null}, "macro.dbt_expectations.rand": {"unique_id": "macro.dbt_expectations.rand", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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.postgres__rand"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.499325, "supported_languages": null}, "macro.dbt_expectations.default__rand": {"unique_id": "macro.dbt_expectations.default__rand", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.4994, "supported_languages": null}, "macro.dbt_expectations.bigquery__rand": {"unique_id": "macro.dbt_expectations.bigquery__rand", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.4994738, "supported_languages": null}, "macro.dbt_expectations.snowflake__rand": {"unique_id": "macro.dbt_expectations.snowflake__rand", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.499552, "supported_languages": null}, "macro.dbt_expectations.postgres__rand": {"unique_id": "macro.dbt_expectations.postgres__rand", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.4996212, "supported_languages": null}, "macro.dbt_expectations.redshift__rand": {"unique_id": "macro.dbt_expectations.redshift__rand", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.4996932, "supported_languages": null}, "macro.dbt_expectations.median": {"unique_id": "macro.dbt_expectations.median", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.499975, "supported_languages": null}, "macro.dbt_expectations.percentile_cont": {"unique_id": "macro.dbt_expectations.percentile_cont", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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.default__quantile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.5004659, "supported_languages": null}, "macro.dbt_expectations.default__quantile": {"unique_id": "macro.dbt_expectations.default__quantile", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.5006762, "supported_languages": null}, "macro.dbt_expectations.bigquery__quantile": {"unique_id": "macro.dbt_expectations.bigquery__quantile", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.500876, "supported_languages": null}, "macro.dbt_expectations.ignore_row_if_expression": {"unique_id": "macro.dbt_expectations.ignore_row_if_expression", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "name": "ignore_row_if_expression", "macro_sql": "{% macro ignore_row_if_expression(ignore_row_if, columns) %}\n {{ adapter.dispatch('ignore_row_if_expression', 'dbt_expectations') (ignore_row_if, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.501395, "supported_languages": null}, "macro.dbt_expectations.default__ignore_row_if_expression": {"unique_id": "macro.dbt_expectations.default__ignore_row_if_expression", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "name": "default__ignore_row_if_expression", "macro_sql": "{% macro default__ignore_row_if_expression(ignore_row_if, columns) %}\n {%- set ignore_row_if_values = [\"all_values_are_missing\", \"any_value_is_missing\"] -%}\n {% if ignore_row_if not in ignore_row_if_values %}\n {{ exceptions.raise_compiler_error(\n \"`ignore_row_if` must be one of \" ~ (ignore_row_if_values | join(\", \")) ~ \". Got: '\" ~ ignore_row_if ~\"'.'\"\n ) }}\n {% endif %}\n\n {%- set op = \"and\" if ignore_row_if == \"all_values_are_missing\" else \"or\" -%}\n not (\n {% for column in columns -%}\n {{ column }} is null{% if not loop.last %} {{ op }} {% 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": 1676476949.50201, "supported_languages": null}, "macro.dbt_expectations.test_expression_between": {"unique_id": "macro.dbt_expectations.test_expression_between", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.503231, "supported_languages": null}, "macro.dbt_expectations.expression_between": {"unique_id": "macro.dbt_expectations.expression_between", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.503986, "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/joseph.markiewicz/Documents/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": 1676476949.504968, "supported_languages": null}, "macro.dbt_expectations.expression_is_true": {"unique_id": "macro.dbt_expectations.expression_is_true", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.5052538, "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/joseph.markiewicz/Documents/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": 1676476949.5061178, "supported_languages": null}, "macro.dbt_expectations.get_select": {"unique_id": "macro.dbt_expectations.get_select", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.5112991, "supported_languages": null}, "macro.dbt_expectations.default__get_select": {"unique_id": "macro.dbt_expectations.default__get_select", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.5118651, "supported_languages": null}, "macro.dbt_expectations.test_equal_expression": {"unique_id": "macro.dbt_expectations.test_equal_expression", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.5123498, "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/joseph.markiewicz/Documents/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": 1676476949.5136309, "supported_languages": null}, "macro.dbt_expectations.truth_expression": {"unique_id": "macro.dbt_expectations.truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.5140102, "supported_languages": null}, "macro.dbt_expectations.default__truth_expression": {"unique_id": "macro.dbt_expectations.default__truth_expression", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.5141141, "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/joseph.markiewicz/Documents/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": 1676476949.51473, "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/joseph.markiewicz/Documents/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": 1676476949.515837, "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/joseph.markiewicz/Documents/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 is_raw=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} > 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": 1676476949.516562, "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/joseph.markiewicz/Documents/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 = 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.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.5171552, "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/joseph.markiewicz/Documents/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{{ 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.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.518014, "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/joseph.markiewicz/Documents/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 is_raw=False\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} = 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": 1676476949.5187352, "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/joseph.markiewicz/Documents/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 is_raw=False\n ) %}\n\n{% set expression %}\n{% for regex in regex_list %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} = 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": 1676476949.519831, "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/joseph.markiewicz/Documents/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 is_raw=False\n ) %}\n\n{% set expression %}\n {% for regex in regex_list %}\n {{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw) }} > 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": 1676476949.5209448, "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/joseph.markiewicz/Documents/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": 1676476949.5220218, "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/joseph.markiewicz/Documents/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": 1676476949.522345, "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/joseph.markiewicz/Documents/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": 1676476949.5229251, "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/joseph.markiewicz/Documents/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": 1676476949.5241191, "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/joseph.markiewicz/Documents/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_expectations.type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ dbt_expectations.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_expectations.type_timestamp() }}))\n <\n cast({{ dbt.dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ dbt_expectations.type_timestamp() }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.5248199, "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/joseph.markiewicz/Documents/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.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.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.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.526056, "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/joseph.markiewicz/Documents/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,\n compare_model,\n group_by=None,\n compare_group_by=None,\n factor=1,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table',\n 'dbt_expectations') (model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.5271308, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": "default__test_expect_table_row_count_to_equal_other_table", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "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": 1676476949.527495, "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/joseph.markiewicz/Documents/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.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.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.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.528668, "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/joseph.markiewicz/Documents/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": 1676476949.531094, "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/joseph.markiewicz/Documents/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 {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n max(cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n),\ntotal_row_counts as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n count(*) as row_count\n from\n latest_grouped_timestamps\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n\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.dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ dbt_expectations.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\n {% for g in group_by %}\n r.{{ g }} = t.{{ g }} and\n {% endfor %}\n 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_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_expectations.group_by", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.5321338, "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/joseph.markiewicz/Documents/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.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.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.533372, "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/joseph.markiewicz/Documents/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": 1676476949.5341032, "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/joseph.markiewicz/Documents/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": 1676476949.53438, "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/joseph.markiewicz/Documents/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 {{ adapter.dispatch('test_expect_table_row_count_to_be_between',\n 'dbt_expectations') (model,\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_table_row_count_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.5353248, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": "default__test_expect_table_row_count_to_be_between", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_be_between(model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\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{%- 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": 1676476949.535682, "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/joseph.markiewicz/Documents/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,\n compare_model,\n factor,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table_times_factor',\n 'dbt_expectations') (model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.536862, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor": {"unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": "default__test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table_times_factor(model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) -%}\n\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=group_by,\n compare_group_by=compare_group_by,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "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": 1676476949.53717, "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/joseph.markiewicz/Documents/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.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.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.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.5384278, "supported_languages": null}, "macro.dbt_expectations._get_column_list": {"unique_id": "macro.dbt_expectations._get_column_list", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.5389152, "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/joseph.markiewicz/Documents/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.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.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.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.540567, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table": {"unique_id": "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "name": "test_expect_table_aggregation_to_equal_other_table", "macro_sql": "{%- test expect_table_aggregation_to_equal_other_table(model,\n expression,\n compare_model,\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\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition,\n tolerance=tolerance,\n tolerance_percent=tolerance_percent\n) }}\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": 1676476949.5413902, "supported_languages": null}, "macro.dbt_expectations._list_intersect": {"unique_id": "macro.dbt_expectations._list_intersect", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.541919, "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/joseph.markiewicz/Documents/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": 1676476949.542496, "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/joseph.markiewicz/Documents/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": 1676476949.542947, "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/joseph.markiewicz/Documents/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": 1676476949.544044, "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/joseph.markiewicz/Documents/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.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.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.544972, "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/joseph.markiewicz/Documents/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.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.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.545901, "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/joseph.markiewicz/Documents/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": 1676476949.547363, "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/joseph.markiewicz/Documents/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": 1676476949.547914, "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/joseph.markiewicz/Documents/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": 1676476949.548244, "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/joseph.markiewicz/Documents/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": 1676476949.549064, "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/joseph.markiewicz/Documents/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": 1676476949.550302, "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/joseph.markiewicz/Documents/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.type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ dbt.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.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.551407, "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/joseph.markiewicz/Documents/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": 1676476949.5517042, "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/joseph.markiewicz/Documents/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": 1676476949.552184, "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/joseph.markiewicz/Documents/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": 1676476949.552705, "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/joseph.markiewicz/Documents/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": 1676476949.55354, "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/joseph.markiewicz/Documents/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": 1676476949.554494, "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/joseph.markiewicz/Documents/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": 1676476949.555424, "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/joseph.markiewicz/Documents/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": 1676476949.556295, "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/joseph.markiewicz/Documents/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": 1676476949.557229, "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/joseph.markiewicz/Documents/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": 1676476949.558166, "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/joseph.markiewicz/Documents/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,\n column_name,\n value_set,\n top_n,\n quote_values=True,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (\n model, column_name, value_set, top_n, quote_values, data_type, row_condition\n ) }}\n\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": 1676476949.559947, "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/joseph.markiewicz/Documents/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,\n 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": 1676476949.560715, "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/joseph.markiewicz/Documents/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": 1676476949.5616698, "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/joseph.markiewicz/Documents/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 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": 1676476949.562337, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than": {"unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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_less_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "name": "test_expect_column_distinct_count_to_be_less_than", "macro_sql": "{% test expect_column_distinct_count_to_be_less_than(model,\n column_name,\n value,\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": 1676476949.56301, "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/joseph.markiewicz/Documents/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": 1676476949.563853, "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/joseph.markiewicz/Documents/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": 1676476949.565272, "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/joseph.markiewicz/Documents/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": 1676476949.565652, "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/joseph.markiewicz/Documents/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": 1676476949.5665002, "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/joseph.markiewicz/Documents/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": 1676476949.567348, "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/joseph.markiewicz/Documents/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 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": 1676476949.5680268, "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/joseph.markiewicz/Documents/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,\n 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 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": 1676476949.5689962, "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/joseph.markiewicz/Documents/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": 1676476949.569779, "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/joseph.markiewicz/Documents/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.datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ dbt.type_int() }}),\n cast({{interval}} as {{ dbt.type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ dbt.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.dateadd(\n date_part,\n \"mod(\n cast(\" ~ dbt.datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ dbt.type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ dbt.type_int() ~ \" )\n ) * (-1)\",\n \"cast( \" ~ dbt.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.datediff", "macro.dbt.type_int", "macro.dbt.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.573741, "supported_languages": null}, "macro.dbt_expectations._get_metric_expression": {"unique_id": "macro.dbt_expectations._get_metric_expression", "package_name": "dbt_expectations", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476949.578112, "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/joseph.markiewicz/Documents/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 group_by=None,\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 group_by,\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": 1676476949.5786722, "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/joseph.markiewicz/Documents/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 group_by,\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{%- set partition_by = \"partition by \" ~ (group_by | join(\",\")) if group_by -%}\n{%- set group_by_length = (group_by | length ) if group_by else 0 -%}\n\nwith metric_values as (\n\n with grouped_metric_values as (\n\n select\n {{ dbt.date_trunc(period, date_column_name) }} as metric_period,\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as agg_metric_value\n from\n {{ model }}\n {{ dbt_expectations.group_by(1 + group_by_length) }}\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(\n {{ partition_by }}\n 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({{ partition_by }}\n 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({{ partition_by }}\n 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)/\n 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.dateadd(period, -test_periods, dbt.date_trunc(period, dbt_date.now())) }}\n as {{ dbt_expectations.type_timestamp() }})\n and\n metric_period < {{ dbt.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.date_trunc", "macro.dbt_expectations.group_by", "macro.dbt_expectations._get_metric_expression", "macro.dbt.dateadd", "macro.dbt_date.now", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.580158, "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/joseph.markiewicz/Documents/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 {{\n adapter.dispatch('test_expect_column_values_to_be_within_n_stdevs', 'dbt_expectations') (\n model, column_name, group_by, sigma_threshold\n )\n }}\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": 1676476949.581117, "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/joseph.markiewicz/Documents/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 ) %}\n\nwith metric_values as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as {{ column_name }}\n from\n {{ model }}\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\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)/\n nullif({{ column_name }}_stddev, 0) 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": ["macro.dbt_expectations.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.581679, "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/joseph.markiewicz/Documents/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": 1676476949.583194, "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/joseph.markiewicz/Documents/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\n{%- set row_condition_ext -%}\n\n {%- if row_condition %}\n {{ row_condition }} and\n {% endif -%}\n\n {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\n{%- endset -%}\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\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\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": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.584309, "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/joseph.markiewicz/Documents/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\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 {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\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": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1676476949.5862982, "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/joseph.markiewicz/Documents/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": 1676476949.5872471, "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/joseph.markiewicz/Documents/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": 1676476949.587927, "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/joseph.markiewicz/Documents/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": 1676476949.58868, "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/joseph.markiewicz/Documents/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": 1676476949.590115, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.1/libexec/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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.budget_association_status": {"unique_id": "microsoft_ads_source.budget_association_status", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "budget_association_status", "block_contents": "The status of the campaign's budget."}, "microsoft_ads_source.campaign_id": {"unique_id": "microsoft_ads_source.campaign_id", "package_name": "microsoft_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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)."}, "amazon_ads_source._fivetran_deleted": {"unique_id": "amazon_ads_source._fivetran_deleted", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}, "amazon_ads_source._fivetran_id": {"unique_id": "amazon_ads_source._fivetran_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_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."}, "amazon_ads_source._fivetran_synced": {"unique_id": "amazon_ads_source._fivetran_synced", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "amazon_ads_source.account_id": {"unique_id": "amazon_ads_source.account_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces."}, "amazon_ads_source.account_name": {"unique_id": "amazon_ads_source.account_name", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "Account Name. Not currently populated for sellers."}, "amazon_ads_source.ad_group_id": {"unique_id": "amazon_ads_source.ad_group_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID of the AdGroup."}, "amazon_ads_source.ad_group_name": {"unique_id": "amazon_ads_source.ad_group_name", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_name", "block_contents": "The name of the AdGroup."}, "amazon_ads_source.ad_id": {"unique_id": "amazon_ads_source.ad_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_id", "block_contents": "The ID of the Ad."}, "amazon_ads_source.ad_keyword_status": {"unique_id": "amazon_ads_source.ad_keyword_status", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_keyword_status", "block_contents": "Current status of a keyword."}, "amazon_ads_source.advertised_asin": {"unique_id": "amazon_ads_source.advertised_asin", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "advertised_asin", "block_contents": "The ASIN associated to an advertised product."}, "amazon_ads_source.advertised_sku": {"unique_id": "amazon_ads_source.advertised_sku", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "advertised_sku", "block_contents": "The SKU being advertised."}, "amazon_ads_source.bid_keyword": {"unique_id": "amazon_ads_source.bid_keyword", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bid_keyword", "block_contents": "Bid associated with this keyword."}, "amazon_ads_source.campaign_applicable_budget_rule_id": {"unique_id": "amazon_ads_source.campaign_applicable_budget_rule_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_applicable_budget_rule_id", "block_contents": "The ID associated to the active budget rule for a campaign."}, "amazon_ads_source.campaign_applicable_budget_rule_name": {"unique_id": "amazon_ads_source.campaign_applicable_budget_rule_name", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_applicable_budget_rule_name", "block_contents": "The name associated to the active budget rule for a campaign."}, "amazon_ads_source.campaign_bidding_strategy": {"unique_id": "amazon_ads_source.campaign_bidding_strategy", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_bidding_strategy", "block_contents": "The bidding strategy associated with a campaign."}, "amazon_ads_source.campaign_budget_amount": {"unique_id": "amazon_ads_source.campaign_budget_amount", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_budget_amount", "block_contents": "Total budget allocated to the campaign."}, "amazon_ads_source.campaign_budget_currency_code": {"unique_id": "amazon_ads_source.campaign_budget_currency_code", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_budget_currency_code", "block_contents": "The currency code associated with the campaign."}, "amazon_ads_source.campaign_budget_type": {"unique_id": "amazon_ads_source.campaign_budget_type", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_budget_type", "block_contents": "One of: daily or lifetime."}, "amazon_ads_source.campaign_id": {"unique_id": "amazon_ads_source.campaign_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID of the Campaign."}, "amazon_ads_source.campaign_name": {"unique_id": "amazon_ads_source.campaign_name", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_name", "block_contents": "The name of the Campaign."}, "amazon_ads_source.campaign_rule_based_budget_amount": {"unique_id": "amazon_ads_source.campaign_rule_based_budget_amount", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_rule_based_budget_amount", "block_contents": "The value of the rule-based budget for a campaign."}, "amazon_ads_source.clicks": {"unique_id": "amazon_ads_source.clicks", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "Total number of ad clicks."}, "amazon_ads_source.cost": {"unique_id": "amazon_ads_source.cost", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cost", "block_contents": "Total cost of ad clicks."}, "amazon_ads_source.country_code": {"unique_id": "amazon_ads_source.country_code", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "country_code", "block_contents": "The code for a given country."}, "amazon_ads_source.creation_date": {"unique_id": "amazon_ads_source.creation_date", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "creation_date", "block_contents": "The date of creation of the record."}, "amazon_ads_source.currency_code": {"unique_id": "amazon_ads_source.currency_code", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_code", "block_contents": "The currency used for all monetary values for entities under this profile."}, "amazon_ads_source.default_bid": {"unique_id": "amazon_ads_source.default_bid", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "default_bid", "block_contents": "The date of creation of the record."}, "amazon_ads_source.impressions": {"unique_id": "amazon_ads_source.impressions", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "Total number of ad impressions."}, "amazon_ads_source.is_most_recent_record": {"unique_id": "amazon_ads_source.is_most_recent_record", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean indicating whether record was the most recent instance."}, "amazon_ads_source.keyword_bid": {"unique_id": "amazon_ads_source.keyword_bid", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_bid", "block_contents": "Bid associated with a keyword or targeting expression."}, "amazon_ads_source.keyword_id": {"unique_id": "amazon_ads_source.keyword_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_id", "block_contents": "The ID of the keyword."}, "amazon_ads_source.keyword_match_type": {"unique_id": "amazon_ads_source.keyword_match_type", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_match_type", "block_contents": "One of (broad, exact, or phrase.)"}, "amazon_ads_source.keyword_type": {"unique_id": "amazon_ads_source.keyword_type", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "amazon_ads_source.last_updated_date": {"unique_id": "amazon_ads_source.last_updated_date", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "last_updated_date", "block_contents": "Date of last update to record."}, "amazon_ads_source.match_type": {"unique_id": "amazon_ads_source.match_type", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "match_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "amazon_ads_source.negative_keyword_id": {"unique_id": "amazon_ads_source.negative_keyword_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "negative_keyword_id", "block_contents": "The ID of the negative keyword."}, "amazon_ads_source.portfolio_id": {"unique_id": "amazon_ads_source.portfolio_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "portfolio_id", "block_contents": "The ID of the Portfolio."}, "amazon_ads_source.portfolio_name": {"unique_id": "amazon_ads_source.portfolio_name", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "portfolio_name", "block_contents": "The name of the Portfolio."}, "amazon_ads_source.profile_id": {"unique_id": "amazon_ads_source.profile_id", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "profile_id", "block_contents": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace."}, "amazon_ads_source.report_date": {"unique_id": "amazon_ads_source.report_date", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "report_date", "block_contents": "The date of the report."}, "amazon_ads_source.search_term": {"unique_id": "amazon_ads_source.search_term", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "search_term", "block_contents": "The search term used by the customer."}, "amazon_ads_source.serving_status": {"unique_id": "amazon_ads_source.serving_status", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "serving_status", "block_contents": "The current serving status of the record."}, "amazon_ads_source.state": {"unique_id": "amazon_ads_source.state", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "state", "block_contents": "The state of the record (enabled, paused, or archived)."}, "amazon_ads_source.targeting": {"unique_id": "amazon_ads_source.targeting", "package_name": "amazon_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "targeting", "block_contents": "A string representation of the expression object used in the targeting clause."}, "amazon_ads._fivetran_deleted": {"unique_id": "amazon_ads._fivetran_deleted", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}, "amazon_ads._fivetran_id": {"unique_id": "amazon_ads._fivetran_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "amazon_ads._fivetran_synced": {"unique_id": "amazon_ads._fivetran_synced", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "amazon_ads.account_id": {"unique_id": "amazon_ads.account_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_id", "block_contents": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces."}, "amazon_ads.account_name": {"unique_id": "amazon_ads.account_name", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_name", "block_contents": "Account Name. Not currently populated for sellers."}, "amazon_ads.ad_group_id": {"unique_id": "amazon_ads.ad_group_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_id", "block_contents": "The ID of the AdGroup."}, "amazon_ads.ad_group_name": {"unique_id": "amazon_ads.ad_group_name", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_group_name", "block_contents": "The name of the AdGroup."}, "amazon_ads.ad_id": {"unique_id": "amazon_ads.ad_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_id", "block_contents": "The ID of the Ad."}, "amazon_ads.ad_keyword_status": {"unique_id": "amazon_ads.ad_keyword_status", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "ad_keyword_status", "block_contents": "Current status of a keyword."}, "amazon_ads.advertised_asin": {"unique_id": "amazon_ads.advertised_asin", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "advertised_asin", "block_contents": "The ASIN associated to an advertised product."}, "amazon_ads.advertised_sku": {"unique_id": "amazon_ads.advertised_sku", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "advertised_sku", "block_contents": "The SKU being advertised."}, "amazon_ads.bid_keyword": {"unique_id": "amazon_ads.bid_keyword", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "bid_keyword", "block_contents": "Bid associated with this keyword."}, "amazon_ads.campaign_applicable_budget_rule_id": {"unique_id": "amazon_ads.campaign_applicable_budget_rule_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_applicable_budget_rule_id", "block_contents": "The ID associated to the active budget rule for a campaign."}, "amazon_ads.campaign_applicable_budget_rule_name": {"unique_id": "amazon_ads.campaign_applicable_budget_rule_name", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_applicable_budget_rule_name", "block_contents": "The name associated to the active budget rule for a campaign."}, "amazon_ads.campaign_bidding_strategy": {"unique_id": "amazon_ads.campaign_bidding_strategy", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_bidding_strategy", "block_contents": "The bidding strategy associated with a campaign."}, "amazon_ads.campaign_budget_amount": {"unique_id": "amazon_ads.campaign_budget_amount", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_budget_amount", "block_contents": "Total budget allocated to the campaign."}, "amazon_ads.campaign_budget_currency_code": {"unique_id": "amazon_ads.campaign_budget_currency_code", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_budget_currency_code", "block_contents": "The currency code associated with the campaign."}, "amazon_ads.campaign_budget_type": {"unique_id": "amazon_ads.campaign_budget_type", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_budget_type", "block_contents": "One of: daily or lifetime."}, "amazon_ads.campaign_id": {"unique_id": "amazon_ads.campaign_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_id", "block_contents": "The ID of the Campaign."}, "amazon_ads.campaign_name": {"unique_id": "amazon_ads.campaign_name", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_name", "block_contents": "The name of the Campaign."}, "amazon_ads.campaign_rule_based_budget_amount": {"unique_id": "amazon_ads.campaign_rule_based_budget_amount", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "campaign_rule_based_budget_amount", "block_contents": "The value of the rule-based budget for a campaign."}, "amazon_ads.clicks": {"unique_id": "amazon_ads.clicks", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "clicks", "block_contents": "Total number of ad clicks."}, "amazon_ads.cost": {"unique_id": "amazon_ads.cost", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "cost", "block_contents": "Total cost of ad clicks."}, "amazon_ads.country_code": {"unique_id": "amazon_ads.country_code", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "country_code", "block_contents": "The code for a given country."}, "amazon_ads.creation_date": {"unique_id": "amazon_ads.creation_date", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "creation_date", "block_contents": "The date of creation of the record."}, "amazon_ads.currency_code": {"unique_id": "amazon_ads.currency_code", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_code", "block_contents": "The currency used for all monetary values for entities under this profile."}, "amazon_ads.default_bid": {"unique_id": "amazon_ads.default_bid", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "default_bid", "block_contents": "The date of creation of the record."}, "amazon_ads.impressions": {"unique_id": "amazon_ads.impressions", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "impressions", "block_contents": "Total number of ad impressions."}, "amazon_ads.is_most_recent_record": {"unique_id": "amazon_ads.is_most_recent_record", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "is_most_recent_record", "block_contents": "Boolean indicating whether record was the most recent instance."}, "amazon_ads.keyword_bid": {"unique_id": "amazon_ads.keyword_bid", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_bid", "block_contents": "Bid associated with a keyword or targeting expression."}, "amazon_ads.keyword_id": {"unique_id": "amazon_ads.keyword_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_id", "block_contents": "The ID of the keyword."}, "amazon_ads.keyword_match_type": {"unique_id": "amazon_ads.keyword_match_type", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_match_type", "block_contents": "One of (broad, exact, or phrase.)"}, "amazon_ads.keyword_text": {"unique_id": "amazon_ads.keyword_text", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_text", "block_contents": "The exact text for the keyword."}, "amazon_ads.keyword_type": {"unique_id": "amazon_ads.keyword_type", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "keyword_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "amazon_ads.last_updated_date": {"unique_id": "amazon_ads.last_updated_date", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "last_updated_date", "block_contents": "Date of last update to record."}, "amazon_ads.match_type": {"unique_id": "amazon_ads.match_type", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "match_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "amazon_ads.negative_keyword_id": {"unique_id": "amazon_ads.negative_keyword_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "negative_keyword_id", "block_contents": "The ID of the negative keyword."}, "amazon_ads.portfolio_id": {"unique_id": "amazon_ads.portfolio_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "portfolio_id", "block_contents": "The ID of the Portfolio."}, "amazon_ads.portfolio_name": {"unique_id": "amazon_ads.portfolio_name", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "portfolio_name", "block_contents": "The name of the Portfolio."}, "amazon_ads.profile_id": {"unique_id": "amazon_ads.profile_id", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "profile_id", "block_contents": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace."}, "amazon_ads.report_date": {"unique_id": "amazon_ads.report_date", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "report_date", "block_contents": "The date of the report."}, "amazon_ads.search_term": {"unique_id": "amazon_ads.search_term", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "search_term", "block_contents": "The search term used by the customer."}, "amazon_ads.serving_status": {"unique_id": "amazon_ads.serving_status", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "serving_status", "block_contents": "The current serving status of the record."}, "amazon_ads.state": {"unique_id": "amazon_ads.state", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "state", "block_contents": "The state of the record (enabled, paused, or archived)."}, "amazon_ads.targeting": {"unique_id": "amazon_ads.targeting", "package_name": "amazon_ads", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/ad_reporting/dbt_ad_reporting/integration_tests/dbt_packages/amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "name": "targeting", "block_contents": "A string representation of the expression object used in the targeting clause."}, "google_ads_source._fivetran_id": {"unique_id": "google_ads_source._fivetran_id", "package_name": "google_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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/joseph.markiewicz/Documents/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": 1676476953.4308338}, "metric.ad_reporting.clicks": {"fqn": ["ad_reporting", "clicks"], "unique_id": "metric.ad_reporting.clicks", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476953.433582}, "metric.ad_reporting.impressions": {"fqn": ["ad_reporting", "impressions"], "unique_id": "metric.ad_reporting.impressions", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476953.4363809}, "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/joseph.markiewicz/Documents/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": 1676476953.439423}, "metric.ad_reporting.bounce_rate": {"fqn": ["ad_reporting", "bounce_rate"], "unique_id": "metric.ad_reporting.bounce_rate", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476953.4422889}, "metric.ad_reporting.clickthrough_rate": {"fqn": ["ad_reporting", "clickthrough_rate"], "unique_id": "metric.ad_reporting.clickthrough_rate", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476953.4450612}, "metric.ad_reporting.active_ads": {"fqn": ["ad_reporting", "active_ads"], "unique_id": "metric.ad_reporting.active_ads", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476953.448001}, "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/joseph.markiewicz/Documents/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": 1676476953.4509802}, "metric.ad_reporting.avg_spend": {"fqn": ["ad_reporting", "avg_spend"], "unique_id": "metric.ad_reporting.avg_spend", "package_name": "ad_reporting", "root_path": "/Users/joseph.markiewicz/Documents/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": 1676476953.453036}}, "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": "postgres", "schema": "ad_reporting_integration_tests_2_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_id,\n report.keyword,\n line_items.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks\n\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__line_item_keywords_report_passthrough_metrics', transform='sum')}}\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n 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=11) }}\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads", "root_path": "/Users/joseph.markiewicz/Documents/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": "0ddfaeac37414648fe3241b0c879c7162ed91f6345ef8687c23c903a19149705"}, "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": []}, "keyword_id": {"name": "keyword_id", "description": "Unique key of the table built from the combination of 'account_id', 'line_item_id', 'segment', and 'placement' fields.", "meta": {}, "data_type": null, "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": 1676476952.786839, "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.date_trunc", "macro.dbt_utils.generate_surrogate_key", "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": "postgres", "schema": "ad_reporting_integration_tests_2_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.date_trunc('day', 'date') }} as date_day,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'line_item_id','segment','placement']) }} as keyword_id,\n account_id,\n line_item_id,\n segment as keyword,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n {{ fivetran_utils.fill_pass_through_columns('twitter_ads__line_item_keywords_report_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "b980b624c4483406f75c6c3f69c6ad4579616881539ba383f96f6e1b001df09a"}, "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": {"keyword_id": {"name": "keyword_id", "description": "Unique key of the table built from the combination of 'account_id', 'line_item_id','segment', and 'placement' fields.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "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": 1676476954.0665321, "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": "postgres", "schema": "ad_reporting_integration_tests_2_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/joseph.markiewicz/Documents/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": 1676476952.489813, "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": "postgres", "schema": "ad_reporting_integration_tests_2", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_keywords_report", "package_name": "twitter_ads_source", "root_path": "/Users/joseph.markiewicz/Documents/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": "\"postgres\".\"ad_reporting_integration_tests_2\".\"twitter_line_item_keywords_report_data\"", "created_at": 1676476954.205529}]}, "parent_map": {"seed.ad_reporting_integration_tests.twitter_line_item_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.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.amazon_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": [], "seed.ad_reporting_integration_tests.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.amazon_ads_product_ad_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.amazon_ads_advertised_product_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": [], "seed.ad_reporting_integration_tests.apple_search_organization_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": [], "seed.ad_reporting_integration_tests.tiktok_advertiser_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_profile_data": [], "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.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.amazon_ads_targeting_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.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.amazon_ads_source.stg_amazon_ads__campaign_level_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__campaign_history": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__profile": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp", "model.amazon_ads_source.stg_amazon_ads__profile_tmp"], "model.amazon_ads_source.stg_amazon_ads__keyword_history": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": ["source.amazon_ads_source.amazon_ads.keyword_history"], "model.amazon_ads_source.stg_amazon_ads__profile_tmp": ["source.amazon_ads_source.amazon_ads.profile"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": ["source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": ["source.amazon_ads_source.amazon_ads.product_ad_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": ["source.amazon_ads_source.amazon_ads.ad_group_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": ["source.amazon_ads_source.amazon_ads.campaign_level_report"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": ["source.amazon_ads_source.amazon_ads.targeting_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": ["source.amazon_ads_source.amazon_ads.portfolio_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": ["source.amazon_ads_source.amazon_ads.campaign_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": ["source.amazon_ads_source.amazon_ads.ad_group_level_report"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": ["source.amazon_ads_source.amazon_ads.advertised_product_report"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "model.linkedin_source.stg_linkedin_ads__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.amazon_ads.amazon_ads__portfolio_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__search_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "model.amazon_ads.amazon_ads__ad_group_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__keyword_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "model.amazon_ads.amazon_ads__campaign_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__account_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__ad_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.int_amazon_ads__portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "model.facebook_ads.facebook_ads__url_report": ["model.facebook_ads.int_facebook_ads__creative_history", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__url_tags": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.facebook_ads.facebook_ads__campaign_report": ["model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__account_report": ["model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad"], "model.facebook_ads.facebook_ads__ad_report": ["model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__ad_set_report": ["model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.int_facebook_ads__creative_history": ["model.facebook_ads.facebook_ads__url_tags", "model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.snapchat_ads.snapchat_ads__ad_report": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "model.snapchat_ads.snapchat_ads__url_report": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__account_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__ad_squad_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__campaign_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "model.snapchat_ads.snapchat_ads__creative_history_prep": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "model.google_ads_source.stg_google_ads__ad_group_stats": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "model.google_ads_source.stg_google_ads__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.amazon_ads.amazon_ads__campaign_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.facebook_ads.facebook_ads__campaign_report", "model.google_ads.google_ads__campaign_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.pinterest.pinterest_ads__campaign_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.twitter_ads.twitter_ads__campaign_report"], "model.ad_reporting.int_ad_reporting__keyword_report": ["model.amazon_ads.amazon_ads__keyword_report", "model.apple_search_ads.apple_search_ads__keyword_report", "model.google_ads.google_ads__keyword_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.pinterest.pinterest_ads__keyword_report"], "model.ad_reporting.int_ad_reporting__ad_report": ["model.amazon_ads.amazon_ads__ad_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.facebook_ads.facebook_ads__ad_report", "model.google_ads.google_ads__ad_report", "model.linkedin.linkedin_ads__creative_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.twitter_ads.twitter_ads__promoted_tweet_report"], "model.ad_reporting.int_ad_reporting__account_report": ["model.amazon_ads.amazon_ads__account_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.facebook_ads.facebook_ads__account_report", "model.google_ads.google_ads__account_report", "model.linkedin.linkedin_ads__account_report", "model.microsoft_ads.microsoft_ads__account_report", "model.pinterest.pinterest_ads__advertiser_report", "model.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.amazon_ads.amazon_ads__search_report", "model.apple_search_ads.apple_search_ads__search_term_report", "model.microsoft_ads.microsoft_ads__search_report"], "model.ad_reporting.int_ad_reporting__ad_group_report": ["model.amazon_ads.amazon_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_group_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.google_ads.google_ads__ad_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.pinterest.pinterest_ads__ad_group_report", "model.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__budget_association_status.6f2312e762": ["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.not_null_tiktok_ads__url_report_base_url.37afef2e1b": ["model.tiktok_ads.tiktok_ads__url_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_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_keyword_id.91efa0a538": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39": [], "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.not_null_twitter_ads__url_report_base_url.dfd7ab549e": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_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_destination_url.0bb7f30502": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_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.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": ["model.amazon_ads_source.stg_amazon_ads__profile"], "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_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.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": ["model.amazon_ads.amazon_ads__ad_group_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1": ["model.amazon_ads.amazon_ads__ad_group_report"], "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": ["model.amazon_ads.amazon_ads__ad_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7": ["model.amazon_ads.amazon_ads__ad_report"], "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": ["model.amazon_ads.amazon_ads__campaign_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0": ["model.amazon_ads.amazon_ads__campaign_report"], "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": ["model.amazon_ads.amazon_ads__portfolio_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6": ["model.amazon_ads.amazon_ads__portfolio_report"], "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": ["model.amazon_ads.amazon_ads__keyword_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80": ["model.amazon_ads.amazon_ads__keyword_report"], "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": ["model.amazon_ads.amazon_ads__search_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f": ["model.amazon_ads.amazon_ads__search_report"], "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": ["model.facebook_ads.facebook_ads__url_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_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.not_null_snapchat_ads__url_report_base_url.15676dc1de": ["model.snapchat_ads.snapchat_ads__url_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_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_id.51a45fb334": ["model.ad_reporting.ad_reporting__keyword_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6": ["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__match_type.8b1ebd50a3": ["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_keyword_id.e5f015e9ec": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id.fbb70cacf6": [], "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.not_null_linkedin_ads__url_report_click_uri.81534087cb": ["model.linkedin.linkedin_ads__url_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_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.amazon_ads_source.amazon_ads.ad_group_history": [], "source.amazon_ads_source.amazon_ads.ad_group_level_report": [], "source.amazon_ads_source.amazon_ads.advertised_product_report": [], "source.amazon_ads_source.amazon_ads.campaign_history": [], "source.amazon_ads_source.amazon_ads.campaign_level_report": [], "source.amazon_ads_source.amazon_ads.keyword_history": [], "source.amazon_ads_source.amazon_ads.portfolio_history": [], "source.amazon_ads_source.amazon_ads.product_ad_history": [], "source.amazon_ads_source.amazon_ads.profile": [], "source.amazon_ads_source.amazon_ads.targeting_keyword_report": [], "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": [], "source.linkedin_source.linkedin.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.amazon_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data": [], "seed.ad_reporting_integration_tests.google_ads_keyword_stats_data": [], "seed.ad_reporting_integration_tests.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.amazon_ads_ad_group_history_data": [], "seed.ad_reporting_integration_tests.facebook_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data": [], "seed.ad_reporting_integration_tests.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.amazon_ads_product_ad_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.amazon_ads_advertised_product_report_data": [], "seed.ad_reporting_integration_tests.facebook_ads_creative_history_data": [], "seed.ad_reporting_integration_tests.tiktok_adgroup_report_hourly_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data": [], "seed.ad_reporting_integration_tests.apple_search_organization_data": [], "seed.ad_reporting_integration_tests.tiktok_campaign_history_data": [], "seed.ad_reporting_integration_tests.tiktok_advertiser_data": [], "seed.ad_reporting_integration_tests.twitter_promoted_tweet_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_stats_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_stats_data": [], "seed.ad_reporting_integration_tests.twitter_campaign_report_data": [], "seed.ad_reporting_integration_tests.google_ads_account_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_profile_data": [], "seed.ad_reporting_integration_tests.facebook_ads_campaign_history_data": [], "seed.ad_reporting_integration_tests.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.amazon_ads_targeting_keyword_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.twitter_tweet_data": [], "seed.ad_reporting_integration_tests.snapchat_campaign_hourly_report_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_ad_history_data": [], "seed.ad_reporting_integration_tests.twitter_line_item_keywords_report_data": [], "seed.ad_reporting_integration_tests.snapchat_ad_account_history_data": [], "seed.ad_reporting_integration_tests.microsoft_ads_campaign_performance_daily_report_data": [], "seed.ad_reporting_integration_tests.google_ads_ad_group_criterion_history_data": [], "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data": [], "seed.ad_reporting_integration_tests.apple_search_ad_report_data": [], "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data": [], "seed.ad_reporting_integration_tests.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__budget_association_status.6f2312e762", "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_base_url.37afef2e1b", "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff"], "model.tiktok_ads.tiktok_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_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_base_url.dfd7ab549e", "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143"], "model.twitter_ads.twitter_ads__promoted_tweet_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_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_destination_url.0bb7f30502", "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a"], "model.pinterest.pinterest_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_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.amazon_ads_source.stg_amazon_ads__campaign_level_report": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__portfolio_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313", "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": ["model.amazon_ads.amazon_ads__ad_group_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94", "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": ["model.amazon_ads.amazon_ads__ad_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d", "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history": ["model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.int_amazon_ads__portfolio_history", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050", "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02"], "model.amazon_ads_source.stg_amazon_ads__campaign_history": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382", "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history": ["model.amazon_ads.amazon_ads__ad_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4", "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": ["model.amazon_ads.amazon_ads__keyword_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb", "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7"], "model.amazon_ads_source.stg_amazon_ads__profile": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b"], "model.amazon_ads_source.stg_amazon_ads__keyword_history": ["model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197", "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history": ["model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9", "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": ["model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693", "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06"], "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"], "model.amazon_ads_source.stg_amazon_ads__profile_tmp": ["model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.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.amazon_ads.amazon_ads__portfolio_report": ["test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6", "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6"], "model.amazon_ads.amazon_ads__search_report": ["model.ad_reporting.int_ad_reporting__search_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f", "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a"], "model.amazon_ads.amazon_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1", "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a"], "model.amazon_ads.amazon_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80", "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a"], "model.amazon_ads.amazon_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0", "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c"], "model.amazon_ads.amazon_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2", "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66"], "model.amazon_ads.amazon_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7", "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3"], "model.amazon_ads.int_amazon_ads__portfolio_history": ["model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report"], "model.facebook_ads.facebook_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_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_base_url.15676dc1de", "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6"], "model.snapchat_ads.snapchat_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_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_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6", "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334"], "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__match_type.8b1ebd50a3", "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_click_uri.81534087cb", "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_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__budget_association_status.6f2312e762": [], "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.not_null_tiktok_ads__url_report_base_url.37afef2e1b": [], "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_keyword_id.91efa0a538": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39": [], "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.not_null_twitter_ads__url_report_base_url.dfd7ab549e": [], "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_destination_url.0bb7f30502": [], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_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.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9": [], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94": [], "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d": [], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382": [], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313": [], "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197": [], "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050": [], "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4": [], "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": [], "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb": [], "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693": [], "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.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": [], "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2": [], "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1": [], "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7": [], "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0": [], "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6": [], "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80": [], "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f": [], "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.not_null_snapchat_ads__url_report_base_url.15676dc1de": [], "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_id.51a45fb334": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6": [], "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__match_type.8b1ebd50a3": [], "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_keyword_id.e5f015e9ec": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id.fbb70cacf6": [], "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.not_null_linkedin_ads__url_report_click_uri.81534087cb": [], "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.amazon_ads_source.amazon_ads.ad_group_history": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"], "source.amazon_ads_source.amazon_ads.ad_group_level_report": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"], "source.amazon_ads_source.amazon_ads.advertised_product_report": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"], "source.amazon_ads_source.amazon_ads.campaign_history": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"], "source.amazon_ads_source.amazon_ads.campaign_level_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"], "source.amazon_ads_source.amazon_ads.keyword_history": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"], "source.amazon_ads_source.amazon_ads.portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"], "source.amazon_ads_source.amazon_ads.product_ad_history": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"], "source.amazon_ads_source.amazon_ads.profile": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp"], "source.amazon_ads_source.amazon_ads.targeting_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"], "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"], "source.linkedin_source.linkedin.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 deleted file mode 100644 index 34e478a..0000000 --- a/docs/run_results.json +++ /dev/null @@ -1 +0,0 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.1", "generated_at": "2023-02-15T16:03:51.139978Z", "invocation_id": "34decfdc-e532-4953-b7aa-af2cb487294c", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.456696Z", "completed_at": "2023-02-15T16:03:40.460834Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.468579Z", "completed_at": "2023-02-15T16:03:40.468594Z"}], "thread_id": "Thread-1", "execution_time": 0.017009973526000977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.461180Z", "completed_at": "2023-02-15T16:03:40.468433Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.472640Z", "completed_at": "2023-02-15T16:03:40.472647Z"}], "thread_id": "Thread-2", "execution_time": 0.017632007598876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.464490Z", "completed_at": "2023-02-15T16:03:40.472462Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.474046Z", "completed_at": "2023-02-15T16:03:40.474050Z"}], "thread_id": "Thread-3", "execution_time": 0.018428802490234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.465036Z", "completed_at": "2023-02-15T16:03:40.473056Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.474508Z", "completed_at": "2023-02-15T16:03:40.474512Z"}], "thread_id": "Thread-4", "execution_time": 0.015123367309570312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.475136Z", "completed_at": "2023-02-15T16:03:40.479661Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.486934Z", "completed_at": "2023-02-15T16:03:40.486940Z"}], "thread_id": "Thread-1", "execution_time": 0.016089200973510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.479173Z", "completed_at": "2023-02-15T16:03:40.486829Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.490038Z", "completed_at": "2023-02-15T16:03:40.490041Z"}], "thread_id": "Thread-2", "execution_time": 0.015852928161621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.482321Z", "completed_at": "2023-02-15T16:03:40.489954Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.491185Z", "completed_at": "2023-02-15T16:03:40.491188Z"}], "thread_id": "Thread-3", "execution_time": 0.012983083724975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.482520Z", "completed_at": "2023-02-15T16:03:40.490196Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.491650Z", "completed_at": "2023-02-15T16:03:40.491653Z"}], "thread_id": "Thread-4", "execution_time": 0.013296842575073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.492257Z", "completed_at": "2023-02-15T16:03:40.499175Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.502303Z", "completed_at": "2023-02-15T16:03:40.502310Z"}], "thread_id": "Thread-1", "execution_time": 0.014988899230957031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.496046Z", "completed_at": "2023-02-15T16:03:40.502206Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.506101Z", "completed_at": "2023-02-15T16:03:40.506105Z"}], "thread_id": "Thread-2", "execution_time": 0.014784097671508789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.499399Z", "completed_at": "2023-02-15T16:03:40.505982Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.507262Z", "completed_at": "2023-02-15T16:03:40.507265Z"}], "thread_id": "Thread-3", "execution_time": 0.012105941772460938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.499624Z", "completed_at": "2023-02-15T16:03:40.506467Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.507690Z", "completed_at": "2023-02-15T16:03:40.507693Z"}], "thread_id": "Thread-4", "execution_time": 0.012291908264160156, "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": "2023-02-15T16:03:40.508249Z", "completed_at": "2023-02-15T16:03:40.514814Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.517629Z", "completed_at": "2023-02-15T16:03:40.517634Z"}], "thread_id": "Thread-1", "execution_time": 0.01419210433959961, "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": "2023-02-15T16:03:40.511987Z", "completed_at": "2023-02-15T16:03:40.515245Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.521336Z", "completed_at": "2023-02-15T16:03:40.521340Z"}], "thread_id": "Thread-2", "execution_time": 0.014010190963745117, "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": "2023-02-15T16:03:40.514987Z", "completed_at": "2023-02-15T16:03:40.521400Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.522826Z", "completed_at": "2023-02-15T16:03:40.522829Z"}], "thread_id": "Thread-3", "execution_time": 0.011716127395629883, "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": "2023-02-15T16:03:40.515188Z", "completed_at": "2023-02-15T16:03:40.521760Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.522981Z", "completed_at": "2023-02-15T16:03:40.522983Z"}], "thread_id": "Thread-4", "execution_time": 0.011679887771606445, "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": "2023-02-15T16:03:40.523574Z", "completed_at": "2023-02-15T16:03:40.530046Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.530651Z", "completed_at": "2023-02-15T16:03:40.530655Z"}], "thread_id": "Thread-1", "execution_time": 0.014751911163330078, "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": "2023-02-15T16:03:40.527033Z", "completed_at": "2023-02-15T16:03:40.530497Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.537206Z", "completed_at": "2023-02-15T16:03:40.537211Z"}], "thread_id": "Thread-2", "execution_time": 0.014919757843017578, "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": "2023-02-15T16:03:40.530432Z", "completed_at": "2023-02-15T16:03:40.537482Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.539005Z", "completed_at": "2023-02-15T16:03:40.539008Z"}], "thread_id": "Thread-3", "execution_time": 0.012497901916503906, "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": "2023-02-15T16:03:40.530577Z", "completed_at": "2023-02-15T16:03:40.538102Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.539303Z", "completed_at": "2023-02-15T16:03:40.539306Z"}], "thread_id": "Thread-4", "execution_time": 0.012539863586425781, "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": "2023-02-15T16:03:40.539379Z", "completed_at": "2023-02-15T16:03:40.546390Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.546990Z", "completed_at": "2023-02-15T16:03:40.546996Z"}], "thread_id": "Thread-1", "execution_time": 0.014105796813964844, "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": "2023-02-15T16:03:40.543071Z", "completed_at": "2023-02-15T16:03:40.546849Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.552490Z", "completed_at": "2023-02-15T16:03:40.552495Z"}], "thread_id": "Thread-2", "execution_time": 0.014128923416137695, "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": "2023-02-15T16:03:40.546789Z", "completed_at": "2023-02-15T16:03:40.552977Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.554137Z", "completed_at": "2023-02-15T16:03:40.554140Z"}], "thread_id": "Thread-3", "execution_time": 0.012076139450073242, "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": "2023-02-15T16:03:40.546918Z", "completed_at": "2023-02-15T16:03:40.553321Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.555233Z", "completed_at": "2023-02-15T16:03:40.555237Z"}], "thread_id": "Thread-4", "execution_time": 0.009715080261230469, "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": "2023-02-15T16:03:40.555319Z", "completed_at": "2023-02-15T16:03:40.562082Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.562677Z", "completed_at": "2023-02-15T16:03:40.562682Z"}], "thread_id": "Thread-1", "execution_time": 0.014401912689208984, "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": "2023-02-15T16:03:40.558735Z", "completed_at": "2023-02-15T16:03:40.562441Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.567961Z", "completed_at": "2023-02-15T16:03:40.567967Z"}], "thread_id": "Thread-2", "execution_time": 0.014544963836669922, "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": "2023-02-15T16:03:40.562514Z", "completed_at": "2023-02-15T16:03:40.568871Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.570014Z", "completed_at": "2023-02-15T16:03:40.570017Z"}], "thread_id": "Thread-3", "execution_time": 0.01133275032043457, "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": "2023-02-15T16:03:40.562604Z", "completed_at": "2023-02-15T16:03:40.568937Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.570088Z", "completed_at": "2023-02-15T16:03:40.570090Z"}], "thread_id": "Thread-4", "execution_time": 0.008877038955688477, "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": "2023-02-15T16:03:40.570159Z", "completed_at": "2023-02-15T16:03:40.577563Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.578324Z", "completed_at": "2023-02-15T16:03:40.578329Z"}], "thread_id": "Thread-1", "execution_time": 0.012330055236816406, "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": "2023-02-15T16:03:40.574182Z", "completed_at": "2023-02-15T16:03:40.578098Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.581515Z", "completed_at": "2023-02-15T16:03:40.581524Z"}], "thread_id": "Thread-2", "execution_time": 0.015145063400268555, "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": "2023-02-15T16:03:40.578251Z", "completed_at": "2023-02-15T16:03:40.585371Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.586363Z", "completed_at": "2023-02-15T16:03:40.586367Z"}], "thread_id": "Thread-3", "execution_time": 0.012972116470336914, "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": "2023-02-15T16:03:40.578473Z", "completed_at": "2023-02-15T16:03:40.585721Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.586508Z", "completed_at": "2023-02-15T16:03:40.586511Z"}], "thread_id": "Thread-4", "execution_time": 0.013027667999267578, "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": "2023-02-15T16:03:40.586287Z", "completed_at": "2023-02-15T16:03:40.593646Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.594790Z", "completed_at": "2023-02-15T16:03:40.594794Z"}], "thread_id": "Thread-1", "execution_time": 0.010103702545166016, "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": "2023-02-15T16:03:40.590444Z", "completed_at": "2023-02-15T16:03:40.594716Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.597999Z", "completed_at": "2023-02-15T16:03:40.598004Z"}], "thread_id": "Thread-2", "execution_time": 0.015096664428710938, "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": "2023-02-15T16:03:40.594945Z", "completed_at": "2023-02-15T16:03:40.601470Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.602430Z", "completed_at": "2023-02-15T16:03:40.602434Z"}], "thread_id": "Thread-3", "execution_time": 0.011906862258911133, "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": "2023-02-15T16:03:40.595369Z", "completed_at": "2023-02-15T16:03:40.602058Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.606096Z", "completed_at": "2023-02-15T16:03:40.606099Z"}], "thread_id": "Thread-4", "execution_time": 0.012341976165771484, "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": "2023-02-15T16:03:40.602357Z", "completed_at": "2023-02-15T16:03:40.609321Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.610454Z", "completed_at": "2023-02-15T16:03:40.610461Z"}], "thread_id": "Thread-1", "execution_time": 0.00964212417602539, "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": "2023-02-15T16:03:40.606177Z", "completed_at": "2023-02-15T16:03:40.610159Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.613463Z", "completed_at": "2023-02-15T16:03:40.613468Z"}], "thread_id": "Thread-2", "execution_time": 0.01199197769165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.610532Z", "completed_at": "2023-02-15T16:03:40.616624Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.617820Z", "completed_at": "2023-02-15T16:03:40.617825Z"}], "thread_id": "Thread-3", "execution_time": 0.008963823318481445, "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": "2023-02-15T16:03:40.613554Z", "completed_at": "2023-02-15T16:03:40.617748Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.621854Z", "completed_at": "2023-02-15T16:03:40.621862Z"}], "thread_id": "Thread-4", "execution_time": 0.014777898788452148, "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": "2023-02-15T16:03:40.617926Z", "completed_at": "2023-02-15T16:03:40.625146Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.626283Z", "completed_at": "2023-02-15T16:03:40.626287Z"}], "thread_id": "Thread-1", "execution_time": 0.010008096694946289, "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": "2023-02-15T16:03:40.621770Z", "completed_at": "2023-02-15T16:03:40.625904Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.626854Z", "completed_at": "2023-02-15T16:03:40.626857Z"}], "thread_id": "Thread-2", "execution_time": 0.01316976547241211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.626434Z", "completed_at": "2023-02-15T16:03:40.634864Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.636015Z", "completed_at": "2023-02-15T16:03:40.636022Z"}], "thread_id": "Thread-3", "execution_time": 0.014021873474121094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.629701Z", "completed_at": "2023-02-15T16:03:40.635851Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.639524Z", "completed_at": "2023-02-15T16:03:40.639528Z"}], "thread_id": "Thread-4", "execution_time": 0.017639875411987305, "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": "2023-02-15T16:03:40.635930Z", "completed_at": "2023-02-15T16:03:40.643831Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.645125Z", "completed_at": "2023-02-15T16:03:40.645130Z"}], "thread_id": "Thread-1", "execution_time": 0.011054039001464844, "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": "2023-02-15T16:03:40.639430Z", "completed_at": "2023-02-15T16:03:40.644690Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.645791Z", "completed_at": "2023-02-15T16:03:40.645795Z"}], "thread_id": "Thread-2", "execution_time": 0.013632774353027344, "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": "2023-02-15T16:03:40.645296Z", "completed_at": "2023-02-15T16:03:40.663838Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.667975Z", "completed_at": "2023-02-15T16:03:40.667982Z"}], "thread_id": "Thread-3", "execution_time": 0.02880406379699707, "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": "2023-02-15T16:03:40.648671Z", "completed_at": "2023-02-15T16:03:40.664390Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.672422Z", "completed_at": "2023-02-15T16:03:40.672429Z"}], "thread_id": "Thread-4", "execution_time": 0.0349431037902832, "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": "2023-02-15T16:03:40.667407Z", "completed_at": "2023-02-15T16:03:40.679963Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.681452Z", "completed_at": "2023-02-15T16:03:40.681456Z"}], "thread_id": "Thread-1", "execution_time": 0.01984691619873047, "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": "2023-02-15T16:03:40.672297Z", "completed_at": "2023-02-15T16:03:40.680900Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.682044Z", "completed_at": "2023-02-15T16:03:40.682047Z"}], "thread_id": "Thread-2", "execution_time": 0.01858377456665039, "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": "2023-02-15T16:03:40.682228Z", "completed_at": "2023-02-15T16:03:40.688781Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.691833Z", "completed_at": "2023-02-15T16:03:40.691839Z"}], "thread_id": "Thread-4", "execution_time": 0.013998985290527344, "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": "2023-02-15T16:03:40.682126Z", "completed_at": "2023-02-15T16:03:40.688841Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.691915Z", "completed_at": "2023-02-15T16:03:40.691918Z"}], "thread_id": "Thread-3", "execution_time": 0.01460719108581543, "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": "2023-02-15T16:03:40.688911Z", "completed_at": "2023-02-15T16:03:40.695348Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.696748Z", "completed_at": "2023-02-15T16:03:40.696751Z"}], "thread_id": "Thread-1", "execution_time": 0.009567022323608398, "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": "2023-02-15T16:03:40.691749Z", "completed_at": "2023-02-15T16:03:40.696151Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.697465Z", "completed_at": "2023-02-15T16:03:40.697468Z"}], "thread_id": "Thread-2", "execution_time": 0.009583234786987305, "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": "2023-02-15T16:03:40.697624Z", "completed_at": "2023-02-15T16:03:40.748351Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.751285Z", "completed_at": "2023-02-15T16:03:40.751292Z"}], "thread_id": "Thread-4", "execution_time": 0.05756092071533203, "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": "2023-02-15T16:03:40.698270Z", "completed_at": "2023-02-15T16:03:40.750927Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.753799Z", "completed_at": "2023-02-15T16:03:40.753804Z"}], "thread_id": "Thread-3", "execution_time": 0.05759906768798828, "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": "2023-02-15T16:03:40.748275Z", "completed_at": "2023-02-15T16:03:40.753732Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.754989Z", "completed_at": "2023-02-15T16:03:40.754992Z"}], "thread_id": "Thread-1", "execution_time": 0.01110982894897461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.751098Z", "completed_at": "2023-02-15T16:03:40.754605Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.756123Z", "completed_at": "2023-02-15T16:03:40.756126Z"}], "thread_id": "Thread-2", "execution_time": 0.008795022964477539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.756878Z", "completed_at": "2023-02-15T16:03:40.763808Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.769026Z", "completed_at": "2023-02-15T16:03:40.769032Z"}], "thread_id": "Thread-4", "execution_time": 0.014042854309082031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.757183Z", "completed_at": "2023-02-15T16:03:40.766277Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.769165Z", "completed_at": "2023-02-15T16:03:40.769169Z"}], "thread_id": "Thread-3", "execution_time": 0.013930082321166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.763616Z", "completed_at": "2023-02-15T16:03:40.769094Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.770350Z", "completed_at": "2023-02-15T16:03:40.770353Z"}], "thread_id": "Thread-1", "execution_time": 0.01425623893737793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.766364Z", "completed_at": "2023-02-15T16:03:40.769937Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.771581Z", "completed_at": "2023-02-15T16:03:40.771584Z"}], "thread_id": "Thread-2", "execution_time": 0.008919954299926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.772369Z", "completed_at": "2023-02-15T16:03:40.779395Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.784819Z", "completed_at": "2023-02-15T16:03:40.784825Z"}], "thread_id": "Thread-4", "execution_time": 0.01452016830444336, "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": "2023-02-15T16:03:40.772664Z", "completed_at": "2023-02-15T16:03:40.782060Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.784942Z", "completed_at": "2023-02-15T16:03:40.784945Z"}], "thread_id": "Thread-3", "execution_time": 0.014283895492553711, "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": "2023-02-15T16:03:40.779156Z", "completed_at": "2023-02-15T16:03:40.784741Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.785744Z", "completed_at": "2023-02-15T16:03:40.785748Z"}], "thread_id": "Thread-1", "execution_time": 0.014223098754882812, "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": "2023-02-15T16:03:40.781992Z", "completed_at": "2023-02-15T16:03:40.785082Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.786793Z", "completed_at": "2023-02-15T16:03:40.786796Z"}], "thread_id": "Thread-2", "execution_time": 0.00904703140258789, "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": "2023-02-15T16:03:40.788743Z", "completed_at": "2023-02-15T16:03:40.797555Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.800406Z", "completed_at": "2023-02-15T16:03:40.800412Z"}], "thread_id": "Thread-3", "execution_time": 0.013664007186889648, "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": "2023-02-15T16:03:40.788668Z", "completed_at": "2023-02-15T16:03:40.797621Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.800624Z", "completed_at": "2023-02-15T16:03:40.800626Z"}], "thread_id": "Thread-4", "execution_time": 0.01441192626953125, "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": "2023-02-15T16:03:40.794709Z", "completed_at": "2023-02-15T16:03:40.800208Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.800994Z", "completed_at": "2023-02-15T16:03:40.800996Z"}], "thread_id": "Thread-1", "execution_time": 0.013711929321289062, "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": "2023-02-15T16:03:40.797492Z", "completed_at": "2023-02-15T16:03:40.800556Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.802011Z", "completed_at": "2023-02-15T16:03:40.802014Z"}], "thread_id": "Thread-2", "execution_time": 0.014166116714477539, "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": "2023-02-15T16:03:40.804049Z", "completed_at": "2023-02-15T16:03:40.812769Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.815707Z", "completed_at": "2023-02-15T16:03:40.815715Z"}], "thread_id": "Thread-3", "execution_time": 0.013823986053466797, "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": "2023-02-15T16:03:40.804411Z", "completed_at": "2023-02-15T16:03:40.815513Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.816339Z", "completed_at": "2023-02-15T16:03:40.816342Z"}], "thread_id": "Thread-4", "execution_time": 0.013828039169311523, "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": "2023-02-15T16:03:40.807740Z", "completed_at": "2023-02-15T16:03:40.815583Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.816486Z", "completed_at": "2023-02-15T16:03:40.816488Z"}], "thread_id": "Thread-1", "execution_time": 0.013844013214111328, "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": "2023-02-15T16:03:40.812632Z", "completed_at": "2023-02-15T16:03:40.815870Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.817122Z", "completed_at": "2023-02-15T16:03:40.817124Z"}], "thread_id": "Thread-2", "execution_time": 0.013934135437011719, "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": "2023-02-15T16:03:40.819365Z", "completed_at": "2023-02-15T16:03:40.828495Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.831592Z", "completed_at": "2023-02-15T16:03:40.831599Z"}], "thread_id": "Thread-3", "execution_time": 0.01466822624206543, "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": "2023-02-15T16:03:40.822427Z", "completed_at": "2023-02-15T16:03:40.831084Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.831813Z", "completed_at": "2023-02-15T16:03:40.831816Z"}], "thread_id": "Thread-4", "execution_time": 0.01401376724243164, "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": "2023-02-15T16:03:40.822638Z", "completed_at": "2023-02-15T16:03:40.831363Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.832375Z", "completed_at": "2023-02-15T16:03:40.832379Z"}], "thread_id": "Thread-1", "execution_time": 0.014285087585449219, "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": "2023-02-15T16:03:40.826029Z", "completed_at": "2023-02-15T16:03:40.831666Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.833146Z", "completed_at": "2023-02-15T16:03:40.833150Z"}], "thread_id": "Thread-2", "execution_time": 0.014890909194946289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.836022Z", "completed_at": "2023-02-15T16:03:40.845462Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.848340Z", "completed_at": "2023-02-15T16:03:40.848346Z"}], "thread_id": "Thread-3", "execution_time": 0.014878988265991211, "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": "2023-02-15T16:03:40.836440Z", "completed_at": "2023-02-15T16:03:40.847944Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.848433Z", "completed_at": "2023-02-15T16:03:40.848436Z"}], "thread_id": "Thread-4", "execution_time": 0.014148950576782227, "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": "2023-02-15T16:03:40.839535Z", "completed_at": "2023-02-15T16:03:40.848250Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.849343Z", "completed_at": "2023-02-15T16:03:40.849346Z"}], "thread_id": "Thread-1", "execution_time": 0.014533042907714844, "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": "2023-02-15T16:03:40.842921Z", "completed_at": "2023-02-15T16:03:40.848491Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.850006Z", "completed_at": "2023-02-15T16:03:40.850009Z"}], "thread_id": "Thread-2", "execution_time": 0.014990091323852539, "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": "2023-02-15T16:03:40.852114Z", "completed_at": "2023-02-15T16:03:40.860940Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.863817Z", "completed_at": "2023-02-15T16:03:40.863823Z"}], "thread_id": "Thread-3", "execution_time": 0.01392984390258789, "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": "2023-02-15T16:03:40.852188Z", "completed_at": "2023-02-15T16:03:40.861009Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.863905Z", "completed_at": "2023-02-15T16:03:40.863909Z"}], "thread_id": "Thread-4", "execution_time": 0.013972282409667969, "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": "2023-02-15T16:03:40.858282Z", "completed_at": "2023-02-15T16:03:40.863740Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.864743Z", "completed_at": "2023-02-15T16:03:40.864747Z"}], "thread_id": "Thread-1", "execution_time": 0.013734817504882812, "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": "2023-02-15T16:03:40.858454Z", "completed_at": "2023-02-15T16:03:40.863962Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.865401Z", "completed_at": "2023-02-15T16:03:40.865403Z"}], "thread_id": "Thread-2", "execution_time": 0.014110803604125977, "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": "2023-02-15T16:03:40.867409Z", "completed_at": "2023-02-15T16:03:40.876241Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.878069Z", "completed_at": "2023-02-15T16:03:40.878075Z"}], "thread_id": "Thread-3", "execution_time": 0.012796878814697266, "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": "2023-02-15T16:03:40.867488Z", "completed_at": "2023-02-15T16:03:40.876304Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.878156Z", "completed_at": "2023-02-15T16:03:40.878159Z"}], "thread_id": "Thread-4", "execution_time": 0.01283884048461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.873572Z", "completed_at": "2023-02-15T16:03:40.877913Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.878944Z", "completed_at": "2023-02-15T16:03:40.878947Z"}], "thread_id": "Thread-1", "execution_time": 0.012635946273803711, "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": "2023-02-15T16:03:40.873748Z", "completed_at": "2023-02-15T16:03:40.877989Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.879023Z", "completed_at": "2023-02-15T16:03:40.879026Z"}], "thread_id": "Thread-2", "execution_time": 0.012515068054199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.881804Z", "completed_at": "2023-02-15T16:03:40.884952Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.888598Z", "completed_at": "2023-02-15T16:03:40.888602Z"}], "thread_id": "Thread-3", "execution_time": 0.008852005004882812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_ad_group_level_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.881881Z", "completed_at": "2023-02-15T16:03:40.885035Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.888670Z", "completed_at": "2023-02-15T16:03:40.888674Z"}], "thread_id": "Thread-4", "execution_time": 0.00890493392944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_advertised_product_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.884785Z", "completed_at": "2023-02-15T16:03:40.888451Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.889452Z", "completed_at": "2023-02-15T16:03:40.889455Z"}], "thread_id": "Thread-1", "execution_time": 0.008908987045288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.884872Z", "completed_at": "2023-02-15T16:03:40.888526Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.889532Z", "completed_at": "2023-02-15T16:03:40.889535Z"}], "thread_id": "Thread-2", "execution_time": 0.008931159973144531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_campaign_level_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.892793Z", "completed_at": "2023-02-15T16:03:40.896060Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.899939Z", "completed_at": "2023-02-15T16:03:40.899945Z"}], "thread_id": "Thread-3", "execution_time": 0.009810924530029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_keyword_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.892870Z", "completed_at": "2023-02-15T16:03:40.896141Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.900012Z", "completed_at": "2023-02-15T16:03:40.900014Z"}], "thread_id": "Thread-4", "execution_time": 0.009865999221801758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_portfolio_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.895907Z", "completed_at": "2023-02-15T16:03:40.899775Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.900827Z", "completed_at": "2023-02-15T16:03:40.900832Z"}], "thread_id": "Thread-1", "execution_time": 0.009450912475585938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_product_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.895988Z", "completed_at": "2023-02-15T16:03:40.899862Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.900923Z", "completed_at": "2023-02-15T16:03:40.900926Z"}], "thread_id": "Thread-2", "execution_time": 0.009438037872314453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_profile_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.903620Z", "completed_at": "2023-02-15T16:03:40.906844Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.910547Z", "completed_at": "2023-02-15T16:03:40.910552Z"}], "thread_id": "Thread-3", "execution_time": 0.008890151977539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_search_term_ad_keyword_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.903696Z", "completed_at": "2023-02-15T16:03:40.906920Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.910615Z", "completed_at": "2023-02-15T16:03:40.910618Z"}], "thread_id": "Thread-4", "execution_time": 0.008945941925048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.amazon_ads_targeting_keyword_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.906693Z", "completed_at": "2023-02-15T16:03:40.910410Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.911385Z", "completed_at": "2023-02-15T16:03:40.911387Z"}], "thread_id": "Thread-1", "execution_time": 0.008945226669311523, "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": "2023-02-15T16:03:40.906775Z", "completed_at": "2023-02-15T16:03:40.910480Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.911457Z", "completed_at": "2023-02-15T16:03:40.911459Z"}], "thread_id": "Thread-2", "execution_time": 0.008962631225585938, "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": "2023-02-15T16:03:40.913967Z", "completed_at": "2023-02-15T16:03:40.917025Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.920490Z", "completed_at": "2023-02-15T16:03:40.920494Z"}], "thread_id": "Thread-3", "execution_time": 0.008503913879394531, "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": "2023-02-15T16:03:40.914039Z", "completed_at": "2023-02-15T16:03:40.917098Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.920562Z", "completed_at": "2023-02-15T16:03:40.920564Z"}], "thread_id": "Thread-4", "execution_time": 0.008551836013793945, "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": "2023-02-15T16:03:40.916881Z", "completed_at": "2023-02-15T16:03:40.920337Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.921346Z", "completed_at": "2023-02-15T16:03:40.921349Z"}], "thread_id": "Thread-1", "execution_time": 0.008599996566772461, "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": "2023-02-15T16:03:40.916956Z", "completed_at": "2023-02-15T16:03:40.920414Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.921420Z", "completed_at": "2023-02-15T16:03:40.921422Z"}], "thread_id": "Thread-2", "execution_time": 0.008622169494628906, "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": "2023-02-15T16:03:40.923917Z", "completed_at": "2023-02-15T16:03:40.926870Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.929736Z", "completed_at": "2023-02-15T16:03:40.929740Z"}], "thread_id": "Thread-3", "execution_time": 0.007718324661254883, "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": "2023-02-15T16:03:40.923989Z", "completed_at": "2023-02-15T16:03:40.926940Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.929812Z", "completed_at": "2023-02-15T16:03:40.929814Z"}], "thread_id": "Thread-4", "execution_time": 0.008517742156982422, "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": "2023-02-15T16:03:40.926725Z", "completed_at": "2023-02-15T16:03:40.929566Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.931346Z", "completed_at": "2023-02-15T16:03:40.931349Z"}], "thread_id": "Thread-1", "execution_time": 0.008667945861816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.apple_search_organization_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:40.926801Z", "completed_at": "2023-02-15T16:03:40.929657Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.931422Z", "completed_at": "2023-02-15T16:03:40.931424Z"}], "thread_id": "Thread-2", "execution_time": 0.008715152740478516, "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": "2023-02-15T16:03:40.934157Z", "completed_at": "2023-02-15T16:03:40.937411Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.940286Z", "completed_at": "2023-02-15T16:03:40.940292Z"}], "thread_id": "Thread-3", "execution_time": 0.008209228515625, "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": "2023-02-15T16:03:40.934231Z", "completed_at": "2023-02-15T16:03:40.937488Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.940357Z", "completed_at": "2023-02-15T16:03:40.940360Z"}], "thread_id": "Thread-4", "execution_time": 0.008240938186645508, "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": "2023-02-15T16:03:40.937265Z", "completed_at": "2023-02-15T16:03:40.940143Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.941138Z", "completed_at": "2023-02-15T16:03:40.941141Z"}], "thread_id": "Thread-1", "execution_time": 0.00824284553527832, "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": "2023-02-15T16:03:40.937342Z", "completed_at": "2023-02-15T16:03:40.940216Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.941213Z", "completed_at": "2023-02-15T16:03:40.941216Z"}], "thread_id": "Thread-2", "execution_time": 0.008327960968017578, "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": "2023-02-15T16:03:40.943769Z", "completed_at": "2023-02-15T16:03:40.947413Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.950317Z", "completed_at": "2023-02-15T16:03:40.950321Z"}], "thread_id": "Thread-3", "execution_time": 0.008392333984375, "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": "2023-02-15T16:03:40.943860Z", "completed_at": "2023-02-15T16:03:40.947502Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.950388Z", "completed_at": "2023-02-15T16:03:40.950391Z"}], "thread_id": "Thread-4", "execution_time": 0.008462667465209961, "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": "2023-02-15T16:03:40.947269Z", "completed_at": "2023-02-15T16:03:40.950166Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.951155Z", "completed_at": "2023-02-15T16:03:40.951157Z"}], "thread_id": "Thread-1", "execution_time": 0.008545160293579102, "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": "2023-02-15T16:03:40.947343Z", "completed_at": "2023-02-15T16:03:40.950245Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.951229Z", "completed_at": "2023-02-15T16:03:40.951231Z"}], "thread_id": "Thread-2", "execution_time": 0.00859689712524414, "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": "2023-02-15T16:03:40.953765Z", "completed_at": "2023-02-15T16:03:40.957348Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.960186Z", "completed_at": "2023-02-15T16:03:40.960191Z"}], "thread_id": "Thread-3", "execution_time": 0.008362054824829102, "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": "2023-02-15T16:03:40.953853Z", "completed_at": "2023-02-15T16:03:40.957421Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.960255Z", "completed_at": "2023-02-15T16:03:40.960258Z"}], "thread_id": "Thread-4", "execution_time": 0.008310079574584961, "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": "2023-02-15T16:03:40.957202Z", "completed_at": "2023-02-15T16:03:40.960054Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.961008Z", "completed_at": "2023-02-15T16:03:40.961011Z"}], "thread_id": "Thread-1", "execution_time": 0.008376836776733398, "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": "2023-02-15T16:03:40.957280Z", "completed_at": "2023-02-15T16:03:40.960121Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.961081Z", "completed_at": "2023-02-15T16:03:40.961083Z"}], "thread_id": "Thread-2", "execution_time": 0.008435964584350586, "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": "2023-02-15T16:03:40.963885Z", "completed_at": "2023-02-15T16:03:40.967743Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.970642Z", "completed_at": "2023-02-15T16:03:40.970650Z"}], "thread_id": "Thread-3", "execution_time": 0.009029865264892578, "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": "2023-02-15T16:03:40.963971Z", "completed_at": "2023-02-15T16:03:40.967830Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.970743Z", "completed_at": "2023-02-15T16:03:40.970746Z"}], "thread_id": "Thread-4", "execution_time": 0.009117841720581055, "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": "2023-02-15T16:03:40.967586Z", "completed_at": "2023-02-15T16:03:40.970482Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.971588Z", "completed_at": "2023-02-15T16:03:40.971591Z"}], "thread_id": "Thread-1", "execution_time": 0.00947713851928711, "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": "2023-02-15T16:03:40.967662Z", "completed_at": "2023-02-15T16:03:40.970553Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.971675Z", "completed_at": "2023-02-15T16:03:40.971678Z"}], "thread_id": "Thread-2", "execution_time": 0.009578227996826172, "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": "2023-02-15T16:03:40.975155Z", "completed_at": "2023-02-15T16:03:40.979273Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.982701Z", "completed_at": "2023-02-15T16:03:40.982707Z"}], "thread_id": "Thread-3", "execution_time": 0.009908914566040039, "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": "2023-02-15T16:03:40.975242Z", "completed_at": "2023-02-15T16:03:40.979351Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.982781Z", "completed_at": "2023-02-15T16:03:40.982783Z"}], "thread_id": "Thread-4", "execution_time": 0.009940862655639648, "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": "2023-02-15T16:03:40.979105Z", "completed_at": "2023-02-15T16:03:40.982546Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.983732Z", "completed_at": "2023-02-15T16:03:40.983735Z"}], "thread_id": "Thread-1", "execution_time": 0.009871244430541992, "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": "2023-02-15T16:03:40.979202Z", "completed_at": "2023-02-15T16:03:40.982627Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.983810Z", "completed_at": "2023-02-15T16:03:40.983812Z"}], "thread_id": "Thread-2", "execution_time": 0.009924173355102539, "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": "2023-02-15T16:03:40.986435Z", "completed_at": "2023-02-15T16:03:40.990338Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.993395Z", "completed_at": "2023-02-15T16:03:40.993400Z"}], "thread_id": "Thread-3", "execution_time": 0.008891105651855469, "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": "2023-02-15T16:03:40.986510Z", "completed_at": "2023-02-15T16:03:40.990410Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.993465Z", "completed_at": "2023-02-15T16:03:40.993467Z"}], "thread_id": "Thread-4", "execution_time": 0.008930683135986328, "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": "2023-02-15T16:03:40.990185Z", "completed_at": "2023-02-15T16:03:40.993253Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.994236Z", "completed_at": "2023-02-15T16:03:40.994239Z"}], "thread_id": "Thread-1", "execution_time": 0.009042024612426758, "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": "2023-02-15T16:03:40.990268Z", "completed_at": "2023-02-15T16:03:40.993325Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:40.994310Z", "completed_at": "2023-02-15T16:03:40.994313Z"}], "thread_id": "Thread-2", "execution_time": 0.009103059768676758, "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": "2023-02-15T16:03:40.996887Z", "completed_at": "2023-02-15T16:03:40.999981Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.003684Z", "completed_at": "2023-02-15T16:03:41.003690Z"}], "thread_id": "Thread-3", "execution_time": 0.008673906326293945, "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": "2023-02-15T16:03:40.996959Z", "completed_at": "2023-02-15T16:03:41.000056Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.003755Z", "completed_at": "2023-02-15T16:03:41.003757Z"}], "thread_id": "Thread-4", "execution_time": 0.008735418319702148, "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": "2023-02-15T16:03:40.999809Z", "completed_at": "2023-02-15T16:03:41.003540Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.004530Z", "completed_at": "2023-02-15T16:03:41.004533Z"}], "thread_id": "Thread-1", "execution_time": 0.008873939514160156, "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": "2023-02-15T16:03:40.999882Z", "completed_at": "2023-02-15T16:03:41.003616Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.004602Z", "completed_at": "2023-02-15T16:03:41.004605Z"}], "thread_id": "Thread-2", "execution_time": 0.008954286575317383, "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": "2023-02-15T16:03:41.007410Z", "completed_at": "2023-02-15T16:03:41.010742Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.014438Z", "completed_at": "2023-02-15T16:03:41.014444Z"}], "thread_id": "Thread-3", "execution_time": 0.009137153625488281, "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": "2023-02-15T16:03:41.007485Z", "completed_at": "2023-02-15T16:03:41.010834Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.014516Z", "completed_at": "2023-02-15T16:03:41.014519Z"}], "thread_id": "Thread-4", "execution_time": 0.009153127670288086, "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": "2023-02-15T16:03:41.010547Z", "completed_at": "2023-02-15T16:03:41.014289Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.015337Z", "completed_at": "2023-02-15T16:03:41.015340Z"}], "thread_id": "Thread-1", "execution_time": 0.009203195571899414, "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": "2023-02-15T16:03:41.010630Z", "completed_at": "2023-02-15T16:03:41.014365Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.015415Z", "completed_at": "2023-02-15T16:03:41.015418Z"}], "thread_id": "Thread-2", "execution_time": 0.009270906448364258, "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": "2023-02-15T16:03:41.018111Z", "completed_at": "2023-02-15T16:03:41.021161Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.071034Z", "completed_at": "2023-02-15T16:03:41.071041Z"}], "thread_id": "Thread-3", "execution_time": 0.05493807792663574, "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": "2023-02-15T16:03:41.018187Z", "completed_at": "2023-02-15T16:03:41.021317Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.071114Z", "completed_at": "2023-02-15T16:03:41.071117Z"}], "thread_id": "Thread-4", "execution_time": 0.05500078201293945, "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": "2023-02-15T16:03:41.021020Z", "completed_at": "2023-02-15T16:03:41.070882Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.071935Z", "completed_at": "2023-02-15T16:03:41.071938Z"}], "thread_id": "Thread-1", "execution_time": 0.054924964904785156, "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": "2023-02-15T16:03:41.021093Z", "completed_at": "2023-02-15T16:03:41.070962Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.072007Z", "completed_at": "2023-02-15T16:03:41.072009Z"}], "thread_id": "Thread-2", "execution_time": 0.05518293380737305, "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": "2023-02-15T16:03:41.074668Z", "completed_at": "2023-02-15T16:03:41.077768Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.081264Z", "completed_at": "2023-02-15T16:03:41.081269Z"}], "thread_id": "Thread-3", "execution_time": 0.00848388671875, "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": "2023-02-15T16:03:41.074740Z", "completed_at": "2023-02-15T16:03:41.077841Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.081340Z", "completed_at": "2023-02-15T16:03:41.081343Z"}], "thread_id": "Thread-4", "execution_time": 0.008508920669555664, "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": "2023-02-15T16:03:41.077609Z", "completed_at": "2023-02-15T16:03:41.081128Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.082079Z", "completed_at": "2023-02-15T16:03:41.082082Z"}], "thread_id": "Thread-1", "execution_time": 0.008632183074951172, "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": "2023-02-15T16:03:41.077685Z", "completed_at": "2023-02-15T16:03:41.081196Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.082152Z", "completed_at": "2023-02-15T16:03:41.082154Z"}], "thread_id": "Thread-2", "execution_time": 0.008684158325195312, "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": "2023-02-15T16:03:41.084614Z", "completed_at": "2023-02-15T16:03:41.087567Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.090503Z", "completed_at": "2023-02-15T16:03:41.090507Z"}], "thread_id": "Thread-3", "execution_time": 0.007716655731201172, "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": "2023-02-15T16:03:41.084683Z", "completed_at": "2023-02-15T16:03:41.087641Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.090576Z", "completed_at": "2023-02-15T16:03:41.090578Z"}], "thread_id": "Thread-4", "execution_time": 0.007791042327880859, "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": "2023-02-15T16:03:41.087422Z", "completed_at": "2023-02-15T16:03:41.090354Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.091359Z", "completed_at": "2023-02-15T16:03:41.091362Z"}], "thread_id": "Thread-1", "execution_time": 0.007898092269897461, "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": "2023-02-15T16:03:41.087498Z", "completed_at": "2023-02-15T16:03:41.090432Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.091434Z", "completed_at": "2023-02-15T16:03:41.091436Z"}], "thread_id": "Thread-2", "execution_time": 0.007947921752929688, "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": "2023-02-15T16:03:41.093992Z", "completed_at": "2023-02-15T16:03:41.097890Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.100775Z", "completed_at": "2023-02-15T16:03:41.100780Z"}], "thread_id": "Thread-3", "execution_time": 0.00872492790222168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.094064Z", "completed_at": "2023-02-15T16:03:41.097964Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.100844Z", "completed_at": "2023-02-15T16:03:41.100846Z"}], "thread_id": "Thread-4", "execution_time": 0.008771181106567383, "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": "2023-02-15T16:03:41.097744Z", "completed_at": "2023-02-15T16:03:41.100637Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.101588Z", "completed_at": "2023-02-15T16:03:41.101590Z"}], "thread_id": "Thread-1", "execution_time": 0.008749961853027344, "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": "2023-02-15T16:03:41.097822Z", "completed_at": "2023-02-15T16:03:41.100707Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.101658Z", "completed_at": "2023-02-15T16:03:41.101660Z"}], "thread_id": "Thread-2", "execution_time": 0.008791923522949219, "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": "2023-02-15T16:03:41.104068Z", "completed_at": "2023-02-15T16:03:41.107762Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.110606Z", "completed_at": "2023-02-15T16:03:41.110610Z"}], "thread_id": "Thread-3", "execution_time": 0.008365869522094727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.104138Z", "completed_at": "2023-02-15T16:03:41.107835Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.110674Z", "completed_at": "2023-02-15T16:03:41.110676Z"}], "thread_id": "Thread-4", "execution_time": 0.008477926254272461, "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": "2023-02-15T16:03:41.107618Z", "completed_at": "2023-02-15T16:03:41.110472Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.111476Z", "completed_at": "2023-02-15T16:03:41.111478Z"}], "thread_id": "Thread-1", "execution_time": 0.008556127548217773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.snapchat_creative_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.107693Z", "completed_at": "2023-02-15T16:03:41.110541Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.111548Z", "completed_at": "2023-02-15T16:03:41.111551Z"}], "thread_id": "Thread-2", "execution_time": 0.008599042892456055, "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": "2023-02-15T16:03:41.114133Z", "completed_at": "2023-02-15T16:03:41.117863Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.120698Z", "completed_at": "2023-02-15T16:03:41.120702Z"}], "thread_id": "Thread-3", "execution_time": 0.008567094802856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_ad_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.114209Z", "completed_at": "2023-02-15T16:03:41.117935Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.120765Z", "completed_at": "2023-02-15T16:03:41.120767Z"}], "thread_id": "Thread-4", "execution_time": 0.008627176284790039, "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": "2023-02-15T16:03:41.117721Z", "completed_at": "2023-02-15T16:03:41.120561Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.121517Z", "completed_at": "2023-02-15T16:03:41.121520Z"}], "thread_id": "Thread-1", "execution_time": 0.00865936279296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_adgroup_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.117798Z", "completed_at": "2023-02-15T16:03:41.120631Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.121654Z", "completed_at": "2023-02-15T16:03:41.121656Z"}], "thread_id": "Thread-2", "execution_time": 0.008661985397338867, "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": "2023-02-15T16:03:41.124081Z", "completed_at": "2023-02-15T16:03:41.127822Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.130988Z", "completed_at": "2023-02-15T16:03:41.130993Z"}], "thread_id": "Thread-3", "execution_time": 0.00893402099609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_advertiser_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.124150Z", "completed_at": "2023-02-15T16:03:41.127890Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.131068Z", "completed_at": "2023-02-15T16:03:41.131071Z"}], "thread_id": "Thread-4", "execution_time": 0.009068012237548828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.tiktok_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.127680Z", "completed_at": "2023-02-15T16:03:41.130807Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.132087Z", "completed_at": "2023-02-15T16:03:41.132091Z"}], "thread_id": "Thread-1", "execution_time": 0.009387969970703125, "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": "2023-02-15T16:03:41.127753Z", "completed_at": "2023-02-15T16:03:41.130913Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.132170Z", "completed_at": "2023-02-15T16:03:41.132173Z"}], "thread_id": "Thread-2", "execution_time": 0.00950312614440918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.135425Z", "completed_at": "2023-02-15T16:03:41.139846Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.143204Z", "completed_at": "2023-02-15T16:03:41.143210Z"}], "thread_id": "Thread-3", "execution_time": 0.010180234909057617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_account_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.135543Z", "completed_at": "2023-02-15T16:03:41.139924Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.143278Z", "completed_at": "2023-02-15T16:03:41.143280Z"}], "thread_id": "Thread-4", "execution_time": 0.010046958923339844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_history_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.139681Z", "completed_at": "2023-02-15T16:03:41.143054Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.144116Z", "completed_at": "2023-02-15T16:03:41.144119Z"}], "thread_id": "Thread-1", "execution_time": 0.010085821151733398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_campaign_report_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.139772Z", "completed_at": "2023-02-15T16:03:41.143134Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.144197Z", "completed_at": "2023-02-15T16:03:41.144200Z"}], "thread_id": "Thread-2", "execution_time": 0.010083913803100586, "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": "2023-02-15T16:03:41.147004Z", "completed_at": "2023-02-15T16:03:41.150126Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.153890Z", "completed_at": "2023-02-15T16:03:41.153894Z"}], "thread_id": "Thread-3", "execution_time": 0.008966207504272461, "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": "2023-02-15T16:03:41.147078Z", "completed_at": "2023-02-15T16:03:41.150201Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.153958Z", "completed_at": "2023-02-15T16:03:41.153961Z"}], "thread_id": "Thread-4", "execution_time": 0.009005069732666016, "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": "2023-02-15T16:03:41.149952Z", "completed_at": "2023-02-15T16:03:41.153752Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.154712Z", "completed_at": "2023-02-15T16:03:41.154714Z"}], "thread_id": "Thread-1", "execution_time": 0.009008169174194336, "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": "2023-02-15T16:03:41.150041Z", "completed_at": "2023-02-15T16:03:41.153824Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.154784Z", "completed_at": "2023-02-15T16:03:41.154786Z"}], "thread_id": "Thread-2", "execution_time": 0.008907794952392578, "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": "2023-02-15T16:03:41.157213Z", "completed_at": "2023-02-15T16:03:41.160260Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.172190Z", "completed_at": "2023-02-15T16:03:41.172196Z"}], "thread_id": "Thread-3", "execution_time": 0.01681208610534668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.157286Z", "completed_at": "2023-02-15T16:03:41.160332Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.172263Z", "completed_at": "2023-02-15T16:03:41.172265Z"}], "thread_id": "Thread-4", "execution_time": 0.01689004898071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.ad_reporting_integration_tests.twitter_tweet_url_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.160122Z", "completed_at": "2023-02-15T16:03:41.562305Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.562484Z", "completed_at": "2023-02-15T16:03:41.562491Z"}], "thread_id": "Thread-1", "execution_time": 0.4487171173095703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.160194Z", "completed_at": "2023-02-15T16:03:41.608587Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.609465Z", "completed_at": "2023-02-15T16:03:41.609469Z"}], "thread_id": "Thread-2", "execution_time": 0.4840970039367676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.174379Z", "completed_at": "2023-02-15T16:03:41.609384Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.614450Z", "completed_at": "2023-02-15T16:03:41.614456Z"}], "thread_id": "Thread-4", "execution_time": 0.47426319122314453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.174307Z", "completed_at": "2023-02-15T16:03:41.622424Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.622620Z", "completed_at": "2023-02-15T16:03:41.622624Z"}], "thread_id": "Thread-3", "execution_time": 0.47528982162475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.609538Z", "completed_at": "2023-02-15T16:03:41.947798Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.947982Z", "completed_at": "2023-02-15T16:03:41.947989Z"}], "thread_id": "Thread-1", "execution_time": 0.3689701557159424, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.641748Z", "completed_at": "2023-02-15T16:03:41.963408Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:41.963588Z", "completed_at": "2023-02-15T16:03:41.963594Z"}], "thread_id": "Thread-2", "execution_time": 0.38679981231689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.654563Z", "completed_at": "2023-02-15T16:03:42.057232Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.057406Z", "completed_at": "2023-02-15T16:03:42.057413Z"}], "thread_id": "Thread-3", "execution_time": 0.4384148120880127, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.649703Z", "completed_at": "2023-02-15T16:03:42.068048Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.068219Z", "completed_at": "2023-02-15T16:03:42.068225Z"}], "thread_id": "Thread-4", "execution_time": 0.44847583770751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:41.978410Z", "completed_at": "2023-02-15T16:03:42.309278Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.309452Z", "completed_at": "2023-02-15T16:03:42.309458Z"}], "thread_id": "Thread-1", "execution_time": 0.3536081314086914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:42.029001Z", "completed_at": "2023-02-15T16:03:42.321940Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.322125Z", "completed_at": "2023-02-15T16:03:42.322130Z"}], "thread_id": "Thread-2", "execution_time": 0.319843053817749, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:42.097991Z", "completed_at": "2023-02-15T16:03:42.382593Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.382785Z", "completed_at": "2023-02-15T16:03:42.382792Z"}], "thread_id": "Thread-4", "execution_time": 0.31310391426086426, "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": "2023-02-15T16:03:42.089161Z", "completed_at": "2023-02-15T16:03:42.382950Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.383113Z", "completed_at": "2023-02-15T16:03:42.383116Z"}], "thread_id": "Thread-3", "execution_time": 0.32221174240112305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:42.348984Z", "completed_at": "2023-02-15T16:03:42.602330Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.602607Z", "completed_at": "2023-02-15T16:03:42.602615Z"}], "thread_id": "Thread-2", "execution_time": 0.29137182235717773, "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": "2023-02-15T16:03:42.333456Z", "completed_at": "2023-02-15T16:03:42.602863Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.603050Z", "completed_at": "2023-02-15T16:03:42.603053Z"}], "thread_id": "Thread-1", "execution_time": 0.3121829032897949, "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": "2023-02-15T16:03:42.412667Z", "completed_at": "2023-02-15T16:03:42.667632Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.667805Z", "completed_at": "2023-02-15T16:03:42.667812Z"}], "thread_id": "Thread-3", "execution_time": 0.2937350273132324, "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": "2023-02-15T16:03:42.412592Z", "completed_at": "2023-02-15T16:03:42.706188Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.706793Z", "completed_at": "2023-02-15T16:03:42.706797Z"}], "thread_id": "Thread-4", "execution_time": 0.3249049186706543, "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": "2023-02-15T16:03:42.644337Z", "completed_at": "2023-02-15T16:03:42.921148Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.921669Z", "completed_at": "2023-02-15T16:03:42.921679Z"}], "thread_id": "Thread-2", "execution_time": 0.305203914642334, "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": "2023-02-15T16:03:42.651100Z", "completed_at": "2023-02-15T16:03:42.921311Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.921776Z", "completed_at": "2023-02-15T16:03:42.921779Z"}], "thread_id": "Thread-1", "execution_time": 0.29696106910705566, "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": "2023-02-15T16:03:42.706875Z", "completed_at": "2023-02-15T16:03:42.964250Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:42.964632Z", "completed_at": "2023-02-15T16:03:42.964640Z"}], "thread_id": "Thread-3", "execution_time": 0.2825050354003906, "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": "2023-02-15T16:03:42.737679Z", "completed_at": "2023-02-15T16:03:43.001465Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.001653Z", "completed_at": "2023-02-15T16:03:43.001659Z"}], "thread_id": "Thread-4", "execution_time": 0.2889389991760254, "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": "2023-02-15T16:03:42.948597Z", "completed_at": "2023-02-15T16:03:43.261506Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.262091Z", "completed_at": "2023-02-15T16:03:43.262099Z"}], "thread_id": "Thread-1", "execution_time": 0.3394801616668701, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:42.989805Z", "completed_at": "2023-02-15T16:03:43.261984Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.262508Z", "completed_at": "2023-02-15T16:03:43.262511Z"}], "thread_id": "Thread-3", "execution_time": 0.29933786392211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:42.948522Z", "completed_at": "2023-02-15T16:03:43.261602Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.262173Z", "completed_at": "2023-02-15T16:03:43.262177Z"}], "thread_id": "Thread-2", "execution_time": 0.341123104095459, "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": "2023-02-15T16:03:43.026912Z", "completed_at": "2023-02-15T16:03:43.306705Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.311406Z", "completed_at": "2023-02-15T16:03:43.311412Z"}], "thread_id": "Thread-4", "execution_time": 0.30931997299194336, "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": "2023-02-15T16:03:43.301614Z", "completed_at": "2023-02-15T16:03:43.558324Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.558506Z", "completed_at": "2023-02-15T16:03:43.558513Z"}], "thread_id": "Thread-3", "execution_time": 0.29133009910583496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:43.301844Z", "completed_at": "2023-02-15T16:03:43.558674Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.558840Z", "completed_at": "2023-02-15T16:03:43.558844Z"}], "thread_id": "Thread-2", "execution_time": 0.2925601005554199, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:43.289218Z", "completed_at": "2023-02-15T16:03:43.558991Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.559130Z", "completed_at": "2023-02-15T16:03:43.559133Z"}], "thread_id": "Thread-1", "execution_time": 0.30438780784606934, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:43.336784Z", "completed_at": "2023-02-15T16:03:43.605253Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.605418Z", "completed_at": "2023-02-15T16:03:43.605424Z"}], "thread_id": "Thread-4", "execution_time": 0.2916078567504883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:43.593459Z", "completed_at": "2023-02-15T16:03:43.842630Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.843184Z", "completed_at": "2023-02-15T16:03:43.843191Z"}], "thread_id": "Thread-1", "execution_time": 0.273252010345459, "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": "2023-02-15T16:03:43.587830Z", "completed_at": "2023-02-15T16:03:43.843002Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.843631Z", "completed_at": "2023-02-15T16:03:43.843635Z"}], "thread_id": "Thread-2", "execution_time": 0.2860689163208008, "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": "2023-02-15T16:03:43.581848Z", "completed_at": "2023-02-15T16:03:43.843247Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.843740Z", "completed_at": "2023-02-15T16:03:43.843743Z"}], "thread_id": "Thread-3", "execution_time": 0.29278993606567383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:43.629000Z", "completed_at": "2023-02-15T16:03:43.891974Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:43.892155Z", "completed_at": "2023-02-15T16:03:43.892162Z"}], "thread_id": "Thread-4", "execution_time": 0.28844499588012695, "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": "2023-02-15T16:03:43.917693Z", "completed_at": "2023-02-15T16:03:44.184009Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.184634Z", "completed_at": "2023-02-15T16:03:44.184636Z"}], "thread_id": "Thread-4", "execution_time": 0.2905910015106201, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:43.866980Z", "completed_at": "2023-02-15T16:03:44.183552Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.184083Z", "completed_at": "2023-02-15T16:03:44.184091Z"}], "thread_id": "Thread-1", "execution_time": 0.347973108291626, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:43.875265Z", "completed_at": "2023-02-15T16:03:44.183829Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.184494Z", "completed_at": "2023-02-15T16:03:44.184497Z"}], "thread_id": "Thread-2", "execution_time": 0.3404510021209717, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:43.875339Z", "completed_at": "2023-02-15T16:03:44.183898Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.184564Z", "completed_at": "2023-02-15T16:03:44.184566Z"}], "thread_id": "Thread-3", "execution_time": 0.3406100273132324, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:44.208895Z", "completed_at": "2023-02-15T16:03:44.471062Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.471432Z", "completed_at": "2023-02-15T16:03:44.471434Z"}], "thread_id": "Thread-4", "execution_time": 0.28951287269592285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:44.217965Z", "completed_at": "2023-02-15T16:03:44.470936Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.471353Z", "completed_at": "2023-02-15T16:03:44.471360Z"}], "thread_id": "Thread-1", "execution_time": 0.2813608646392822, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:44.218107Z", "completed_at": "2023-02-15T16:03:44.497175Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.497708Z", "completed_at": "2023-02-15T16:03:44.497715Z"}], "thread_id": "Thread-3", "execution_time": 0.30655694007873535, "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": "2023-02-15T16:03:44.218038Z", "completed_at": "2023-02-15T16:03:44.497645Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.499194Z", "completed_at": "2023-02-15T16:03:44.499197Z"}], "thread_id": "Thread-2", "execution_time": 0.308042049407959, "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": "2023-02-15T16:03:44.500111Z", "completed_at": "2023-02-15T16:03:44.754652Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.754824Z", "completed_at": "2023-02-15T16:03:44.754831Z"}], "thread_id": "Thread-4", "execution_time": 0.29248881340026855, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:44.525066Z", "completed_at": "2023-02-15T16:03:44.792019Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.792781Z", "completed_at": "2023-02-15T16:03:44.792786Z"}], "thread_id": "Thread-3", "execution_time": 0.34470200538635254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:44.531887Z", "completed_at": "2023-02-15T16:03:44.870074Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.874854Z", "completed_at": "2023-02-15T16:03:44.874859Z"}], "thread_id": "Thread-2", "execution_time": 0.3681941032409668, "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": "2023-02-15T16:03:44.500189Z", "completed_at": "2023-02-15T16:03:44.869863Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:44.870396Z", "completed_at": "2023-02-15T16:03:44.870401Z"}], "thread_id": "Thread-1", "execution_time": 0.4065070152282715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:44.793013Z", "completed_at": "2023-02-15T16:03:45.123294Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.123466Z", "completed_at": "2023-02-15T16:03:45.123473Z"}], "thread_id": "Thread-4", "execution_time": 0.35294485092163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:44.900152Z", "completed_at": "2023-02-15T16:03:45.184826Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.185094Z", "completed_at": "2023-02-15T16:03:45.185105Z"}], "thread_id": "Thread-2", "execution_time": 0.3098180294036865, "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": "2023-02-15T16:03:44.870248Z", "completed_at": "2023-02-15T16:03:45.185349Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.185513Z", "completed_at": "2023-02-15T16:03:45.185516Z"}], "thread_id": "Thread-3", "execution_time": 0.34639620780944824, "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": "2023-02-15T16:03:44.906975Z", "completed_at": "2023-02-15T16:03:45.194166Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.194335Z", "completed_at": "2023-02-15T16:03:45.194339Z"}], "thread_id": "Thread-1", "execution_time": 0.31548023223876953, "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": "2023-02-15T16:03:45.146369Z", "completed_at": "2023-02-15T16:03:45.420359Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.420962Z", "completed_at": "2023-02-15T16:03:45.420979Z"}], "thread_id": "Thread-4", "execution_time": 0.3003871440887451, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:45.216943Z", "completed_at": "2023-02-15T16:03:45.479936Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.480321Z", "completed_at": "2023-02-15T16:03:45.480328Z"}], "thread_id": "Thread-3", "execution_time": 0.2878148555755615, "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": "2023-02-15T16:03:45.210275Z", "completed_at": "2023-02-15T16:03:45.480020Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.480467Z", "completed_at": "2023-02-15T16:03:45.480470Z"}], "thread_id": "Thread-2", "execution_time": 0.2999081611633301, "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": "2023-02-15T16:03:45.222867Z", "completed_at": "2023-02-15T16:03:45.480171Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.480620Z", "completed_at": "2023-02-15T16:03:45.480622Z"}], "thread_id": "Thread-1", "execution_time": 0.2877161502838135, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:45.446933Z", "completed_at": "2023-02-15T16:03:45.698344Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.699167Z", "completed_at": "2023-02-15T16:03:45.699185Z"}], "thread_id": "Thread-4", "execution_time": 0.27889299392700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:45.511808Z", "completed_at": "2023-02-15T16:03:45.766879Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.767072Z", "completed_at": "2023-02-15T16:03:45.767079Z"}], "thread_id": "Thread-1", "execution_time": 0.28051280975341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:45.505036Z", "completed_at": "2023-02-15T16:03:45.785309Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.785495Z", "completed_at": "2023-02-15T16:03:45.785501Z"}], "thread_id": "Thread-3", "execution_time": 0.3062269687652588, "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": "2023-02-15T16:03:45.511739Z", "completed_at": "2023-02-15T16:03:45.785662Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:45.785822Z", "completed_at": "2023-02-15T16:03:45.785825Z"}], "thread_id": "Thread-2", "execution_time": 0.3051772117614746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:45.729501Z", "completed_at": "2023-02-15T16:03:46.007014Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.007255Z", "completed_at": "2023-02-15T16:03:46.007263Z"}], "thread_id": "Thread-4", "execution_time": 0.3074178695678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:45.792588Z", "completed_at": "2023-02-15T16:03:46.051718Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.052159Z", "completed_at": "2023-02-15T16:03:46.052166Z"}], "thread_id": "Thread-1", "execution_time": 0.2853810787200928, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:45.811219Z", "completed_at": "2023-02-15T16:03:46.052226Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.052620Z", "completed_at": "2023-02-15T16:03:46.052624Z"}], "thread_id": "Thread-3", "execution_time": 0.2679862976074219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:45.816991Z", "completed_at": "2023-02-15T16:03:46.099494Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.099667Z", "completed_at": "2023-02-15T16:03:46.099673Z"}], "thread_id": "Thread-2", "execution_time": 0.30666184425354004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:46.036250Z", "completed_at": "2023-02-15T16:03:46.301306Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.301476Z", "completed_at": "2023-02-15T16:03:46.301483Z"}], "thread_id": "Thread-4", "execution_time": 0.2981393337249756, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:46.079057Z", "completed_at": "2023-02-15T16:03:46.334179Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.335249Z", "completed_at": "2023-02-15T16:03:46.335254Z"}], "thread_id": "Thread-1", "execution_time": 0.281203031539917, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:46.085251Z", "completed_at": "2023-02-15T16:03:46.335161Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.335704Z", "completed_at": "2023-02-15T16:03:46.335707Z"}], "thread_id": "Thread-3", "execution_time": 0.28160977363586426, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:46.123852Z", "completed_at": "2023-02-15T16:03:46.431550Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.431737Z", "completed_at": "2023-02-15T16:03:46.431744Z"}], "thread_id": "Thread-2", "execution_time": 0.33545780181884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:46.360097Z", "completed_at": "2023-02-15T16:03:46.628403Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.628911Z", "completed_at": "2023-02-15T16:03:46.628914Z"}], "thread_id": "Thread-1", "execution_time": 0.29384398460388184, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:46.367251Z", "completed_at": "2023-02-15T16:03:46.628335Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.628816Z", "completed_at": "2023-02-15T16:03:46.628819Z"}], "thread_id": "Thread-3", "execution_time": 0.28711700439453125, "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": "2023-02-15T16:03:46.335626Z", "completed_at": "2023-02-15T16:03:46.628018Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.628268Z", "completed_at": "2023-02-15T16:03:46.628276Z"}], "thread_id": "Thread-4", "execution_time": 0.32089924812316895, "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": "2023-02-15T16:03:46.459931Z", "completed_at": "2023-02-15T16:03:46.768299Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.768485Z", "completed_at": "2023-02-15T16:03:46.768491Z"}], "thread_id": "Thread-2", "execution_time": 0.33356785774230957, "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": "2023-02-15T16:03:46.656392Z", "completed_at": "2023-02-15T16:03:46.908415Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.908687Z", "completed_at": "2023-02-15T16:03:46.908695Z"}], "thread_id": "Thread-1", "execution_time": 0.279217004776001, "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": "2023-02-15T16:03:46.667586Z", "completed_at": "2023-02-15T16:03:46.928481Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.928659Z", "completed_at": "2023-02-15T16:03:46.928665Z"}], "thread_id": "Thread-4", "execution_time": 0.2952079772949219, "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": "2023-02-15T16:03:46.656765Z", "completed_at": "2023-02-15T16:03:46.947655Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:46.947842Z", "completed_at": "2023-02-15T16:03:46.947849Z"}], "thread_id": "Thread-3", "execution_time": 0.3186478614807129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:46.794286Z", "completed_at": "2023-02-15T16:03:47.034228Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.034419Z", "completed_at": "2023-02-15T16:03:47.034426Z"}], "thread_id": "Thread-2", "execution_time": 0.26849794387817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:46.935013Z", "completed_at": "2023-02-15T16:03:47.182281Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.182460Z", "completed_at": "2023-02-15T16:03:47.182466Z"}], "thread_id": "Thread-1", "execution_time": 0.28397512435913086, "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": "2023-02-15T16:03:46.952641Z", "completed_at": "2023-02-15T16:03:47.218296Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.219390Z", "completed_at": "2023-02-15T16:03:47.219396Z"}], "thread_id": "Thread-4", "execution_time": 0.2929410934448242, "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": "2023-02-15T16:03:46.975378Z", "completed_at": "2023-02-15T16:03:47.219472Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.220121Z", "completed_at": "2023-02-15T16:03:47.220124Z"}], "thread_id": "Thread-3", "execution_time": 0.2766749858856201, "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": "2023-02-15T16:03:47.062890Z", "completed_at": "2023-02-15T16:03:47.318646Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.318830Z", "completed_at": "2023-02-15T16:03:47.318841Z"}], "thread_id": "Thread-2", "execution_time": 0.2818570137023926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:47.220199Z", "completed_at": "2023-02-15T16:03:47.537313Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.537498Z", "completed_at": "2023-02-15T16:03:47.537506Z"}], "thread_id": "Thread-1", "execution_time": 0.34583306312561035, "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": "2023-02-15T16:03:47.245844Z", "completed_at": "2023-02-15T16:03:47.587730Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.588118Z", "completed_at": "2023-02-15T16:03:47.588120Z"}], "thread_id": "Thread-4", "execution_time": 0.36809706687927246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:47.252646Z", "completed_at": "2023-02-15T16:03:47.587497Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.588034Z", "completed_at": "2023-02-15T16:03:47.588042Z"}], "thread_id": "Thread-3", "execution_time": 0.36179089546203613, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:47.345450Z", "completed_at": "2023-02-15T16:03:47.647059Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.647304Z", "completed_at": "2023-02-15T16:03:47.647315Z"}], "thread_id": "Thread-2", "execution_time": 0.32634592056274414, "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": "2023-02-15T16:03:47.566704Z", "completed_at": "2023-02-15T16:03:47.817992Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.818169Z", "completed_at": "2023-02-15T16:03:47.818176Z"}], "thread_id": "Thread-1", "execution_time": 0.2767322063446045, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:47.615743Z", "completed_at": "2023-02-15T16:03:47.873949Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.874143Z", "completed_at": "2023-02-15T16:03:47.874150Z"}], "thread_id": "Thread-4", "execution_time": 0.28267431259155273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:47.615826Z", "completed_at": "2023-02-15T16:03:47.942556Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.942911Z", "completed_at": "2023-02-15T16:03:47.942915Z"}], "thread_id": "Thread-3", "execution_time": 0.35284900665283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:47.672412Z", "completed_at": "2023-02-15T16:03:47.942424Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:47.942812Z", "completed_at": "2023-02-15T16:03:47.942819Z"}], "thread_id": "Thread-2", "execution_time": 0.29648280143737793, "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": "2023-02-15T16:03:47.843845Z", "completed_at": "2023-02-15T16:03:48.135451Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.135662Z", "completed_at": "2023-02-15T16:03:48.135670Z"}], "thread_id": "Thread-1", "execution_time": 0.318861722946167, "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": "2023-02-15T16:03:47.898325Z", "completed_at": "2023-02-15T16:03:48.150977Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.151157Z", "completed_at": "2023-02-15T16:03:48.151163Z"}], "thread_id": "Thread-4", "execution_time": 0.2779252529144287, "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": "2023-02-15T16:03:48.176850Z", "completed_at": "2023-02-15T16:03:48.185787Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.185971Z", "completed_at": "2023-02-15T16:03:48.185977Z"}], "thread_id": "Thread-4", "execution_time": 0.009763956069946289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.187151Z", "completed_at": "2023-02-15T16:03:48.192741Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.192923Z", "completed_at": "2023-02-15T16:03:48.192930Z"}], "thread_id": "Thread-4", "execution_time": 0.006424903869628906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.198665Z", "completed_at": "2023-02-15T16:03:48.203176Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.203338Z", "completed_at": "2023-02-15T16:03:48.203341Z"}], "thread_id": "Thread-4", "execution_time": 0.005475044250488281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.204304Z", "completed_at": "2023-02-15T16:03:48.213911Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.214330Z", "completed_at": "2023-02-15T16:03:48.214338Z"}], "thread_id": "Thread-4", "execution_time": 0.010797977447509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.215997Z", "completed_at": "2023-02-15T16:03:48.220169Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.220351Z", "completed_at": "2023-02-15T16:03:48.220357Z"}], "thread_id": "Thread-4", "execution_time": 0.005097150802612305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:47.969920Z", "completed_at": "2023-02-15T16:03:48.202269Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.202606Z", "completed_at": "2023-02-15T16:03:48.202613Z"}], "thread_id": "Thread-2", "execution_time": 0.25662708282470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.221550Z", "completed_at": "2023-02-15T16:03:48.225742Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.226801Z", "completed_at": "2023-02-15T16:03:48.226807Z"}], "thread_id": "Thread-4", "execution_time": 0.006264925003051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.228491Z", "completed_at": "2023-02-15T16:03:48.237692Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.238155Z", "completed_at": "2023-02-15T16:03:48.238168Z"}], "thread_id": "Thread-2", "execution_time": 0.011226892471313477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:47.969847Z", "completed_at": "2023-02-15T16:03:48.214204Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.214978Z", "completed_at": "2023-02-15T16:03:48.214983Z"}], "thread_id": "Thread-3", "execution_time": 0.2702169418334961, "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": "2023-02-15T16:03:48.232980Z", "completed_at": "2023-02-15T16:03:48.237998Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.239087Z", "completed_at": "2023-02-15T16:03:48.239095Z"}], "thread_id": "Thread-4", "execution_time": 0.011960983276367188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.242756Z", "completed_at": "2023-02-15T16:03:48.254428Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.254895Z", "completed_at": "2023-02-15T16:03:48.254903Z"}], "thread_id": "Thread-2", "execution_time": 0.014127016067504883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.246912Z", "completed_at": "2023-02-15T16:03:48.255709Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.256578Z", "completed_at": "2023-02-15T16:03:48.256581Z"}], "thread_id": "Thread-4", "execution_time": 0.014911890029907227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.243004Z", "completed_at": "2023-02-15T16:03:48.255634Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.256499Z", "completed_at": "2023-02-15T16:03:48.256503Z"}], "thread_id": "Thread-3", "execution_time": 0.015074729919433594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.256655Z", "completed_at": "2023-02-15T16:03:48.267530Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.268059Z", "completed_at": "2023-02-15T16:03:48.268067Z"}], "thread_id": "Thread-2", "execution_time": 0.015151023864746094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.263625Z", "completed_at": "2023-02-15T16:03:48.268131Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.271705Z", "completed_at": "2023-02-15T16:03:48.271710Z"}], "thread_id": "Thread-4", "execution_time": 0.015005350112915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.267944Z", "completed_at": "2023-02-15T16:03:48.272187Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.273038Z", "completed_at": "2023-02-15T16:03:48.273042Z"}], "thread_id": "Thread-3", "execution_time": 0.01441192626953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.272831Z", "completed_at": "2023-02-15T16:03:48.279381Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.284474Z", "completed_at": "2023-02-15T16:03:48.284480Z"}], "thread_id": "Thread-2", "execution_time": 0.01588606834411621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.278977Z", "completed_at": "2023-02-15T16:03:48.287413Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.288392Z", "completed_at": "2023-02-15T16:03:48.288396Z"}], "thread_id": "Thread-4", "execution_time": 0.0158998966217041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.284361Z", "completed_at": "2023-02-15T16:03:48.288220Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.289259Z", "completed_at": "2023-02-15T16:03:48.289262Z"}], "thread_id": "Thread-3", "execution_time": 0.01081705093383789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.289586Z", "completed_at": "2023-02-15T16:03:48.298657Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.303916Z", "completed_at": "2023-02-15T16:03:48.303926Z"}], "thread_id": "Thread-2", "execution_time": 0.019887924194335938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.298591Z", "completed_at": "2023-02-15T16:03:48.308596Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.309542Z", "completed_at": "2023-02-15T16:03:48.309546Z"}], "thread_id": "Thread-4", "execution_time": 0.019861936569213867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__portfolio_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.303727Z", "completed_at": "2023-02-15T16:03:48.309162Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.310159Z", "completed_at": "2023-02-15T16:03:48.310163Z"}], "thread_id": "Thread-3", "execution_time": 0.01246786117553711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.310243Z", "completed_at": "2023-02-15T16:03:48.315861Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.319755Z", "completed_at": "2023-02-15T16:03:48.319763Z"}], "thread_id": "Thread-2", "execution_time": 0.01464390754699707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.315794Z", "completed_at": "2023-02-15T16:03:48.323616Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.324945Z", "completed_at": "2023-02-15T16:03:48.324951Z"}], "thread_id": "Thread-4", "execution_time": 0.010805845260620117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.319583Z", "completed_at": "2023-02-15T16:03:48.324854Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.325807Z", "completed_at": "2023-02-15T16:03:48.325811Z"}], "thread_id": "Thread-3", "execution_time": 0.010847806930541992, "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": "2023-02-15T16:03:48.326110Z", "completed_at": "2023-02-15T16:03:48.331814Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.335579Z", "completed_at": "2023-02-15T16:03:48.335588Z"}], "thread_id": "Thread-2", "execution_time": 0.014742612838745117, "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": "2023-02-15T16:03:48.331728Z", "completed_at": "2023-02-15T16:03:48.340028Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.341428Z", "completed_at": "2023-02-15T16:03:48.341435Z"}], "thread_id": "Thread-4", "execution_time": 0.015469074249267578, "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": "2023-02-15T16:03:48.335438Z", "completed_at": "2023-02-15T16:03:48.340390Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.341612Z", "completed_at": "2023-02-15T16:03:48.341615Z"}], "thread_id": "Thread-3", "execution_time": 0.011213064193725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.342187Z", "completed_at": "2023-02-15T16:03:48.347537Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.412983Z", "completed_at": "2023-02-15T16:03:48.412992Z"}], "thread_id": "Thread-2", "execution_time": 0.07552003860473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.347753Z", "completed_at": "2023-02-15T16:03:48.416734Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.417710Z", "completed_at": "2023-02-15T16:03:48.417715Z"}], "thread_id": "Thread-4", "execution_time": 0.07148385047912598, "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": "2023-02-15T16:03:48.348099Z", "completed_at": "2023-02-15T16:03:48.417067Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.417859Z", "completed_at": "2023-02-15T16:03:48.417861Z"}], "thread_id": "Thread-3", "execution_time": 0.07139873504638672, "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": "2023-02-15T16:03:48.418203Z", "completed_at": "2023-02-15T16:03:48.422538Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.429538Z", "completed_at": "2023-02-15T16:03:48.429546Z"}], "thread_id": "Thread-2", "execution_time": 0.012517929077148438, "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": "2023-02-15T16:03:48.422689Z", "completed_at": "2023-02-15T16:03:48.430297Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.430935Z", "completed_at": "2023-02-15T16:03:48.430939Z"}], "thread_id": "Thread-3", "execution_time": 0.009343862533569336, "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": "2023-02-15T16:03:48.422613Z", "completed_at": "2023-02-15T16:03:48.430359Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.431015Z", "completed_at": "2023-02-15T16:03:48.431017Z"}], "thread_id": "Thread-4", "execution_time": 0.009965181350708008, "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": "2023-02-15T16:03:48.431182Z", "completed_at": "2023-02-15T16:03:48.436480Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.440653Z", "completed_at": "2023-02-15T16:03:48.440664Z"}], "thread_id": "Thread-2", "execution_time": 0.013422250747680664, "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": "2023-02-15T16:03:48.436651Z", "completed_at": "2023-02-15T16:03:48.444265Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.444895Z", "completed_at": "2023-02-15T16:03:48.444899Z"}], "thread_id": "Thread-3", "execution_time": 0.009496927261352539, "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": "2023-02-15T16:03:48.436811Z", "completed_at": "2023-02-15T16:03:48.444571Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.445052Z", "completed_at": "2023-02-15T16:03:48.445054Z"}], "thread_id": "Thread-4", "execution_time": 0.013133764266967773, "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": "2023-02-15T16:03:48.444971Z", "completed_at": "2023-02-15T16:03:48.459574Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.460409Z", "completed_at": "2023-02-15T16:03:48.460414Z"}], "thread_id": "Thread-2", "execution_time": 0.02029109001159668, "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": "2023-02-15T16:03:48.460337Z", "completed_at": "2023-02-15T16:03:48.468090Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.468754Z", "completed_at": "2023-02-15T16:03:48.468758Z"}], "thread_id": "Thread-3", "execution_time": 0.009782791137695312, "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": "2023-02-15T16:03:48.460486Z", "completed_at": "2023-02-15T16:03:48.468411Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.468902Z", "completed_at": "2023-02-15T16:03:48.468904Z"}], "thread_id": "Thread-4", "execution_time": 0.012515783309936523, "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": "2023-02-15T16:03:48.468830Z", "completed_at": "2023-02-15T16:03:48.473528Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.474074Z", "completed_at": "2023-02-15T16:03:48.474079Z"}], "thread_id": "Thread-2", "execution_time": 0.013478994369506836, "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": "2023-02-15T16:03:48.473992Z", "completed_at": "2023-02-15T16:03:48.482783Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.483333Z", "completed_at": "2023-02-15T16:03:48.483338Z"}], "thread_id": "Thread-4", "execution_time": 0.013340234756469727, "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": "2023-02-15T16:03:48.473911Z", "completed_at": "2023-02-15T16:03:48.482956Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.486375Z", "completed_at": "2023-02-15T16:03:48.486380Z"}], "thread_id": "Thread-3", "execution_time": 0.014037847518920898, "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": "2023-02-15T16:03:48.483137Z", "completed_at": "2023-02-15T16:03:48.487564Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.488462Z", "completed_at": "2023-02-15T16:03:48.488467Z"}], "thread_id": "Thread-2", "execution_time": 0.0065648555755615234, "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": "2023-02-15T16:03:48.163448Z", "completed_at": "2023-02-15T16:03:48.460263Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.467544Z", "completed_at": "2023-02-15T16:03:48.467550Z"}], "thread_id": "Thread-1", "execution_time": 0.33445024490356445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.488700Z", "completed_at": "2023-02-15T16:03:48.497820Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.502142Z", "completed_at": "2023-02-15T16:03:48.502151Z"}], "thread_id": "Thread-3", "execution_time": 0.014703750610351562, "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": "2023-02-15T16:03:48.488552Z", "completed_at": "2023-02-15T16:03:48.497994Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.502351Z", "completed_at": "2023-02-15T16:03:48.502354Z"}], "thread_id": "Thread-4", "execution_time": 0.015388011932373047, "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": "2023-02-15T16:03:48.498281Z", "completed_at": "2023-02-15T16:03:48.503162Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.507497Z", "completed_at": "2023-02-15T16:03:48.507511Z"}], "thread_id": "Thread-2", "execution_time": 0.011065244674682617, "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": "2023-02-15T16:03:48.502804Z", "completed_at": "2023-02-15T16:03:48.507628Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.508902Z", "completed_at": "2023-02-15T16:03:48.508906Z"}], "thread_id": "Thread-1", "execution_time": 0.0186460018157959, "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": "2023-02-15T16:03:48.508510Z", "completed_at": "2023-02-15T16:03:48.517754Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.521445Z", "completed_at": "2023-02-15T16:03:48.521452Z"}], "thread_id": "Thread-3", "execution_time": 0.01511693000793457, "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": "2023-02-15T16:03:48.508595Z", "completed_at": "2023-02-15T16:03:48.517824Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.521540Z", "completed_at": "2023-02-15T16:03:48.521544Z"}], "thread_id": "Thread-4", "execution_time": 0.015104055404663086, "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": "2023-02-15T16:03:48.517895Z", "completed_at": "2023-02-15T16:03:48.522329Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.528487Z", "completed_at": "2023-02-15T16:03:48.528495Z"}], "thread_id": "Thread-2", "execution_time": 0.012446403503417969, "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": "2023-02-15T16:03:48.521656Z", "completed_at": "2023-02-15T16:03:48.528563Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.529596Z", "completed_at": "2023-02-15T16:03:48.529600Z"}], "thread_id": "Thread-1", "execution_time": 0.02272796630859375, "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": "2023-02-15T16:03:48.529209Z", "completed_at": "2023-02-15T16:03:48.541434Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.548221Z", "completed_at": "2023-02-15T16:03:48.548230Z"}], "thread_id": "Thread-3", "execution_time": 0.020956039428710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.529304Z", "completed_at": "2023-02-15T16:03:48.541999Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.548443Z", "completed_at": "2023-02-15T16:03:48.548447Z"}], "thread_id": "Thread-4", "execution_time": 0.021281719207763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.542088Z", "completed_at": "2023-02-15T16:03:48.549167Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.555230Z", "completed_at": "2023-02-15T16:03:48.555237Z"}], "thread_id": "Thread-2", "execution_time": 0.015655040740966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.549049Z", "completed_at": "2023-02-15T16:03:48.555682Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.560542Z", "completed_at": "2023-02-15T16:03:48.560551Z"}], "thread_id": "Thread-1", "execution_time": 0.023276090621948242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.556205Z", "completed_at": "2023-02-15T16:03:48.565954Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.570824Z", "completed_at": "2023-02-15T16:03:48.570831Z"}], "thread_id": "Thread-3", "execution_time": 0.016562938690185547, "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": "2023-02-15T16:03:48.556898Z", "completed_at": "2023-02-15T16:03:48.566863Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.571603Z", "completed_at": "2023-02-15T16:03:48.571607Z"}], "thread_id": "Thread-4", "execution_time": 0.016938209533691406, "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": "2023-02-15T16:03:48.566639Z", "completed_at": "2023-02-15T16:03:48.572028Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.576842Z", "completed_at": "2023-02-15T16:03:48.576852Z"}], "thread_id": "Thread-2", "execution_time": 0.017003774642944336, "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": "2023-02-15T16:03:48.571699Z", "completed_at": "2023-02-15T16:03:48.577263Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.581733Z", "completed_at": "2023-02-15T16:03:48.581744Z"}], "thread_id": "Thread-1", "execution_time": 0.020169973373413086, "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": "2023-02-15T16:03:48.577387Z", "completed_at": "2023-02-15T16:03:48.586800Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.587954Z", "completed_at": "2023-02-15T16:03:48.587959Z"}], "thread_id": "Thread-3", "execution_time": 0.016125202178955078, "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": "2023-02-15T16:03:48.581604Z", "completed_at": "2023-02-15T16:03:48.587861Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.592286Z", "completed_at": "2023-02-15T16:03:48.592292Z"}], "thread_id": "Thread-4", "execution_time": 0.016015052795410156, "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": "2023-02-15T16:03:48.587792Z", "completed_at": "2023-02-15T16:03:48.592767Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.596962Z", "completed_at": "2023-02-15T16:03:48.596968Z"}], "thread_id": "Thread-2", "execution_time": 0.015640974044799805, "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": "2023-02-15T16:03:48.592669Z", "completed_at": "2023-02-15T16:03:48.597725Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.603553Z", "completed_at": "2023-02-15T16:03:48.603560Z"}], "thread_id": "Thread-1", "execution_time": 0.02104806900024414, "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": "2023-02-15T16:03:48.597364Z", "completed_at": "2023-02-15T16:03:48.608789Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.612838Z", "completed_at": "2023-02-15T16:03:48.612845Z"}], "thread_id": "Thread-3", "execution_time": 0.020304203033447266, "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": "2023-02-15T16:03:48.603110Z", "completed_at": "2023-02-15T16:03:48.609764Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.613757Z", "completed_at": "2023-02-15T16:03:48.613760Z"}], "thread_id": "Thread-4", "execution_time": 0.01733684539794922, "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": "2023-02-15T16:03:48.609313Z", "completed_at": "2023-02-15T16:03:48.614045Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.618286Z", "completed_at": "2023-02-15T16:03:48.618292Z"}], "thread_id": "Thread-2", "execution_time": 0.015766143798828125, "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": "2023-02-15T16:03:48.614176Z", "completed_at": "2023-02-15T16:03:48.619221Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.628064Z", "completed_at": "2023-02-15T16:03:48.628076Z"}], "thread_id": "Thread-1", "execution_time": 0.015737295150756836, "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": "2023-02-15T16:03:48.618753Z", "completed_at": "2023-02-15T16:03:48.628180Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.629444Z", "completed_at": "2023-02-15T16:03:48.629450Z"}], "thread_id": "Thread-3", "execution_time": 0.01919388771057129, "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": "2023-02-15T16:03:48.623066Z", "completed_at": "2023-02-15T16:03:48.629090Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.634031Z", "completed_at": "2023-02-15T16:03:48.634039Z"}], "thread_id": "Thread-4", "execution_time": 0.016449928283691406, "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": "2023-02-15T16:03:48.629019Z", "completed_at": "2023-02-15T16:03:48.634584Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.639549Z", "completed_at": "2023-02-15T16:03:48.639556Z"}], "thread_id": "Thread-2", "execution_time": 0.016874074935913086, "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": "2023-02-15T16:03:48.635072Z", "completed_at": "2023-02-15T16:03:48.643488Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.648223Z", "completed_at": "2023-02-15T16:03:48.648230Z"}], "thread_id": "Thread-1", "execution_time": 0.015620946884155273, "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": "2023-02-15T16:03:48.639952Z", "completed_at": "2023-02-15T16:03:48.648096Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.649074Z", "completed_at": "2023-02-15T16:03:48.649078Z"}], "thread_id": "Thread-3", "execution_time": 0.018586158752441406, "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": "2023-02-15T16:03:48.643838Z", "completed_at": "2023-02-15T16:03:48.648977Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.654185Z", "completed_at": "2023-02-15T16:03:48.654190Z"}], "thread_id": "Thread-4", "execution_time": 0.01517796516418457, "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": "2023-02-15T16:03:48.648916Z", "completed_at": "2023-02-15T16:03:48.654601Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.659395Z", "completed_at": "2023-02-15T16:03:48.659407Z"}], "thread_id": "Thread-2", "execution_time": 0.016124963760375977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.655170Z", "completed_at": "2023-02-15T16:03:48.663531Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.668591Z", "completed_at": "2023-02-15T16:03:48.668598Z"}], "thread_id": "Thread-1", "execution_time": 0.015205144882202148, "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": "2023-02-15T16:03:48.659890Z", "completed_at": "2023-02-15T16:03:48.668473Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.669388Z", "completed_at": "2023-02-15T16:03:48.669391Z"}], "thread_id": "Thread-3", "execution_time": 0.018765926361083984, "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": "2023-02-15T16:03:48.664007Z", "completed_at": "2023-02-15T16:03:48.669310Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.674164Z", "completed_at": "2023-02-15T16:03:48.674169Z"}], "thread_id": "Thread-4", "execution_time": 0.015218019485473633, "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": "2023-02-15T16:03:48.669247Z", "completed_at": "2023-02-15T16:03:48.674485Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.675622Z", "completed_at": "2023-02-15T16:03:48.675627Z"}], "thread_id": "Thread-2", "execution_time": 0.017213821411132812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.675248Z", "completed_at": "2023-02-15T16:03:48.687547Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.694115Z", "completed_at": "2023-02-15T16:03:48.694124Z"}], "thread_id": "Thread-1", "execution_time": 0.02074599266052246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.681224Z", "completed_at": "2023-02-15T16:03:48.693409Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.694809Z", "completed_at": "2023-02-15T16:03:48.694813Z"}], "thread_id": "Thread-3", "execution_time": 0.024113893508911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.687699Z", "completed_at": "2023-02-15T16:03:48.694873Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.699940Z", "completed_at": "2023-02-15T16:03:48.699945Z"}], "thread_id": "Thread-4", "execution_time": 0.019643068313598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.694335Z", "completed_at": "2023-02-15T16:03:48.699809Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.701070Z", "completed_at": "2023-02-15T16:03:48.701073Z"}], "thread_id": "Thread-2", "execution_time": 0.016489028930664062, "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": "2023-02-15T16:03:48.700906Z", "completed_at": "2023-02-15T16:03:48.708887Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.709726Z", "completed_at": "2023-02-15T16:03:48.709731Z"}], "thread_id": "Thread-1", "execution_time": 0.014568805694580078, "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": "2023-02-15T16:03:48.704082Z", "completed_at": "2023-02-15T16:03:48.709560Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.714100Z", "completed_at": "2023-02-15T16:03:48.714104Z"}], "thread_id": "Thread-3", "execution_time": 0.017468929290771484, "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": "2023-02-15T16:03:48.709499Z", "completed_at": "2023-02-15T16:03:48.717732Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.718863Z", "completed_at": "2023-02-15T16:03:48.718867Z"}], "thread_id": "Thread-4", "execution_time": 0.014837026596069336, "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": "2023-02-15T16:03:48.713613Z", "completed_at": "2023-02-15T16:03:48.718294Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.719083Z", "completed_at": "2023-02-15T16:03:48.719086Z"}], "thread_id": "Thread-2", "execution_time": 0.013911724090576172, "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": "2023-02-15T16:03:48.718940Z", "completed_at": "2023-02-15T16:03:48.727485Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.728525Z", "completed_at": "2023-02-15T16:03:48.728531Z"}], "thread_id": "Thread-1", "execution_time": 0.011121034622192383, "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": "2023-02-15T16:03:48.722774Z", "completed_at": "2023-02-15T16:03:48.728358Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.732963Z", "completed_at": "2023-02-15T16:03:48.732970Z"}], "thread_id": "Thread-3", "execution_time": 0.01935887336730957, "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": "2023-02-15T16:03:48.728601Z", "completed_at": "2023-02-15T16:03:48.738376Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.739541Z", "completed_at": "2023-02-15T16:03:48.739547Z"}], "thread_id": "Thread-4", "execution_time": 0.01678013801574707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.728749Z", "completed_at": "2023-02-15T16:03:48.738691Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.739726Z", "completed_at": "2023-02-15T16:03:48.739729Z"}], "thread_id": "Thread-2", "execution_time": 0.016932249069213867, "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": "2023-02-15T16:03:48.739428Z", "completed_at": "2023-02-15T16:03:48.749682Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.751167Z", "completed_at": "2023-02-15T16:03:48.751175Z"}], "thread_id": "Thread-1", "execution_time": 0.013570785522460938, "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": "2023-02-15T16:03:48.744549Z", "completed_at": "2023-02-15T16:03:48.751048Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.758047Z", "completed_at": "2023-02-15T16:03:48.758056Z"}], "thread_id": "Thread-3", "execution_time": 0.01983809471130371, "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": "2023-02-15T16:03:48.751273Z", "completed_at": "2023-02-15T16:03:48.759223Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.760160Z", "completed_at": "2023-02-15T16:03:48.760164Z"}], "thread_id": "Thread-4", "execution_time": 0.014772891998291016, "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": "2023-02-15T16:03:48.751357Z", "completed_at": "2023-02-15T16:03:48.759302Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.760239Z", "completed_at": "2023-02-15T16:03:48.760243Z"}], "thread_id": "Thread-2", "execution_time": 0.014688968658447266, "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": "2023-02-15T16:03:48.760078Z", "completed_at": "2023-02-15T16:03:48.765702Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.770357Z", "completed_at": "2023-02-15T16:03:48.770362Z"}], "thread_id": "Thread-1", "execution_time": 0.011798620223999023, "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": "2023-02-15T16:03:48.765167Z", "completed_at": "2023-02-15T16:03:48.770428Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.778398Z", "completed_at": "2023-02-15T16:03:48.778409Z"}], "thread_id": "Thread-3", "execution_time": 0.01932072639465332, "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": "2023-02-15T16:03:48.770569Z", "completed_at": "2023-02-15T16:03:48.779405Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.783423Z", "completed_at": "2023-02-15T16:03:48.783429Z"}], "thread_id": "Thread-2", "execution_time": 0.014111042022705078, "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": "2023-02-15T16:03:48.770497Z", "completed_at": "2023-02-15T16:03:48.779465Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.783524Z", "completed_at": "2023-02-15T16:03:48.783528Z"}], "thread_id": "Thread-4", "execution_time": 0.014680147171020508, "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": "2023-02-15T16:03:48.779750Z", "completed_at": "2023-02-15T16:03:48.784520Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.789455Z", "completed_at": "2023-02-15T16:03:48.789461Z"}], "thread_id": "Thread-1", "execution_time": 0.011288166046142578, "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": "2023-02-15T16:03:48.784419Z", "completed_at": "2023-02-15T16:03:48.790066Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.805251Z", "completed_at": "2023-02-15T16:03:48.805258Z"}], "thread_id": "Thread-3", "execution_time": 0.02582716941833496, "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": "2023-02-15T16:03:48.790149Z", "completed_at": "2023-02-15T16:03:48.805963Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.810116Z", "completed_at": "2023-02-15T16:03:48.810123Z"}], "thread_id": "Thread-2", "execution_time": 0.021788835525512695, "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": "2023-02-15T16:03:48.790238Z", "completed_at": "2023-02-15T16:03:48.806124Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.810268Z", "completed_at": "2023-02-15T16:03:48.810271Z"}], "thread_id": "Thread-4", "execution_time": 0.021795034408569336, "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": "2023-02-15T16:03:48.806064Z", "completed_at": "2023-02-15T16:03:48.811168Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.818001Z", "completed_at": "2023-02-15T16:03:48.818009Z"}], "thread_id": "Thread-1", "execution_time": 0.013597965240478516, "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": "2023-02-15T16:03:48.811101Z", "completed_at": "2023-02-15T16:03:48.818236Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.822427Z", "completed_at": "2023-02-15T16:03:48.822432Z"}], "thread_id": "Thread-3", "execution_time": 0.01613616943359375, "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": "2023-02-15T16:03:48.818757Z", "completed_at": "2023-02-15T16:03:48.826347Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.832551Z", "completed_at": "2023-02-15T16:03:48.832563Z"}], "thread_id": "Thread-2", "execution_time": 0.015794038772583008, "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": "2023-02-15T16:03:48.818941Z", "completed_at": "2023-02-15T16:03:48.826731Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.832802Z", "completed_at": "2023-02-15T16:03:48.832807Z"}], "thread_id": "Thread-4", "execution_time": 0.016136884689331055, "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": "2023-02-15T16:03:48.826838Z", "completed_at": "2023-02-15T16:03:48.833511Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.841965Z", "completed_at": "2023-02-15T16:03:48.841973Z"}], "thread_id": "Thread-1", "execution_time": 0.017289161682128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.833422Z", "completed_at": "2023-02-15T16:03:48.842397Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.847859Z", "completed_at": "2023-02-15T16:03:48.847865Z"}], "thread_id": "Thread-3", "execution_time": 0.02748703956604004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.842915Z", "completed_at": "2023-02-15T16:03:48.855159Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.859355Z", "completed_at": "2023-02-15T16:03:48.859366Z"}], "thread_id": "Thread-2", "execution_time": 0.018352985382080078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.843331Z", "completed_at": "2023-02-15T16:03:48.855688Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.860119Z", "completed_at": "2023-02-15T16:03:48.860123Z"}], "thread_id": "Thread-4", "execution_time": 0.022583961486816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.855260Z", "completed_at": "2023-02-15T16:03:48.860184Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.865554Z", "completed_at": "2023-02-15T16:03:48.865558Z"}], "thread_id": "Thread-1", "execution_time": 0.01825094223022461, "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": "2023-02-15T16:03:48.859651Z", "completed_at": "2023-02-15T16:03:48.865488Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.866545Z", "completed_at": "2023-02-15T16:03:48.866548Z"}], "thread_id": "Thread-3", "execution_time": 0.016839027404785156, "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": "2023-02-15T16:03:48.866365Z", "completed_at": "2023-02-15T16:03:48.876434Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.877229Z", "completed_at": "2023-02-15T16:03:48.877234Z"}], "thread_id": "Thread-2", "execution_time": 0.015442848205566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:48.871949Z", "completed_at": "2023-02-15T16:03:48.877073Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.880638Z", "completed_at": "2023-02-15T16:03:48.880642Z"}], "thread_id": "Thread-4", "execution_time": 0.01936626434326172, "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": "2023-02-15T16:03:48.877013Z", "completed_at": "2023-02-15T16:03:48.884784Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.885943Z", "completed_at": "2023-02-15T16:03:48.885947Z"}], "thread_id": "Thread-1", "execution_time": 0.014199018478393555, "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": "2023-02-15T16:03:48.880174Z", "completed_at": "2023-02-15T16:03:48.885700Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.886746Z", "completed_at": "2023-02-15T16:03:48.886749Z"}], "thread_id": "Thread-3", "execution_time": 0.014180898666381836, "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": "2023-02-15T16:03:48.886320Z", "completed_at": "2023-02-15T16:03:48.894921Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.896337Z", "completed_at": "2023-02-15T16:03:48.896346Z"}], "thread_id": "Thread-2", "execution_time": 0.014811992645263672, "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": "2023-02-15T16:03:48.890540Z", "completed_at": "2023-02-15T16:03:48.896004Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.900317Z", "completed_at": "2023-02-15T16:03:48.900327Z"}], "thread_id": "Thread-4", "execution_time": 0.019536256790161133, "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": "2023-02-15T16:03:48.896119Z", "completed_at": "2023-02-15T16:03:48.905288Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.906482Z", "completed_at": "2023-02-15T16:03:48.906486Z"}], "thread_id": "Thread-1", "execution_time": 0.015981197357177734, "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": "2023-02-15T16:03:48.899713Z", "completed_at": "2023-02-15T16:03:48.906303Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.907428Z", "completed_at": "2023-02-15T16:03:48.907431Z"}], "thread_id": "Thread-3", "execution_time": 0.0158078670501709, "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": "2023-02-15T16:03:48.906926Z", "completed_at": "2023-02-15T16:03:48.914708Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.915793Z", "completed_at": "2023-02-15T16:03:48.915801Z"}], "thread_id": "Thread-2", "execution_time": 0.014048099517822266, "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": "2023-02-15T16:03:48.910898Z", "completed_at": "2023-02-15T16:03:48.915419Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.919943Z", "completed_at": "2023-02-15T16:03:48.919947Z"}], "thread_id": "Thread-4", "execution_time": 0.017757892608642578, "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": "2023-02-15T16:03:48.915562Z", "completed_at": "2023-02-15T16:03:48.924046Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.925205Z", "completed_at": "2023-02-15T16:03:48.925209Z"}], "thread_id": "Thread-1", "execution_time": 0.014448881149291992, "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": "2023-02-15T16:03:48.919520Z", "completed_at": "2023-02-15T16:03:48.924868Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.925944Z", "completed_at": "2023-02-15T16:03:48.925948Z"}], "thread_id": "Thread-3", "execution_time": 0.07142281532287598, "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": "2023-02-15T16:03:48.925574Z", "completed_at": "2023-02-15T16:03:48.987252Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.991723Z", "completed_at": "2023-02-15T16:03:48.991731Z"}], "thread_id": "Thread-2", "execution_time": 0.07078123092651367, "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": "2023-02-15T16:03:48.986588Z", "completed_at": "2023-02-15T16:03:48.994877Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:48.999850Z", "completed_at": "2023-02-15T16:03:48.999858Z"}], "thread_id": "Thread-4", "execution_time": 0.075286865234375, "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": "2023-02-15T16:03:48.991502Z", "completed_at": "2023-02-15T16:03:48.999601Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.000895Z", "completed_at": "2023-02-15T16:03:49.000899Z"}], "thread_id": "Thread-1", "execution_time": 0.014923095703125, "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": "2023-02-15T16:03:48.994994Z", "completed_at": "2023-02-15T16:03:49.000405Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.001805Z", "completed_at": "2023-02-15T16:03:49.001809Z"}], "thread_id": "Thread-3", "execution_time": 0.015129804611206055, "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": "2023-02-15T16:03:49.001395Z", "completed_at": "2023-02-15T16:03:49.006930Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.010518Z", "completed_at": "2023-02-15T16:03:49.010525Z"}], "thread_id": "Thread-2", "execution_time": 0.01395416259765625, "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": "2023-02-15T16:03:49.006863Z", "completed_at": "2023-02-15T16:03:49.013684Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.020772Z", "completed_at": "2023-02-15T16:03:49.020778Z"}], "thread_id": "Thread-4", "execution_time": 0.019479036331176758, "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": "2023-02-15T16:03:49.010257Z", "completed_at": "2023-02-15T16:03:49.020645Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.021655Z", "completed_at": "2023-02-15T16:03:49.021658Z"}], "thread_id": "Thread-1", "execution_time": 0.01585102081298828, "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": "2023-02-15T16:03:49.013594Z", "completed_at": "2023-02-15T16:03:49.021563Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.025468Z", "completed_at": "2023-02-15T16:03:49.025473Z"}], "thread_id": "Thread-3", "execution_time": 0.018985986709594727, "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": "2023-02-15T16:03:49.021935Z", "completed_at": "2023-02-15T16:03:49.026510Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.031593Z", "completed_at": "2023-02-15T16:03:49.031599Z"}], "thread_id": "Thread-2", "execution_time": 0.016071081161499023, "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": "2023-02-15T16:03:49.026452Z", "completed_at": "2023-02-15T16:03:49.036605Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.043437Z", "completed_at": "2023-02-15T16:03:49.043444Z"}], "thread_id": "Thread-4", "execution_time": 0.021736860275268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.031460Z", "completed_at": "2023-02-15T16:03:49.043337Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.044390Z", "completed_at": "2023-02-15T16:03:49.044394Z"}], "thread_id": "Thread-1", "execution_time": 0.018959999084472656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.037114Z", "completed_at": "2023-02-15T16:03:49.044312Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.050964Z", "completed_at": "2023-02-15T16:03:49.050970Z"}], "thread_id": "Thread-3", "execution_time": 0.02050495147705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.044796Z", "completed_at": "2023-02-15T16:03:49.052219Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.058672Z", "completed_at": "2023-02-15T16:03:49.058679Z"}], "thread_id": "Thread-2", "execution_time": 0.018980979919433594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.052146Z", "completed_at": "2023-02-15T16:03:49.062250Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.067188Z", "completed_at": "2023-02-15T16:03:49.067195Z"}], "thread_id": "Thread-4", "execution_time": 0.022472858428955078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.058549Z", "completed_at": "2023-02-15T16:03:49.063274Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.068129Z", "completed_at": "2023-02-15T16:03:49.068133Z"}], "thread_id": "Thread-1", "execution_time": 0.016948938369750977, "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": "2023-02-15T16:03:49.062733Z", "completed_at": "2023-02-15T16:03:49.068192Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.072228Z", "completed_at": "2023-02-15T16:03:49.072234Z"}], "thread_id": "Thread-3", "execution_time": 0.014570951461791992, "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": "2023-02-15T16:03:49.068555Z", "completed_at": "2023-02-15T16:03:49.073084Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.077497Z", "completed_at": "2023-02-15T16:03:49.077502Z"}], "thread_id": "Thread-2", "execution_time": 0.014181852340698242, "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": "2023-02-15T16:03:49.073016Z", "completed_at": "2023-02-15T16:03:49.081112Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.082145Z", "completed_at": "2023-02-15T16:03:49.082149Z"}], "thread_id": "Thread-4", "execution_time": 0.017383813858032227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.077155Z", "completed_at": "2023-02-15T16:03:49.082064Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.086784Z", "completed_at": "2023-02-15T16:03:49.086788Z"}], "thread_id": "Thread-1", "execution_time": 0.014961957931518555, "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": "2023-02-15T16:03:49.081762Z", "completed_at": "2023-02-15T16:03:49.087058Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.093965Z", "completed_at": "2023-02-15T16:03:49.093971Z"}], "thread_id": "Thread-3", "execution_time": 0.017434120178222656, "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": "2023-02-15T16:03:49.087180Z", "completed_at": "2023-02-15T16:03:49.094801Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.098450Z", "completed_at": "2023-02-15T16:03:49.098457Z"}], "thread_id": "Thread-2", "execution_time": 0.01983499526977539, "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": "2023-02-15T16:03:49.094411Z", "completed_at": "2023-02-15T16:03:49.104812Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.106523Z", "completed_at": "2023-02-15T16:03:49.106528Z"}], "thread_id": "Thread-4", "execution_time": 0.022401094436645508, "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": "2023-02-15T16:03:49.098030Z", "completed_at": "2023-02-15T16:03:49.106434Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.110221Z", "completed_at": "2023-02-15T16:03:49.110225Z"}], "thread_id": "Thread-1", "execution_time": 0.016714096069335938, "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": "2023-02-15T16:03:49.106104Z", "completed_at": "2023-02-15T16:03:49.110392Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.115220Z", "completed_at": "2023-02-15T16:03:49.115228Z"}], "thread_id": "Thread-3", "execution_time": 0.017934083938598633, "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": "2023-02-15T16:03:49.110567Z", "completed_at": "2023-02-15T16:03:49.116255Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.120109Z", "completed_at": "2023-02-15T16:03:49.120115Z"}], "thread_id": "Thread-2", "execution_time": 0.015403985977172852, "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": "2023-02-15T16:03:49.115752Z", "completed_at": "2023-02-15T16:03:49.124490Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.125472Z", "completed_at": "2023-02-15T16:03:49.125476Z"}], "thread_id": "Thread-4", "execution_time": 0.01793503761291504, "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": "2023-02-15T16:03:49.119714Z", "completed_at": "2023-02-15T16:03:49.125306Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.129250Z", "completed_at": "2023-02-15T16:03:49.129257Z"}], "thread_id": "Thread-1", "execution_time": 0.014510154724121094, "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": "2023-02-15T16:03:49.125150Z", "completed_at": "2023-02-15T16:03:49.129451Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.137217Z", "completed_at": "2023-02-15T16:03:49.137223Z"}], "thread_id": "Thread-3", "execution_time": 0.018024921417236328, "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": "2023-02-15T16:03:49.129639Z", "completed_at": "2023-02-15T16:03:49.137985Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.141626Z", "completed_at": "2023-02-15T16:03:49.141632Z"}], "thread_id": "Thread-2", "execution_time": 0.019551992416381836, "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": "2023-02-15T16:03:49.137626Z", "completed_at": "2023-02-15T16:03:49.147401Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.148764Z", "completed_at": "2023-02-15T16:03:49.148771Z"}], "thread_id": "Thread-4", "execution_time": 0.02478814125061035, "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": "2023-02-15T16:03:49.141238Z", "completed_at": "2023-02-15T16:03:49.148644Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.155156Z", "completed_at": "2023-02-15T16:03:49.155161Z"}], "thread_id": "Thread-1", "execution_time": 0.018390893936157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.148306Z", "completed_at": "2023-02-15T16:03:49.155437Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.161055Z", "completed_at": "2023-02-15T16:03:49.161061Z"}], "thread_id": "Thread-3", "execution_time": 0.020494937896728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.155511Z", "completed_at": "2023-02-15T16:03:49.162077Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.177539Z", "completed_at": "2023-02-15T16:03:49.177547Z"}], "thread_id": "Thread-2", "execution_time": 0.02948474884033203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.161527Z", "completed_at": "2023-02-15T16:03:49.177650Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.184491Z", "completed_at": "2023-02-15T16:03:49.184496Z"}], "thread_id": "Thread-4", "execution_time": 0.03257489204406738, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.176924Z", "completed_at": "2023-02-15T16:03:49.184418Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.188783Z", "completed_at": "2023-02-15T16:03:49.188788Z"}], "thread_id": "Thread-1", "execution_time": 0.02822399139404297, "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__budget_association_status.6f2312e762"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.184050Z", "completed_at": "2023-02-15T16:03:49.189130Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.193298Z", "completed_at": "2023-02-15T16:03:49.193304Z"}], "thread_id": "Thread-3", "execution_time": 0.016846656799316406, "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": "2023-02-15T16:03:49.189191Z", "completed_at": "2023-02-15T16:03:49.194058Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.198834Z", "completed_at": "2023-02-15T16:03:49.198841Z"}], "thread_id": "Thread-2", "execution_time": 0.016920804977416992, "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": "2023-02-15T16:03:49.193697Z", "completed_at": "2023-02-15T16:03:49.204466Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.205522Z", "completed_at": "2023-02-15T16:03:49.205526Z"}], "thread_id": "Thread-4", "execution_time": 0.019762039184570312, "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": "2023-02-15T16:03:49.198374Z", "completed_at": "2023-02-15T16:03:49.205436Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.209657Z", "completed_at": "2023-02-15T16:03:49.209661Z"}], "thread_id": "Thread-1", "execution_time": 0.016794204711914062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.205158Z", "completed_at": "2023-02-15T16:03:49.209920Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.213818Z", "completed_at": "2023-02-15T16:03:49.213823Z"}], "thread_id": "Thread-3", "execution_time": 0.015932321548461914, "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": "2023-02-15T16:03:49.209996Z", "completed_at": "2023-02-15T16:03:49.214567Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.219992Z", "completed_at": "2023-02-15T16:03:49.219997Z"}], "thread_id": "Thread-2", "execution_time": 0.014128923416137695, "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": "2023-02-15T16:03:49.214215Z", "completed_at": "2023-02-15T16:03:49.223130Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.226638Z", "completed_at": "2023-02-15T16:03:49.226643Z"}], "thread_id": "Thread-4", "execution_time": 0.01679086685180664, "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": "2023-02-15T16:03:49.219615Z", "completed_at": "2023-02-15T16:03:49.223493Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.226848Z", "completed_at": "2023-02-15T16:03:49.226851Z"}], "thread_id": "Thread-1", "execution_time": 0.01355886459350586, "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": "2023-02-15T16:03:49.223242Z", "completed_at": "2023-02-15T16:03:49.226947Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.234156Z", "completed_at": "2023-02-15T16:03:49.234163Z"}], "thread_id": "Thread-3", "execution_time": 0.015298128128051758, "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": "2023-02-15T16:03:49.227288Z", "completed_at": "2023-02-15T16:03:49.235344Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.246240Z", "completed_at": "2023-02-15T16:03:49.246253Z"}], "thread_id": "Thread-2", "execution_time": 0.020537853240966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.235617Z", "completed_at": "2023-02-15T16:03:49.247198Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.251604Z", "completed_at": "2023-02-15T16:03:49.251609Z"}], "thread_id": "Thread-4", "execution_time": 0.0178070068359375, "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": "2023-02-15T16:03:49.235695Z", "completed_at": "2023-02-15T16:03:49.247258Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.251705Z", "completed_at": "2023-02-15T16:03:49.251708Z"}], "thread_id": "Thread-1", "execution_time": 0.017752885818481445, "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": "2023-02-15T16:03:49.247106Z", "completed_at": "2023-02-15T16:03:49.251842Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.255771Z", "completed_at": "2023-02-15T16:03:49.255776Z"}], "thread_id": "Thread-3", "execution_time": 0.020668983459472656, "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": "2023-02-15T16:03:49.252479Z", "completed_at": "2023-02-15T16:03:49.256792Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.264407Z", "completed_at": "2023-02-15T16:03:49.264413Z"}], "thread_id": "Thread-2", "execution_time": 0.013529062271118164, "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": "2023-02-15T16:03:49.257044Z", "completed_at": "2023-02-15T16:03:49.265247Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.269501Z", "completed_at": "2023-02-15T16:03:49.269506Z"}], "thread_id": "Thread-4", "execution_time": 0.014161109924316406, "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": "2023-02-15T16:03:49.257116Z", "completed_at": "2023-02-15T16:03:49.265306Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.269583Z", "completed_at": "2023-02-15T16:03:49.269586Z"}], "thread_id": "Thread-1", "execution_time": 0.014194011688232422, "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": "2023-02-15T16:03:49.264990Z", "completed_at": "2023-02-15T16:03:49.269639Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.274086Z", "completed_at": "2023-02-15T16:03:49.274091Z"}], "thread_id": "Thread-3", "execution_time": 0.01759624481201172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.269703Z", "completed_at": "2023-02-15T16:03:49.274995Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.275894Z", "completed_at": "2023-02-15T16:03:49.275897Z"}], "thread_id": "Thread-2", "execution_time": 0.014162778854370117, "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": "2023-02-15T16:03:49.275522Z", "completed_at": "2023-02-15T16:03:49.283745Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.289063Z", "completed_at": "2023-02-15T16:03:49.289069Z"}], "thread_id": "Thread-4", "execution_time": 0.015315771102905273, "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": "2023-02-15T16:03:49.275600Z", "completed_at": "2023-02-15T16:03:49.283806Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.289151Z", "completed_at": "2023-02-15T16:03:49.289154Z"}], "thread_id": "Thread-1", "execution_time": 0.015344858169555664, "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": "2023-02-15T16:03:49.283413Z", "completed_at": "2023-02-15T16:03:49.289209Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.293851Z", "completed_at": "2023-02-15T16:03:49.293856Z"}], "thread_id": "Thread-3", "execution_time": 0.01898980140686035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.289280Z", "completed_at": "2023-02-15T16:03:49.294808Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.295828Z", "completed_at": "2023-02-15T16:03:49.295831Z"}], "thread_id": "Thread-2", "execution_time": 0.015623092651367188, "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": "2023-02-15T16:03:49.295503Z", "completed_at": "2023-02-15T16:03:49.304700Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.309036Z", "completed_at": "2023-02-15T16:03:49.309044Z"}], "thread_id": "Thread-1", "execution_time": 0.015290975570678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.295423Z", "completed_at": "2023-02-15T16:03:49.304758Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.309151Z", "completed_at": "2023-02-15T16:03:49.309153Z"}], "thread_id": "Thread-4", "execution_time": 0.01585102081298828, "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": "2023-02-15T16:03:49.304372Z", "completed_at": "2023-02-15T16:03:49.309210Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.313249Z", "completed_at": "2023-02-15T16:03:49.313254Z"}], "thread_id": "Thread-3", "execution_time": 0.018426895141601562, "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": "2023-02-15T16:03:49.309286Z", "completed_at": "2023-02-15T16:03:49.314120Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.314963Z", "completed_at": "2023-02-15T16:03:49.314966Z"}], "thread_id": "Thread-2", "execution_time": 0.014453887939453125, "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": "2023-02-15T16:03:49.314666Z", "completed_at": "2023-02-15T16:03:49.323365Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.327242Z", "completed_at": "2023-02-15T16:03:49.327249Z"}], "thread_id": "Thread-4", "execution_time": 0.014115095138549805, "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": "2023-02-15T16:03:49.314589Z", "completed_at": "2023-02-15T16:03:49.323430Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.327337Z", "completed_at": "2023-02-15T16:03:49.327341Z"}], "thread_id": "Thread-1", "execution_time": 0.014655113220214844, "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": "2023-02-15T16:03:49.323024Z", "completed_at": "2023-02-15T16:03:49.327415Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.334189Z", "completed_at": "2023-02-15T16:03:49.334197Z"}], "thread_id": "Thread-3", "execution_time": 0.02038097381591797, "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": "2023-02-15T16:03:49.327494Z", "completed_at": "2023-02-15T16:03:49.335257Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.336477Z", "completed_at": "2023-02-15T16:03:49.336482Z"}], "thread_id": "Thread-2", "execution_time": 0.019035816192626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.335955Z", "completed_at": "2023-02-15T16:03:49.346352Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.349962Z", "completed_at": "2023-02-15T16:03:49.349968Z"}], "thread_id": "Thread-4", "execution_time": 0.01607513427734375, "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": "2023-02-15T16:03:49.336090Z", "completed_at": "2023-02-15T16:03:49.346489Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.350111Z", "completed_at": "2023-02-15T16:03:49.350114Z"}], "thread_id": "Thread-1", "execution_time": 0.016084909439086914, "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": "2023-02-15T16:03:49.345972Z", "completed_at": "2023-02-15T16:03:49.350039Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.354549Z", "completed_at": "2023-02-15T16:03:49.354554Z"}], "thread_id": "Thread-3", "execution_time": 0.019121170043945312, "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": "2023-02-15T16:03:49.350193Z", "completed_at": "2023-02-15T16:03:49.355667Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.356571Z", "completed_at": "2023-02-15T16:03:49.356575Z"}], "thread_id": "Thread-2", "execution_time": 0.016562938690185547, "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": "2023-02-15T16:03:49.356147Z", "completed_at": "2023-02-15T16:03:49.372120Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.372923Z", "completed_at": "2023-02-15T16:03:49.372930Z"}], "thread_id": "Thread-4", "execution_time": 0.018557071685791016, "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": "2023-02-15T16:03:49.356496Z", "completed_at": "2023-02-15T16:03:49.372192Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.373006Z", "completed_at": "2023-02-15T16:03:49.373009Z"}], "thread_id": "Thread-1", "execution_time": 0.018255949020385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.366190Z", "completed_at": "2023-02-15T16:03:49.372848Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.379650Z", "completed_at": "2023-02-15T16:03:49.379658Z"}], "thread_id": "Thread-3", "execution_time": 0.02422928810119629, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.373084Z", "completed_at": "2023-02-15T16:03:49.381171Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.382143Z", "completed_at": "2023-02-15T16:03:49.382146Z"}], "thread_id": "Thread-2", "execution_time": 0.01627969741821289, "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": "2023-02-15T16:03:49.381992Z", "completed_at": "2023-02-15T16:03:49.392649Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.393406Z", "completed_at": "2023-02-15T16:03:49.393411Z"}], "thread_id": "Thread-4", "execution_time": 0.013151168823242188, "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": "2023-02-15T16:03:49.382069Z", "completed_at": "2023-02-15T16:03:49.392732Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.393541Z", "completed_at": "2023-02-15T16:03:49.393545Z"}], "thread_id": "Thread-1", "execution_time": 0.01322484016418457, "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": "2023-02-15T16:03:49.388792Z", "completed_at": "2023-02-15T16:03:49.393472Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.398161Z", "completed_at": "2023-02-15T16:03:49.398166Z"}], "thread_id": "Thread-3", "execution_time": 0.017164945602416992, "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": "2023-02-15T16:03:49.393617Z", "completed_at": "2023-02-15T16:03:49.399096Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.400137Z", "completed_at": "2023-02-15T16:03:49.400140Z"}], "thread_id": "Thread-2", "execution_time": 0.010838031768798828, "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": "2023-02-15T16:03:49.399825Z", "completed_at": "2023-02-15T16:03:49.407829Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.411563Z", "completed_at": "2023-02-15T16:03:49.411568Z"}], "thread_id": "Thread-4", "execution_time": 0.013530254364013672, "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": "2023-02-15T16:03:49.400218Z", "completed_at": "2023-02-15T16:03:49.411161Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.411770Z", "completed_at": "2023-02-15T16:03:49.411773Z"}], "thread_id": "Thread-1", "execution_time": 0.01686692237854004, "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": "2023-02-15T16:03:49.407386Z", "completed_at": "2023-02-15T16:03:49.411699Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.416442Z", "completed_at": "2023-02-15T16:03:49.416447Z"}], "thread_id": "Thread-3", "execution_time": 0.017314910888671875, "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": "2023-02-15T16:03:49.411642Z", "completed_at": "2023-02-15T16:03:49.416732Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.418084Z", "completed_at": "2023-02-15T16:03:49.418088Z"}], "thread_id": "Thread-2", "execution_time": 0.007827997207641602, "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": "2023-02-15T16:03:49.418178Z", "completed_at": "2023-02-15T16:03:49.428282Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.428943Z", "completed_at": "2023-02-15T16:03:49.428949Z"}], "thread_id": "Thread-4", "execution_time": 0.016221046447753906, "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": "2023-02-15T16:03:49.418524Z", "completed_at": "2023-02-15T16:03:49.428365Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.429026Z", "completed_at": "2023-02-15T16:03:49.429029Z"}], "thread_id": "Thread-1", "execution_time": 0.015980958938598633, "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": "2023-02-15T16:03:49.425435Z", "completed_at": "2023-02-15T16:03:49.428867Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.433549Z", "completed_at": "2023-02-15T16:03:49.433554Z"}], "thread_id": "Thread-3", "execution_time": 0.016084909439086914, "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": "2023-02-15T16:03:49.428805Z", "completed_at": "2023-02-15T16:03:49.433985Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.436628Z", "completed_at": "2023-02-15T16:03:49.436635Z"}], "thread_id": "Thread-2", "execution_time": 0.011719942092895508, "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": "2023-02-15T16:03:49.436971Z", "completed_at": "2023-02-15T16:03:49.447522Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.448114Z", "completed_at": "2023-02-15T16:03:49.448124Z"}], "thread_id": "Thread-4", "execution_time": 0.017032861709594727, "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": "2023-02-15T16:03:49.443554Z", "completed_at": "2023-02-15T16:03:49.447736Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.451270Z", "completed_at": "2023-02-15T16:03:49.451275Z"}], "thread_id": "Thread-3", "execution_time": 0.015228986740112305, "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": "2023-02-15T16:03:49.437065Z", "completed_at": "2023-02-15T16:03:49.447889Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.451668Z", "completed_at": "2023-02-15T16:03:49.451671Z"}], "thread_id": "Thread-1", "execution_time": 0.01660895347595215, "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": "2023-02-15T16:03:49.447960Z", "completed_at": "2023-02-15T16:03:49.452292Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.453559Z", "completed_at": "2023-02-15T16:03:49.453562Z"}], "thread_id": "Thread-2", "execution_time": 0.006974220275878906, "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": "2023-02-15T16:03:49.453913Z", "completed_at": "2023-02-15T16:03:49.464897Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.465508Z", "completed_at": "2023-02-15T16:03:49.465514Z"}], "thread_id": "Thread-4", "execution_time": 0.01602005958557129, "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": "2023-02-15T16:03:49.454344Z", "completed_at": "2023-02-15T16:03:49.465131Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.468530Z", "completed_at": "2023-02-15T16:03:49.468537Z"}], "thread_id": "Thread-3", "execution_time": 0.01601386070251465, "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": "2023-02-15T16:03:49.458474Z", "completed_at": "2023-02-15T16:03:49.465368Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.469011Z", "completed_at": "2023-02-15T16:03:49.469014Z"}], "thread_id": "Thread-1", "execution_time": 0.0162661075592041, "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": "2023-02-15T16:03:49.465296Z", "completed_at": "2023-02-15T16:03:49.469603Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.471115Z", "completed_at": "2023-02-15T16:03:49.471119Z"}], "thread_id": "Thread-2", "execution_time": 0.009862899780273438, "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": "2023-02-15T16:03:49.471544Z", "completed_at": "2023-02-15T16:03:49.488139Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.488781Z", "completed_at": "2023-02-15T16:03:49.488788Z"}], "thread_id": "Thread-4", "execution_time": 0.022243022918701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.471970Z", "completed_at": "2023-02-15T16:03:49.488376Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.492233Z", "completed_at": "2023-02-15T16:03:49.492239Z"}], "thread_id": "Thread-3", "execution_time": 0.022151947021484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.478497Z", "completed_at": "2023-02-15T16:03:49.488637Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.492699Z", "completed_at": "2023-02-15T16:03:49.492703Z"}], "thread_id": "Thread-1", "execution_time": 0.022516965866088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.488579Z", "completed_at": "2023-02-15T16:03:49.493380Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.495036Z", "completed_at": "2023-02-15T16:03:49.495040Z"}], "thread_id": "Thread-2", "execution_time": 0.012994050979614258, "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": "2023-02-15T16:03:49.496337Z", "completed_at": "2023-02-15T16:03:49.565009Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.568297Z", "completed_at": "2023-02-15T16:03:49.568304Z"}], "thread_id": "Thread-4", "execution_time": 0.07487106323242188, "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": "2023-02-15T16:03:49.496781Z", "completed_at": "2023-02-15T16:03:49.565130Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.568409Z", "completed_at": "2023-02-15T16:03:49.568414Z"}], "thread_id": "Thread-3", "execution_time": 0.07470202445983887, "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": "2023-02-15T16:03:49.558250Z", "completed_at": "2023-02-15T16:03:49.565281Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.568646Z", "completed_at": "2023-02-15T16:03:49.568658Z"}], "thread_id": "Thread-1", "execution_time": 0.07458901405334473, "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": "2023-02-15T16:03:49.565191Z", "completed_at": "2023-02-15T16:03:49.569174Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.570683Z", "completed_at": "2023-02-15T16:03:49.570691Z"}], "thread_id": "Thread-2", "execution_time": 0.010293006896972656, "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": "2023-02-15T16:03:49.571732Z", "completed_at": "2023-02-15T16:03:49.589498Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.593970Z", "completed_at": "2023-02-15T16:03:49.593975Z"}], "thread_id": "Thread-4", "execution_time": 0.024206161499023438, "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": "2023-02-15T16:03:49.572045Z", "completed_at": "2023-02-15T16:03:49.593463Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.594836Z", "completed_at": "2023-02-15T16:03:49.594840Z"}], "thread_id": "Thread-1", "execution_time": 0.02455282211303711, "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": "2023-02-15T16:03:49.589627Z", "completed_at": "2023-02-15T16:03:49.594753Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.595965Z", "completed_at": "2023-02-15T16:03:49.595969Z"}], "thread_id": "Thread-2", "execution_time": 0.020390987396240234, "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": "2023-02-15T16:03:49.596199Z", "completed_at": "2023-02-15T16:03:49.603907Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.607810Z", "completed_at": "2023-02-15T16:03:49.607817Z"}], "thread_id": "Thread-3", "execution_time": 0.01756596565246582, "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": "2023-02-15T16:03:49.603791Z", "completed_at": "2023-02-15T16:03:49.612189Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.613391Z", "completed_at": "2023-02-15T16:03:49.613395Z"}], "thread_id": "Thread-1", "execution_time": 0.017015695571899414, "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": "2023-02-15T16:03:49.600310Z", "completed_at": "2023-02-15T16:03:49.604077Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.612065Z", "completed_at": "2023-02-15T16:03:49.612077Z"}], "thread_id": "Thread-4", "execution_time": 0.01729583740234375, "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": "2023-02-15T16:03:49.607601Z", "completed_at": "2023-02-15T16:03:49.613852Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.615817Z", "completed_at": "2023-02-15T16:03:49.615824Z"}], "thread_id": "Thread-2", "execution_time": 0.012876033782958984, "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": "2023-02-15T16:03:49.616755Z", "completed_at": "2023-02-15T16:03:49.627051Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.632161Z", "completed_at": "2023-02-15T16:03:49.632169Z"}], "thread_id": "Thread-1", "execution_time": 0.017651796340942383, "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": "2023-02-15T16:03:49.616869Z", "completed_at": "2023-02-15T16:03:49.627162Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.632266Z", "completed_at": "2023-02-15T16:03:49.632271Z"}], "thread_id": "Thread-4", "execution_time": 0.017712116241455078, "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": "2023-02-15T16:03:49.616613Z", "completed_at": "2023-02-15T16:03:49.627220Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.632393Z", "completed_at": "2023-02-15T16:03:49.632401Z"}], "thread_id": "Thread-3", "execution_time": 0.018848896026611328, "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": "2023-02-15T16:03:49.627285Z", "completed_at": "2023-02-15T16:03:49.633370Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.635105Z", "completed_at": "2023-02-15T16:03:49.635111Z"}], "thread_id": "Thread-2", "execution_time": 0.009449958801269531, "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": "2023-02-15T16:03:49.636086Z", "completed_at": "2023-02-15T16:03:49.647431Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.652020Z", "completed_at": "2023-02-15T16:03:49.652028Z"}], "thread_id": "Thread-4", "execution_time": 0.017663955688476562, "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": "2023-02-15T16:03:49.636005Z", "completed_at": "2023-02-15T16:03:49.647559Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.652220Z", "completed_at": "2023-02-15T16:03:49.652223Z"}], "thread_id": "Thread-1", "execution_time": 0.018349170684814453, "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": "2023-02-15T16:03:49.636337Z", "completed_at": "2023-02-15T16:03:49.647829Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.652661Z", "completed_at": "2023-02-15T16:03:49.652665Z"}], "thread_id": "Thread-3", "execution_time": 0.01821303367614746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.647661Z", "completed_at": "2023-02-15T16:03:49.653202Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.654575Z", "completed_at": "2023-02-15T16:03:49.654579Z"}], "thread_id": "Thread-2", "execution_time": 0.012978076934814453, "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": "2023-02-15T16:03:49.654952Z", "completed_at": "2023-02-15T16:03:49.670361Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.671116Z", "completed_at": "2023-02-15T16:03:49.671126Z"}], "thread_id": "Thread-4", "execution_time": 0.024699926376342773, "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": "2023-02-15T16:03:49.655366Z", "completed_at": "2023-02-15T16:03:49.670770Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.678600Z", "completed_at": "2023-02-15T16:03:49.678605Z"}], "thread_id": "Thread-1", "execution_time": 0.024991989135742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.659780Z", "completed_at": "2023-02-15T16:03:49.670841Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.678700Z", "completed_at": "2023-02-15T16:03:49.678703Z"}], "thread_id": "Thread-3", "execution_time": 0.02498006820678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.670950Z", "completed_at": "2023-02-15T16:03:49.679428Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.681340Z", "completed_at": "2023-02-15T16:03:49.681346Z"}], "thread_id": "Thread-2", "execution_time": 0.017828941345214844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.681752Z", "completed_at": "2023-02-15T16:03:49.694570Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.695495Z", "completed_at": "2023-02-15T16:03:49.695501Z"}], "thread_id": "Thread-4", "execution_time": 0.021271944046020508, "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": "2023-02-15T16:03:49.686428Z", "completed_at": "2023-02-15T16:03:49.695008Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.700744Z", "completed_at": "2023-02-15T16:03:49.700755Z"}], "thread_id": "Thread-1", "execution_time": 0.020534038543701172, "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": "2023-02-15T16:03:49.686800Z", "completed_at": "2023-02-15T16:03:49.695338Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.701299Z", "completed_at": "2023-02-15T16:03:49.701302Z"}], "thread_id": "Thread-3", "execution_time": 0.02067089080810547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.695265Z", "completed_at": "2023-02-15T16:03:49.701871Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.703359Z", "completed_at": "2023-02-15T16:03:49.703363Z"}], "thread_id": "Thread-2", "execution_time": 0.01427912712097168, "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": "2023-02-15T16:03:49.703754Z", "completed_at": "2023-02-15T16:03:49.714915Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.719552Z", "completed_at": "2023-02-15T16:03:49.719559Z"}], "thread_id": "Thread-4", "execution_time": 0.017622947692871094, "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": "2023-02-15T16:03:49.704210Z", "completed_at": "2023-02-15T16:03:49.715070Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.719656Z", "completed_at": "2023-02-15T16:03:49.719661Z"}], "thread_id": "Thread-1", "execution_time": 0.017343997955322266, "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": "2023-02-15T16:03:49.707690Z", "completed_at": "2023-02-15T16:03:49.715395Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.720514Z", "completed_at": "2023-02-15T16:03:49.720517Z"}], "thread_id": "Thread-3", "execution_time": 0.017692089080810547, "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": "2023-02-15T16:03:49.715143Z", "completed_at": "2023-02-15T16:03:49.720577Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.721954Z", "completed_at": "2023-02-15T16:03:49.721957Z"}], "thread_id": "Thread-2", "execution_time": 0.011725187301635742, "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": "2023-02-15T16:03:49.722783Z", "completed_at": "2023-02-15T16:03:49.734816Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.740948Z", "completed_at": "2023-02-15T16:03:49.740956Z"}], "thread_id": "Thread-1", "execution_time": 0.01990199089050293, "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": "2023-02-15T16:03:49.722702Z", "completed_at": "2023-02-15T16:03:49.734890Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.741052Z", "completed_at": "2023-02-15T16:03:49.741056Z"}], "thread_id": "Thread-4", "execution_time": 0.020487308502197266, "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": "2023-02-15T16:03:49.729466Z", "completed_at": "2023-02-15T16:03:49.735760Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.742026Z", "completed_at": "2023-02-15T16:03:49.742030Z"}], "thread_id": "Thread-3", "execution_time": 0.02052617073059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.735038Z", "completed_at": "2023-02-15T16:03:49.741966Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.743342Z", "completed_at": "2023-02-15T16:03:49.743345Z"}], "thread_id": "Thread-2", "execution_time": 0.01442098617553711, "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": "2023-02-15T16:03:49.744400Z", "completed_at": "2023-02-15T16:03:49.754901Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.760236Z", "completed_at": "2023-02-15T16:03:49.760247Z"}], "thread_id": "Thread-1", "execution_time": 0.017848968505859375, "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": "2023-02-15T16:03:49.744484Z", "completed_at": "2023-02-15T16:03:49.754998Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.760342Z", "completed_at": "2023-02-15T16:03:49.760346Z"}], "thread_id": "Thread-4", "execution_time": 0.01793384552001953, "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": "2023-02-15T16:03:49.751234Z", "completed_at": "2023-02-15T16:03:49.755376Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.761193Z", "completed_at": "2023-02-15T16:03:49.761196Z"}], "thread_id": "Thread-3", "execution_time": 0.017916202545166016, "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": "2023-02-15T16:03:49.755083Z", "completed_at": "2023-02-15T16:03:49.761255Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.763069Z", "completed_at": "2023-02-15T16:03:49.763073Z"}], "thread_id": "Thread-2", "execution_time": 0.012819051742553711, "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": "2023-02-15T16:03:49.764247Z", "completed_at": "2023-02-15T16:03:49.777303Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.781535Z", "completed_at": "2023-02-15T16:03:49.781542Z"}], "thread_id": "Thread-4", "execution_time": 0.019412994384765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.763940Z", "completed_at": "2023-02-15T16:03:49.777497Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.781775Z", "completed_at": "2023-02-15T16:03:49.781779Z"}], "thread_id": "Thread-1", "execution_time": 0.020239830017089844, "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": "2023-02-15T16:03:49.772906Z", "completed_at": "2023-02-15T16:03:49.781325Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.782329Z", "completed_at": "2023-02-15T16:03:49.782332Z"}], "thread_id": "Thread-3", "execution_time": 0.01993274688720703, "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": "2023-02-15T16:03:49.777436Z", "completed_at": "2023-02-15T16:03:49.782234Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.783785Z", "completed_at": "2023-02-15T16:03:49.783788Z"}], "thread_id": "Thread-2", "execution_time": 0.01147317886352539, "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": "2023-02-15T16:03:49.785079Z", "completed_at": "2023-02-15T16:03:49.795056Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.799615Z", "completed_at": "2023-02-15T16:03:49.799622Z"}], "thread_id": "Thread-4", "execution_time": 0.0166170597076416, "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": "2023-02-15T16:03:49.785410Z", "completed_at": "2023-02-15T16:03:49.795472Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.800323Z", "completed_at": "2023-02-15T16:03:49.800327Z"}], "thread_id": "Thread-1", "execution_time": 0.016872167587280273, "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": "2023-02-15T16:03:49.788534Z", "completed_at": "2023-02-15T16:03:49.799477Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.800405Z", "completed_at": "2023-02-15T16:03:49.800408Z"}], "thread_id": "Thread-3", "execution_time": 0.016547203063964844, "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": "2023-02-15T16:03:49.795181Z", "completed_at": "2023-02-15T16:03:49.800463Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.801906Z", "completed_at": "2023-02-15T16:03:49.801909Z"}], "thread_id": "Thread-2", "execution_time": 0.014354944229125977, "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": "2023-02-15T16:03:49.802767Z", "completed_at": "2023-02-15T16:03:49.813400Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.821112Z", "completed_at": "2023-02-15T16:03:49.821119Z"}], "thread_id": "Thread-4", "execution_time": 0.02027106285095215, "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": "2023-02-15T16:03:49.806076Z", "completed_at": "2023-02-15T16:03:49.813852Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.821785Z", "completed_at": "2023-02-15T16:03:49.821789Z"}], "thread_id": "Thread-1", "execution_time": 0.020352840423583984, "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": "2023-02-15T16:03:49.806160Z", "completed_at": "2023-02-15T16:03:49.813914Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.821881Z", "completed_at": "2023-02-15T16:03:49.821885Z"}], "thread_id": "Thread-3", "execution_time": 0.020411014556884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.813641Z", "completed_at": "2023-02-15T16:03:49.821949Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.823817Z", "completed_at": "2023-02-15T16:03:49.823822Z"}], "thread_id": "Thread-2", "execution_time": 0.018390893936157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.824820Z", "completed_at": "2023-02-15T16:03:49.836179Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.836842Z", "completed_at": "2023-02-15T16:03:49.836849Z"}], "thread_id": "Thread-4", "execution_time": 0.01751399040222168, "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": "2023-02-15T16:03:49.828975Z", "completed_at": "2023-02-15T16:03:49.836704Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.840667Z", "completed_at": "2023-02-15T16:03:49.840672Z"}], "thread_id": "Thread-1", "execution_time": 0.0172579288482666, "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": "2023-02-15T16:03:49.829062Z", "completed_at": "2023-02-15T16:03:49.836764Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.840776Z", "completed_at": "2023-02-15T16:03:49.840780Z"}], "thread_id": "Thread-3", "execution_time": 0.01727604866027832, "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": "2023-02-15T16:03:49.836633Z", "completed_at": "2023-02-15T16:03:49.841023Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.842303Z", "completed_at": "2023-02-15T16:03:49.842306Z"}], "thread_id": "Thread-2", "execution_time": 0.013911962509155273, "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": "2023-02-15T16:03:49.842830Z", "completed_at": "2023-02-15T16:03:49.854267Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.860028Z", "completed_at": "2023-02-15T16:03:49.860034Z"}], "thread_id": "Thread-4", "execution_time": 0.024374008178710938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.848490Z", "completed_at": "2023-02-15T16:03:49.859940Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.866374Z", "completed_at": "2023-02-15T16:03:49.866379Z"}], "thread_id": "Thread-1", "execution_time": 0.024692058563232422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.848582Z", "completed_at": "2023-02-15T16:03:49.860101Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.866827Z", "completed_at": "2023-02-15T16:03:49.866831Z"}], "thread_id": "Thread-3", "execution_time": 0.02511882781982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.859850Z", "completed_at": "2023-02-15T16:03:49.866733Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.868143Z", "completed_at": "2023-02-15T16:03:49.868147Z"}], "thread_id": "Thread-2", "execution_time": 0.02019214630126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.868667Z", "completed_at": "2023-02-15T16:03:49.879070Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.883197Z", "completed_at": "2023-02-15T16:03:49.883204Z"}], "thread_id": "Thread-4", "execution_time": 0.018969297409057617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.875354Z", "completed_at": "2023-02-15T16:03:49.883265Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.886921Z", "completed_at": "2023-02-15T16:03:49.886925Z"}], "thread_id": "Thread-1", "execution_time": 0.019224882125854492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.875754Z", "completed_at": "2023-02-15T16:03:49.885975Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.887105Z", "completed_at": "2023-02-15T16:03:49.887109Z"}], "thread_id": "Thread-3", "execution_time": 0.018842697143554688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.883054Z", "completed_at": "2023-02-15T16:03:49.886796Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.888145Z", "completed_at": "2023-02-15T16:03:49.888149Z"}], "thread_id": "Thread-2", "execution_time": 0.013309955596923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.888550Z", "completed_at": "2023-02-15T16:03:49.893558Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.903842Z", "completed_at": "2023-02-15T16:03:49.903851Z"}], "thread_id": "Thread-4", "execution_time": 0.020499229431152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.893502Z", "completed_at": "2023-02-15T16:03:49.907351Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.908282Z", "completed_at": "2023-02-15T16:03:49.908286Z"}], "thread_id": "Thread-3", "execution_time": 0.019728899002075195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.893421Z", "completed_at": "2023-02-15T16:03:49.907425Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.908362Z", "completed_at": "2023-02-15T16:03:49.908364Z"}], "thread_id": "Thread-1", "execution_time": 0.02030801773071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:49.903660Z", "completed_at": "2023-02-15T16:03:49.908047Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.909364Z", "completed_at": "2023-02-15T16:03:49.909367Z"}], "thread_id": "Thread-2", "execution_time": 0.01687312126159668, "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": "2023-02-15T16:03:49.910158Z", "completed_at": "2023-02-15T16:03:49.914280Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.924378Z", "completed_at": "2023-02-15T16:03:49.924385Z"}], "thread_id": "Thread-4", "execution_time": 0.016242027282714844, "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": "2023-02-15T16:03:49.914044Z", "completed_at": "2023-02-15T16:03:49.924495Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.925381Z", "completed_at": "2023-02-15T16:03:49.925385Z"}], "thread_id": "Thread-3", "execution_time": 0.015783071517944336, "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": "2023-02-15T16:03:49.914145Z", "completed_at": "2023-02-15T16:03:49.924873Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.925778Z", "completed_at": "2023-02-15T16:03:49.925782Z"}], "thread_id": "Thread-1", "execution_time": 0.01599264144897461, "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": "2023-02-15T16:03:49.921470Z", "completed_at": "2023-02-15T16:03:49.925159Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.926245Z", "completed_at": "2023-02-15T16:03:49.926248Z"}], "thread_id": "Thread-2", "execution_time": 0.013168096542358398, "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": "2023-02-15T16:03:49.926730Z", "completed_at": "2023-02-15T16:03:49.931990Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.940792Z", "completed_at": "2023-02-15T16:03:49.940802Z"}], "thread_id": "Thread-4", "execution_time": 0.018611907958984375, "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": "2023-02-15T16:03:49.931921Z", "completed_at": "2023-02-15T16:03:49.943784Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.944793Z", "completed_at": "2023-02-15T16:03:49.944797Z"}], "thread_id": "Thread-3", "execution_time": 0.01818704605102539, "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": "2023-02-15T16:03:49.932151Z", "completed_at": "2023-02-15T16:03:49.944276Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.945180Z", "completed_at": "2023-02-15T16:03:49.945183Z"}], "thread_id": "Thread-1", "execution_time": 0.014922857284545898, "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": "2023-02-15T16:03:49.936674Z", "completed_at": "2023-02-15T16:03:49.944547Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.945622Z", "completed_at": "2023-02-15T16:03:49.945625Z"}], "thread_id": "Thread-2", "execution_time": 0.014854907989501953, "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": "2023-02-15T16:03:49.946093Z", "completed_at": "2023-02-15T16:03:49.951362Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.957707Z", "completed_at": "2023-02-15T16:03:49.957714Z"}], "thread_id": "Thread-4", "execution_time": 0.017015933990478516, "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": "2023-02-15T16:03:49.951302Z", "completed_at": "2023-02-15T16:03:49.961602Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.962530Z", "completed_at": "2023-02-15T16:03:49.962534Z"}], "thread_id": "Thread-3", "execution_time": 0.016543865203857422, "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": "2023-02-15T16:03:49.951516Z", "completed_at": "2023-02-15T16:03:49.962055Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.962922Z", "completed_at": "2023-02-15T16:03:49.962925Z"}], "thread_id": "Thread-1", "execution_time": 0.012984991073608398, "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": "2023-02-15T16:03:49.954361Z", "completed_at": "2023-02-15T16:03:49.962309Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.963346Z", "completed_at": "2023-02-15T16:03:49.963350Z"}], "thread_id": "Thread-2", "execution_time": 0.013118982315063477, "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": "2023-02-15T16:03:49.963856Z", "completed_at": "2023-02-15T16:03:49.968236Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.975661Z", "completed_at": "2023-02-15T16:03:49.975668Z"}], "thread_id": "Thread-4", "execution_time": 0.016237974166870117, "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": "2023-02-15T16:03:49.968178Z", "completed_at": "2023-02-15T16:03:49.978559Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.979529Z", "completed_at": "2023-02-15T16:03:49.979533Z"}], "thread_id": "Thread-3", "execution_time": 0.015771865844726562, "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": "2023-02-15T16:03:49.968377Z", "completed_at": "2023-02-15T16:03:49.979025Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.979919Z", "completed_at": "2023-02-15T16:03:49.979922Z"}], "thread_id": "Thread-1", "execution_time": 0.013110876083374023, "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": "2023-02-15T16:03:49.971505Z", "completed_at": "2023-02-15T16:03:49.979207Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.980291Z", "completed_at": "2023-02-15T16:03:49.980294Z"}], "thread_id": "Thread-2", "execution_time": 0.013184785842895508, "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": "2023-02-15T16:03:49.981187Z", "completed_at": "2023-02-15T16:03:49.985864Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.995298Z", "completed_at": "2023-02-15T16:03:49.995307Z"}], "thread_id": "Thread-4", "execution_time": 0.016088247299194336, "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": "2023-02-15T16:03:49.985607Z", "completed_at": "2023-02-15T16:03:49.995398Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.996449Z", "completed_at": "2023-02-15T16:03:49.996453Z"}], "thread_id": "Thread-3", "execution_time": 0.01581406593322754, "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": "2023-02-15T16:03:49.985801Z", "completed_at": "2023-02-15T16:03:49.995498Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.996534Z", "completed_at": "2023-02-15T16:03:49.996537Z"}], "thread_id": "Thread-1", "execution_time": 0.012660026550292969, "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": "2023-02-15T16:03:49.989090Z", "completed_at": "2023-02-15T16:03:49.995928Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:49.996894Z", "completed_at": "2023-02-15T16:03:49.996897Z"}], "thread_id": "Thread-2", "execution_time": 0.01267695426940918, "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": "2023-02-15T16:03:49.998300Z", "completed_at": "2023-02-15T16:03:50.008790Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.020086Z", "completed_at": "2023-02-15T16:03:50.020095Z"}], "thread_id": "Thread-4", "execution_time": 0.023993253707885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.int_facebook_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.008728Z", "completed_at": "2023-02-15T16:03:50.020269Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.021396Z", "completed_at": "2023-02-15T16:03:50.021400Z"}], "thread_id": "Thread-1", "execution_time": 0.023293018341064453, "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": "2023-02-15T16:03:50.008619Z", "completed_at": "2023-02-15T16:03:50.020750Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.021730Z", "completed_at": "2023-02-15T16:03:50.021734Z"}], "thread_id": "Thread-3", "execution_time": 0.023909807205200195, "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": "2023-02-15T16:03:50.008877Z", "completed_at": "2023-02-15T16:03:50.020837Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.021811Z", "completed_at": "2023-02-15T16:03:50.021814Z"}], "thread_id": "Thread-2", "execution_time": 0.014966964721679688, "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": "2023-02-15T16:03:50.023268Z", "completed_at": "2023-02-15T16:03:50.027634Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.101299Z", "completed_at": "2023-02-15T16:03:50.101307Z"}], "thread_id": "Thread-4", "execution_time": 0.08040380477905273, "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": "2023-02-15T16:03:50.027571Z", "completed_at": "2023-02-15T16:03:50.101577Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.102599Z", "completed_at": "2023-02-15T16:03:50.102602Z"}], "thread_id": "Thread-1", "execution_time": 0.07960295677185059, "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": "2023-02-15T16:03:50.027809Z", "completed_at": "2023-02-15T16:03:50.102006Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.102941Z", "completed_at": "2023-02-15T16:03:50.102943Z"}], "thread_id": "Thread-2", "execution_time": 0.07655978202819824, "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": "2023-02-15T16:03:50.027725Z", "completed_at": "2023-02-15T16:03:50.102088Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.103015Z", "completed_at": "2023-02-15T16:03:50.103019Z"}], "thread_id": "Thread-3", "execution_time": 0.07706069946289062, "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": "2023-02-15T16:03:50.104118Z", "completed_at": "2023-02-15T16:03:50.108441Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.119110Z", "completed_at": "2023-02-15T16:03:50.119117Z"}], "thread_id": "Thread-4", "execution_time": 0.016974925994873047, "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": "2023-02-15T16:03:50.108376Z", "completed_at": "2023-02-15T16:03:50.119370Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.120326Z", "completed_at": "2023-02-15T16:03:50.120329Z"}], "thread_id": "Thread-1", "execution_time": 0.016463041305541992, "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": "2023-02-15T16:03:50.108523Z", "completed_at": "2023-02-15T16:03:50.119788Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.120634Z", "completed_at": "2023-02-15T16:03:50.120637Z"}], "thread_id": "Thread-2", "execution_time": 0.013662099838256836, "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": "2023-02-15T16:03:50.108616Z", "completed_at": "2023-02-15T16:03:50.120248Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.121367Z", "completed_at": "2023-02-15T16:03:50.121370Z"}], "thread_id": "Thread-3", "execution_time": 0.014030933380126953, "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": "2023-02-15T16:03:50.121527Z", "completed_at": "2023-02-15T16:03:50.125967Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.133050Z", "completed_at": "2023-02-15T16:03:50.133056Z"}], "thread_id": "Thread-4", "execution_time": 0.016880273818969727, "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": "2023-02-15T16:03:50.125906Z", "completed_at": "2023-02-15T16:03:50.136827Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.138084Z", "completed_at": "2023-02-15T16:03:50.138088Z"}], "thread_id": "Thread-1", "execution_time": 0.016743898391723633, "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": "2023-02-15T16:03:50.126041Z", "completed_at": "2023-02-15T16:03:50.137528Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.138539Z", "completed_at": "2023-02-15T16:03:50.138542Z"}], "thread_id": "Thread-2", "execution_time": 0.014159917831420898, "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": "2023-02-15T16:03:50.132911Z", "completed_at": "2023-02-15T16:03:50.137817Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.138991Z", "completed_at": "2023-02-15T16:03:50.138994Z"}], "thread_id": "Thread-3", "execution_time": 0.014036893844604492, "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": "2023-02-15T16:03:50.139481Z", "completed_at": "2023-02-15T16:03:50.144596Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.152482Z", "completed_at": "2023-02-15T16:03:50.152490Z"}], "thread_id": "Thread-4", "execution_time": 0.01830005645751953, "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": "2023-02-15T16:03:50.144536Z", "completed_at": "2023-02-15T16:03:50.156081Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.157076Z", "completed_at": "2023-02-15T16:03:50.157080Z"}], "thread_id": "Thread-1", "execution_time": 0.01772308349609375, "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": "2023-02-15T16:03:50.144751Z", "completed_at": "2023-02-15T16:03:50.156202Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.157149Z", "completed_at": "2023-02-15T16:03:50.157153Z"}], "thread_id": "Thread-2", "execution_time": 0.014191150665283203, "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": "2023-02-15T16:03:50.148761Z", "completed_at": "2023-02-15T16:03:50.156829Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.158069Z", "completed_at": "2023-02-15T16:03:50.158072Z"}], "thread_id": "Thread-3", "execution_time": 0.014480829238891602, "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": "2023-02-15T16:03:50.158783Z", "completed_at": "2023-02-15T16:03:50.163047Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.173873Z", "completed_at": "2023-02-15T16:03:50.173881Z"}], "thread_id": "Thread-4", "execution_time": 0.017039060592651367, "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": "2023-02-15T16:03:50.162915Z", "completed_at": "2023-02-15T16:03:50.173960Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.175177Z", "completed_at": "2023-02-15T16:03:50.175183Z"}], "thread_id": "Thread-2", "execution_time": 0.017025232315063477, "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": "2023-02-15T16:03:50.162817Z", "completed_at": "2023-02-15T16:03:50.174025Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.175366Z", "completed_at": "2023-02-15T16:03:50.175373Z"}], "thread_id": "Thread-1", "execution_time": 0.017573118209838867, "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": "2023-02-15T16:03:50.170358Z", "completed_at": "2023-02-15T16:03:50.174989Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.176705Z", "completed_at": "2023-02-15T16:03:50.176710Z"}], "thread_id": "Thread-3", "execution_time": 0.014909982681274414, "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": "2023-02-15T16:03:50.177210Z", "completed_at": "2023-02-15T16:03:50.181700Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.189654Z", "completed_at": "2023-02-15T16:03:50.189663Z"}], "thread_id": "Thread-4", "execution_time": 0.01761484146118164, "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": "2023-02-15T16:03:50.181637Z", "completed_at": "2023-02-15T16:03:50.192706Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.193779Z", "completed_at": "2023-02-15T16:03:50.193784Z"}], "thread_id": "Thread-1", "execution_time": 0.01689291000366211, "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": "2023-02-15T16:03:50.181554Z", "completed_at": "2023-02-15T16:03:50.192824Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.193893Z", "completed_at": "2023-02-15T16:03:50.193897Z"}], "thread_id": "Thread-2", "execution_time": 0.017429828643798828, "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": "2023-02-15T16:03:50.189432Z", "completed_at": "2023-02-15T16:03:50.193617Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.195217Z", "completed_at": "2023-02-15T16:03:50.195220Z"}], "thread_id": "Thread-3", "execution_time": 0.014497041702270508, "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": "2023-02-15T16:03:50.195564Z", "completed_at": "2023-02-15T16:03:50.200226Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.208207Z", "completed_at": "2023-02-15T16:03:50.208216Z"}], "thread_id": "Thread-4", "execution_time": 0.017308950424194336, "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": "2023-02-15T16:03:50.200164Z", "completed_at": "2023-02-15T16:03:50.211451Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.212276Z", "completed_at": "2023-02-15T16:03:50.212279Z"}], "thread_id": "Thread-2", "execution_time": 0.016609668731689453, "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": "2023-02-15T16:03:50.200068Z", "completed_at": "2023-02-15T16:03:50.211509Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.212433Z", "completed_at": "2023-02-15T16:03:50.212436Z"}], "thread_id": "Thread-1", "execution_time": 0.0171658992767334, "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": "2023-02-15T16:03:50.208025Z", "completed_at": "2023-02-15T16:03:50.211880Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.212847Z", "completed_at": "2023-02-15T16:03:50.212850Z"}], "thread_id": "Thread-3", "execution_time": 0.013760805130004883, "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": "2023-02-15T16:03:50.213187Z", "completed_at": "2023-02-15T16:03:50.219343Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.226642Z", "completed_at": "2023-02-15T16:03:50.226656Z"}], "thread_id": "Thread-4", "execution_time": 0.019416093826293945, "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": "2023-02-15T16:03:50.219425Z", "completed_at": "2023-02-15T16:03:50.231164Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.232225Z", "completed_at": "2023-02-15T16:03:50.232230Z"}], "thread_id": "Thread-2", "execution_time": 0.0147552490234375, "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": "2023-02-15T16:03:50.219601Z", "completed_at": "2023-02-15T16:03:50.231644Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.232648Z", "completed_at": "2023-02-15T16:03:50.232651Z"}], "thread_id": "Thread-1", "execution_time": 0.014693021774291992, "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": "2023-02-15T16:03:50.222562Z", "completed_at": "2023-02-15T16:03:50.232051Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.233132Z", "completed_at": "2023-02-15T16:03:50.233136Z"}], "thread_id": "Thread-3", "execution_time": 0.014969825744628906, "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": "2023-02-15T16:03:50.233626Z", "completed_at": "2023-02-15T16:03:50.239180Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.246460Z", "completed_at": "2023-02-15T16:03:50.246469Z"}], "thread_id": "Thread-4", "execution_time": 0.019214868545532227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.239115Z", "completed_at": "2023-02-15T16:03:50.251145Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.252205Z", "completed_at": "2023-02-15T16:03:50.252214Z"}], "thread_id": "Thread-2", "execution_time": 0.018594026565551758, "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": "2023-02-15T16:03:50.239351Z", "completed_at": "2023-02-15T16:03:50.251890Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.253246Z", "completed_at": "2023-02-15T16:03:50.253251Z"}], "thread_id": "Thread-1", "execution_time": 0.015690088272094727, "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": "2023-02-15T16:03:50.242561Z", "completed_at": "2023-02-15T16:03:50.252344Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.253541Z", "completed_at": "2023-02-15T16:03:50.253544Z"}], "thread_id": "Thread-3", "execution_time": 0.015929222106933594, "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": "2023-02-15T16:03:50.253895Z", "completed_at": "2023-02-15T16:03:50.258799Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.264301Z", "completed_at": "2023-02-15T16:03:50.264309Z"}], "thread_id": "Thread-4", "execution_time": 0.021413087844848633, "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": "2023-02-15T16:03:50.258300Z", "completed_at": "2023-02-15T16:03:50.273613Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.275127Z", "completed_at": "2023-02-15T16:03:50.275134Z"}], "thread_id": "Thread-2", "execution_time": 0.021990060806274414, "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": "2023-02-15T16:03:50.264087Z", "completed_at": "2023-02-15T16:03:50.274773Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.276262Z", "completed_at": "2023-02-15T16:03:50.276267Z"}], "thread_id": "Thread-1", "execution_time": 0.01898193359375, "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": "2023-02-15T16:03:50.264210Z", "completed_at": "2023-02-15T16:03:50.275003Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.276361Z", "completed_at": "2023-02-15T16:03:50.276365Z"}], "thread_id": "Thread-3", "execution_time": 0.01890110969543457, "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": "2023-02-15T16:03:50.276659Z", "completed_at": "2023-02-15T16:03:50.281972Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.287436Z", "completed_at": "2023-02-15T16:03:50.287446Z"}], "thread_id": "Thread-4", "execution_time": 0.021725893020629883, "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": "2023-02-15T16:03:50.281907Z", "completed_at": "2023-02-15T16:03:50.291530Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.297621Z", "completed_at": "2023-02-15T16:03:50.297625Z"}], "thread_id": "Thread-2", "execution_time": 0.02080702781677246, "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": "2023-02-15T16:03:50.287156Z", "completed_at": "2023-02-15T16:03:50.297514Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.298585Z", "completed_at": "2023-02-15T16:03:50.298589Z"}], "thread_id": "Thread-1", "execution_time": 0.01776409149169922, "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": "2023-02-15T16:03:50.287299Z", "completed_at": "2023-02-15T16:03:50.297706Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.298816Z", "completed_at": "2023-02-15T16:03:50.298819Z"}], "thread_id": "Thread-3", "execution_time": 0.01807093620300293, "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": "2023-02-15T16:03:50.298896Z", "completed_at": "2023-02-15T16:03:50.309824Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.314453Z", "completed_at": "2023-02-15T16:03:50.314460Z"}], "thread_id": "Thread-4", "execution_time": 0.02288985252380371, "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": "2023-02-15T16:03:50.303905Z", "completed_at": "2023-02-15T16:03:50.314530Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.321362Z", "completed_at": "2023-02-15T16:03:50.321366Z"}], "thread_id": "Thread-2", "execution_time": 0.022825956344604492, "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": "2023-02-15T16:03:50.311164Z", "completed_at": "2023-02-15T16:03:50.321020Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.322331Z", "completed_at": "2023-02-15T16:03:50.322338Z"}], "thread_id": "Thread-1", "execution_time": 0.019335031509399414, "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": "2023-02-15T16:03:50.311391Z", "completed_at": "2023-02-15T16:03:50.321287Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.322529Z", "completed_at": "2023-02-15T16:03:50.322532Z"}], "thread_id": "Thread-3", "execution_time": 0.019311904907226562, "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__match_type.8b1ebd50a3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.323094Z", "completed_at": "2023-02-15T16:03:50.327900Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.336272Z", "completed_at": "2023-02-15T16:03:50.336280Z"}], "thread_id": "Thread-4", "execution_time": 0.018130064010620117, "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": "2023-02-15T16:03:50.327758Z", "completed_at": "2023-02-15T16:03:50.339358Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.340376Z", "completed_at": "2023-02-15T16:03:50.340380Z"}], "thread_id": "Thread-2", "execution_time": 0.017718076705932617, "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": "2023-02-15T16:03:50.332533Z", "completed_at": "2023-02-15T16:03:50.339857Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.340808Z", "completed_at": "2023-02-15T16:03:50.340813Z"}], "thread_id": "Thread-1", "execution_time": 0.014563798904418945, "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": "2023-02-15T16:03:50.332836Z", "completed_at": "2023-02-15T16:03:50.340039Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.341389Z", "completed_at": "2023-02-15T16:03:50.341395Z"}], "thread_id": "Thread-3", "execution_time": 0.014938116073608398, "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": "2023-02-15T16:03:50.342662Z", "completed_at": "2023-02-15T16:03:50.348699Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.360177Z", "completed_at": "2023-02-15T16:03:50.360192Z"}], "thread_id": "Thread-4", "execution_time": 0.02025008201599121, "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": "2023-02-15T16:03:50.348555Z", "completed_at": "2023-02-15T16:03:50.360296Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.361374Z", "completed_at": "2023-02-15T16:03:50.361377Z"}], "thread_id": "Thread-2", "execution_time": 0.019093036651611328, "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": "2023-02-15T16:03:50.348775Z", "completed_at": "2023-02-15T16:03:50.361044Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.362212Z", "completed_at": "2023-02-15T16:03:50.362216Z"}], "thread_id": "Thread-1", "execution_time": 0.01515507698059082, "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": "2023-02-15T16:03:50.353173Z", "completed_at": "2023-02-15T16:03:50.361221Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.362401Z", "completed_at": "2023-02-15T16:03:50.362404Z"}], "thread_id": "Thread-3", "execution_time": 0.015100240707397461, "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": "2023-02-15T16:03:50.362943Z", "completed_at": "2023-02-15T16:03:50.367622Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.375985Z", "completed_at": "2023-02-15T16:03:50.375992Z"}], "thread_id": "Thread-4", "execution_time": 0.017982959747314453, "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": "2023-02-15T16:03:50.367487Z", "completed_at": "2023-02-15T16:03:50.376071Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.380097Z", "completed_at": "2023-02-15T16:03:50.380101Z"}], "thread_id": "Thread-2", "execution_time": 0.017362117767333984, "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": "2023-02-15T16:03:50.371620Z", "completed_at": "2023-02-15T16:03:50.379789Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.380812Z", "completed_at": "2023-02-15T16:03:50.380815Z"}], "thread_id": "Thread-1", "execution_time": 0.014365911483764648, "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": "2023-02-15T16:03:50.371803Z", "completed_at": "2023-02-15T16:03:50.380234Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.381451Z", "completed_at": "2023-02-15T16:03:50.381454Z"}], "thread_id": "Thread-3", "execution_time": 0.014873981475830078, "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": "2023-02-15T16:03:50.381529Z", "completed_at": "2023-02-15T16:03:50.386164Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.394374Z", "completed_at": "2023-02-15T16:03:50.394382Z"}], "thread_id": "Thread-4", "execution_time": 0.017155885696411133, "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": "2023-02-15T16:03:50.385764Z", "completed_at": "2023-02-15T16:03:50.394448Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.398012Z", "completed_at": "2023-02-15T16:03:50.398017Z"}], "thread_id": "Thread-2", "execution_time": 0.017199277877807617, "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": "2023-02-15T16:03:50.391252Z", "completed_at": "2023-02-15T16:03:50.397684Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.399045Z", "completed_at": "2023-02-15T16:03:50.399049Z"}], "thread_id": "Thread-1", "execution_time": 0.014271974563598633, "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": "2023-02-15T16:03:50.394286Z", "completed_at": "2023-02-15T16:03:50.398079Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.399342Z", "completed_at": "2023-02-15T16:03:50.399345Z"}], "thread_id": "Thread-3", "execution_time": 0.014165878295898438, "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": "2023-02-15T16:03:50.399690Z", "completed_at": "2023-02-15T16:03:50.409193Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.412801Z", "completed_at": "2023-02-15T16:03:50.412810Z"}], "thread_id": "Thread-4", "execution_time": 0.018041133880615234, "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": "2023-02-15T16:03:50.405020Z", "completed_at": "2023-02-15T16:03:50.412634Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.416485Z", "completed_at": "2023-02-15T16:03:50.416489Z"}], "thread_id": "Thread-2", "execution_time": 0.017273902893066406, "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": "2023-02-15T16:03:50.409393Z", "completed_at": "2023-02-15T16:03:50.416553Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.417824Z", "completed_at": "2023-02-15T16:03:50.417827Z"}], "thread_id": "Thread-1", "execution_time": 0.013684988021850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.409641Z", "completed_at": "2023-02-15T16:03:50.416732Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.417976Z", "completed_at": "2023-02-15T16:03:50.417979Z"}], "thread_id": "Thread-3", "execution_time": 0.013625144958496094, "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": "2023-02-15T16:03:50.418534Z", "completed_at": "2023-02-15T16:03:50.427614Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.430720Z", "completed_at": "2023-02-15T16:03:50.430727Z"}], "thread_id": "Thread-4", "execution_time": 0.017066001892089844, "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": "2023-02-15T16:03:50.422925Z", "completed_at": "2023-02-15T16:03:50.427986Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.434496Z", "completed_at": "2023-02-15T16:03:50.434500Z"}], "thread_id": "Thread-2", "execution_time": 0.017015933990478516, "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": "2023-02-15T16:03:50.427837Z", "completed_at": "2023-02-15T16:03:50.434606Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.435833Z", "completed_at": "2023-02-15T16:03:50.435838Z"}], "thread_id": "Thread-1", "execution_time": 0.013517141342163086, "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": "2023-02-15T16:03:50.428057Z", "completed_at": "2023-02-15T16:03:50.435192Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.436273Z", "completed_at": "2023-02-15T16:03:50.436277Z"}], "thread_id": "Thread-3", "execution_time": 0.013877153396606445, "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": "2023-02-15T16:03:50.436702Z", "completed_at": "2023-02-15T16:03:50.444051Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.449281Z", "completed_at": "2023-02-15T16:03:50.449289Z"}], "thread_id": "Thread-4", "execution_time": 0.01721501350402832, "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": "2023-02-15T16:03:50.440311Z", "completed_at": "2023-02-15T16:03:50.444361Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.452241Z", "completed_at": "2023-02-15T16:03:50.452248Z"}], "thread_id": "Thread-2", "execution_time": 0.016953229904174805, "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": "2023-02-15T16:03:50.444275Z", "completed_at": "2023-02-15T16:03:50.452731Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.453771Z", "completed_at": "2023-02-15T16:03:50.453774Z"}], "thread_id": "Thread-1", "execution_time": 0.01380300521850586, "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": "2023-02-15T16:03:50.444509Z", "completed_at": "2023-02-15T16:03:50.453341Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.454481Z", "completed_at": "2023-02-15T16:03:50.454484Z"}], "thread_id": "Thread-3", "execution_time": 0.011298894882202148, "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": "2023-02-15T16:03:50.454653Z", "completed_at": "2023-02-15T16:03:50.477966Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.497040Z", "completed_at": "2023-02-15T16:03:50.497047Z"}], "thread_id": "Thread-4", "execution_time": 0.047591209411621094, "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": "2023-02-15T16:03:50.455128Z", "completed_at": "2023-02-15T16:03:50.496582Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.501346Z", "completed_at": "2023-02-15T16:03:50.501350Z"}], "thread_id": "Thread-2", "execution_time": 0.048010826110839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.478042Z", "completed_at": "2023-02-15T16:03:50.501261Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.502357Z", "completed_at": "2023-02-15T16:03:50.502360Z"}], "thread_id": "Thread-1", "execution_time": 0.044902801513671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.496924Z", "completed_at": "2023-02-15T16:03:50.502067Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.503461Z", "completed_at": "2023-02-15T16:03:50.503465Z"}], "thread_id": "Thread-3", "execution_time": 0.026484012603759766, "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": "2023-02-15T16:03:50.503538Z", "completed_at": "2023-02-15T16:03:50.511128Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.515256Z", "completed_at": "2023-02-15T16:03:50.515262Z"}], "thread_id": "Thread-4", "execution_time": 0.016101837158203125, "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": "2023-02-15T16:03:50.507832Z", "completed_at": "2023-02-15T16:03:50.511485Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.518460Z", "completed_at": "2023-02-15T16:03:50.518464Z"}], "thread_id": "Thread-2", "execution_time": 0.015913009643554688, "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": "2023-02-15T16:03:50.511206Z", "completed_at": "2023-02-15T16:03:50.518395Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.519413Z", "completed_at": "2023-02-15T16:03:50.519417Z"}], "thread_id": "Thread-1", "execution_time": 0.012333154678344727, "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": "2023-02-15T16:03:50.515176Z", "completed_at": "2023-02-15T16:03:50.519333Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.520338Z", "completed_at": "2023-02-15T16:03:50.520341Z"}], "thread_id": "Thread-3", "execution_time": 0.013310909271240234, "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": "2023-02-15T16:03:50.520257Z", "completed_at": "2023-02-15T16:03:50.528817Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.532197Z", "completed_at": "2023-02-15T16:03:50.532204Z"}], "thread_id": "Thread-4", "execution_time": 0.013537883758544922, "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": "2023-02-15T16:03:50.524587Z", "completed_at": "2023-02-15T16:03:50.532107Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.535786Z", "completed_at": "2023-02-15T16:03:50.535793Z"}], "thread_id": "Thread-2", "execution_time": 0.01635909080505371, "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": "2023-02-15T16:03:50.529182Z", "completed_at": "2023-02-15T16:03:50.535679Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.536859Z", "completed_at": "2023-02-15T16:03:50.536863Z"}], "thread_id": "Thread-1", "execution_time": 0.013025999069213867, "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": "2023-02-15T16:03:50.532291Z", "completed_at": "2023-02-15T16:03:50.536781Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.537790Z", "completed_at": "2023-02-15T16:03:50.537793Z"}], "thread_id": "Thread-3", "execution_time": 0.014282941818237305, "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": "2023-02-15T16:03:50.537712Z", "completed_at": "2023-02-15T16:03:50.546627Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.550157Z", "completed_at": "2023-02-15T16:03:50.550163Z"}], "thread_id": "Thread-4", "execution_time": 0.014060735702514648, "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": "2023-02-15T16:03:50.543584Z", "completed_at": "2023-02-15T16:03:50.550061Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.553333Z", "completed_at": "2023-02-15T16:03:50.553337Z"}], "thread_id": "Thread-2", "execution_time": 0.016369104385375977, "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": "2023-02-15T16:03:50.546959Z", "completed_at": "2023-02-15T16:03:50.553258Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.554216Z", "completed_at": "2023-02-15T16:03:50.554219Z"}], "thread_id": "Thread-1", "execution_time": 0.011332035064697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.550247Z", "completed_at": "2023-02-15T16:03:50.554271Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.555316Z", "completed_at": "2023-02-15T16:03:50.555320Z"}], "thread_id": "Thread-3", "execution_time": 0.013370037078857422, "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": "2023-02-15T16:03:50.555122Z", "completed_at": "2023-02-15T16:03:50.563328Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.567059Z", "completed_at": "2023-02-15T16:03:50.567065Z"}], "thread_id": "Thread-4", "execution_time": 0.01365208625793457, "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": "2023-02-15T16:03:50.560230Z", "completed_at": "2023-02-15T16:03:50.566967Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.571465Z", "completed_at": "2023-02-15T16:03:50.571470Z"}], "thread_id": "Thread-2", "execution_time": 0.01717829704284668, "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": "2023-02-15T16:03:50.563429Z", "completed_at": "2023-02-15T16:03:50.567402Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.572200Z", "completed_at": "2023-02-15T16:03:50.572203Z"}], "thread_id": "Thread-1", "execution_time": 0.013119935989379883, "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": "2023-02-15T16:03:50.567210Z", "completed_at": "2023-02-15T16:03:50.572995Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.577394Z", "completed_at": "2023-02-15T16:03:50.577399Z"}], "thread_id": "Thread-3", "execution_time": 0.014316082000732422, "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": "2023-02-15T16:03:50.573450Z", "completed_at": "2023-02-15T16:03:50.580728Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.584038Z", "completed_at": "2023-02-15T16:03:50.584043Z"}], "thread_id": "Thread-4", "execution_time": 0.012232065200805664, "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": "2023-02-15T16:03:50.577484Z", "completed_at": "2023-02-15T16:03:50.583920Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.584822Z", "completed_at": "2023-02-15T16:03:50.584826Z"}], "thread_id": "Thread-2", "execution_time": 0.016087055206298828, "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": "2023-02-15T16:03:50.580663Z", "completed_at": "2023-02-15T16:03:50.584185Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.588917Z", "completed_at": "2023-02-15T16:03:50.588923Z"}], "thread_id": "Thread-1", "execution_time": 0.016001224517822266, "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": "2023-02-15T16:03:50.584657Z", "completed_at": "2023-02-15T16:03:50.589950Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.590945Z", "completed_at": "2023-02-15T16:03:50.590949Z"}], "thread_id": "Thread-3", "execution_time": 0.01115107536315918, "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": "2023-02-15T16:03:50.590558Z", "completed_at": "2023-02-15T16:03:50.597841Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.601218Z", "completed_at": "2023-02-15T16:03:50.601223Z"}], "thread_id": "Thread-4", "execution_time": 0.012377262115478516, "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": "2023-02-15T16:03:50.594603Z", "completed_at": "2023-02-15T16:03:50.601004Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.601798Z", "completed_at": "2023-02-15T16:03:50.601802Z"}], "thread_id": "Thread-2", "execution_time": 0.10841798782348633, "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": "2023-02-15T16:03:50.595017Z", "completed_at": "2023-02-15T16:03:50.601160Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.614489Z", "completed_at": "2023-02-15T16:03:50.614499Z"}], "thread_id": "Thread-1", "execution_time": 0.10832595825195312, "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": "2023-02-15T16:03:50.700306Z", "completed_at": "2023-02-15T16:03:50.710923Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.711595Z", "completed_at": "2023-02-15T16:03:50.711601Z"}], "thread_id": "Thread-4", "execution_time": 0.0167539119720459, "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": "2023-02-15T16:03:50.704954Z", "completed_at": "2023-02-15T16:03:50.711457Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.716158Z", "completed_at": "2023-02-15T16:03:50.716168Z"}], "thread_id": "Thread-1", "execution_time": 0.01684713363647461, "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": "2023-02-15T16:03:50.704849Z", "completed_at": "2023-02-15T16:03:50.711533Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.716331Z", "completed_at": "2023-02-15T16:03:50.716339Z"}], "thread_id": "Thread-2", "execution_time": 0.01734304428100586, "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": "2023-02-15T16:03:50.711383Z", "completed_at": "2023-02-15T16:03:50.716620Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.717960Z", "completed_at": "2023-02-15T16:03:50.717966Z"}], "thread_id": "Thread-3", "execution_time": 0.013821840286254883, "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": "2023-02-15T16:03:50.718666Z", "completed_at": "2023-02-15T16:03:50.729737Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.730282Z", "completed_at": "2023-02-15T16:03:50.730289Z"}], "thread_id": "Thread-4", "execution_time": 0.03125405311584473, "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": "2023-02-15T16:03:50.723793Z", "completed_at": "2023-02-15T16:03:50.730356Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.758799Z", "completed_at": "2023-02-15T16:03:50.758811Z"}], "thread_id": "Thread-1", "execution_time": 0.04163503646850586, "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": "2023-02-15T16:03:50.723891Z", "completed_at": "2023-02-15T16:03:50.730412Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.758958Z", "completed_at": "2023-02-15T16:03:50.758963Z"}], "thread_id": "Thread-2", "execution_time": 0.04170513153076172, "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": "2023-02-15T16:03:50.760754Z", "completed_at": "2023-02-15T16:03:50.766268Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.776151Z", "completed_at": "2023-02-15T16:03:50.776162Z"}], "thread_id": "Thread-4", "execution_time": 0.017712831497192383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.766193Z", "completed_at": "2023-02-15T16:03:50.776407Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.777586Z", "completed_at": "2023-02-15T16:03:50.777590Z"}], "thread_id": "Thread-1", "execution_time": 0.017194032669067383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.766458Z", "completed_at": "2023-02-15T16:03:50.776602Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.777666Z", "completed_at": "2023-02-15T16:03:50.777669Z"}], "thread_id": "Thread-2", "execution_time": 0.017228126525878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.766547Z", "completed_at": "2023-02-15T16:03:50.777067Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.777995Z", "completed_at": "2023-02-15T16:03:50.777997Z"}], "thread_id": "Thread-3", "execution_time": 0.013436079025268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.802787Z", "completed_at": "2023-02-15T16:03:50.830014Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.830804Z", "completed_at": "2023-02-15T16:03:50.830808Z"}], "thread_id": "Thread-1", "execution_time": 0.055502891540527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.802967Z", "completed_at": "2023-02-15T16:03:50.830143Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.834417Z", "completed_at": "2023-02-15T16:03:50.834424Z"}], "thread_id": "Thread-2", "execution_time": 0.05579113960266113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.830358Z", "completed_at": "2023-02-15T16:03:50.836186Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.837942Z", "completed_at": "2023-02-15T16:03:50.837949Z"}], "thread_id": "Thread-4", "execution_time": 0.011705875396728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.837843Z", "completed_at": "2023-02-15T16:03:50.854559Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.859492Z", "completed_at": "2023-02-15T16:03:50.859499Z"}], "thread_id": "Thread-3", "execution_time": 0.024271249771118164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.841687Z", "completed_at": "2023-02-15T16:03:50.859691Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.863523Z", "completed_at": "2023-02-15T16:03:50.863528Z"}], "thread_id": "Thread-2", "execution_time": 0.026684284210205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.859618Z", "completed_at": "2023-02-15T16:03:50.863796Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.864967Z", "completed_at": "2023-02-15T16:03:50.864970Z"}], "thread_id": "Thread-4", "execution_time": 0.006721019744873047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.865043Z", "completed_at": "2023-02-15T16:03:50.875706Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.879025Z", "completed_at": "2023-02-15T16:03:50.879031Z"}], "thread_id": "Thread-3", "execution_time": 0.018266916275024414, "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": "2023-02-15T16:03:50.865343Z", "completed_at": "2023-02-15T16:03:50.878638Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.881844Z", "completed_at": "2023-02-15T16:03:50.881850Z"}], "thread_id": "Thread-1", "execution_time": 0.018217086791992188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.875233Z", "completed_at": "2023-02-15T16:03:50.879090Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.882896Z", "completed_at": "2023-02-15T16:03:50.882900Z"}], "thread_id": "Thread-2", "execution_time": 0.018399953842163086, "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": "2023-02-15T16:03:50.878861Z", "completed_at": "2023-02-15T16:03:50.883079Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.884200Z", "completed_at": "2023-02-15T16:03:50.884205Z"}], "thread_id": "Thread-4", "execution_time": 0.009415864944458008, "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": "2023-02-15T16:03:50.884291Z", "completed_at": "2023-02-15T16:03:50.901885Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.925754Z", "completed_at": "2023-02-15T16:03:50.925760Z"}], "thread_id": "Thread-3", "execution_time": 0.04653620719909668, "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": "2023-02-15T16:03:50.884623Z", "completed_at": "2023-02-15T16:03:50.913748Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.925933Z", "completed_at": "2023-02-15T16:03:50.925937Z"}], "thread_id": "Thread-1", "execution_time": 0.046343088150024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.925673Z", "completed_at": "2023-02-15T16:03:50.930793Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.932154Z", "completed_at": "2023-02-15T16:03:50.932159Z"}], "thread_id": "Thread-4", "execution_time": 0.03732776641845703, "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": "2023-02-15T16:03:50.932305Z", "completed_at": "2023-02-15T16:03:50.944147Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.947371Z", "completed_at": "2023-02-15T16:03:50.947380Z"}], "thread_id": "Thread-3", "execution_time": 0.016805171966552734, "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": "2023-02-15T16:03:50.932382Z", "completed_at": "2023-02-15T16:03:50.944229Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.947471Z", "completed_at": "2023-02-15T16:03:50.947474Z"}], "thread_id": "Thread-1", "execution_time": 0.016854047775268555, "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": "2023-02-15T16:03:50.932791Z", "completed_at": "2023-02-15T16:03:50.944374Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.947591Z", "completed_at": "2023-02-15T16:03:50.947593Z"}], "thread_id": "Thread-2", "execution_time": 0.0167999267578125, "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": "2023-02-15T16:03:50.944305Z", "completed_at": "2023-02-15T16:03:50.948500Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.949663Z", "completed_at": "2023-02-15T16:03:50.949666Z"}], "thread_id": "Thread-4", "execution_time": 0.006376028060913086, "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": "2023-02-15T16:03:50.950218Z", "completed_at": "2023-02-15T16:03:50.971393Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.971815Z", "completed_at": "2023-02-15T16:03:50.971824Z"}], "thread_id": "Thread-3", "execution_time": 0.023424148559570312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.950357Z", "completed_at": "2023-02-15T16:03:50.971737Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.972669Z", "completed_at": "2023-02-15T16:03:50.972672Z"}], "thread_id": "Thread-2", "execution_time": 0.023756742477416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.950289Z", "completed_at": "2023-02-15T16:03:50.971911Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.972976Z", "completed_at": "2023-02-15T16:03:50.972980Z"}], "thread_id": "Thread-1", "execution_time": 0.02508997917175293, "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": "2023-02-15T16:03:50.964484Z", "completed_at": "2023-02-15T16:03:50.972156Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:50.973387Z", "completed_at": "2023-02-15T16:03:50.973395Z"}], "thread_id": "Thread-4", "execution_time": 0.01116490364074707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.975918Z", "completed_at": "2023-02-15T16:03:50.992584Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.033986Z", "completed_at": "2023-02-15T16:03:51.033995Z"}], "thread_id": "Thread-3", "execution_time": 0.06110382080078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.983550Z", "completed_at": "2023-02-15T16:03:51.033795Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.035023Z", "completed_at": "2023-02-15T16:03:51.035027Z"}], "thread_id": "Thread-2", "execution_time": 0.06043505668640137, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:50.983882Z", "completed_at": "2023-02-15T16:03:51.034197Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.035671Z", "completed_at": "2023-02-15T16:03:51.035675Z"}], "thread_id": "Thread-1", "execution_time": 0.06076788902282715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:51.038038Z", "completed_at": "2023-02-15T16:03:51.057380Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.061707Z", "completed_at": "2023-02-15T16:03:51.061714Z"}], "thread_id": "Thread-3", "execution_time": 0.026048898696899414, "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": "2023-02-15T16:03:51.046033Z", "completed_at": "2023-02-15T16:03:51.061550Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.062443Z", "completed_at": "2023-02-15T16:03:51.062447Z"}], "thread_id": "Thread-4", "execution_time": 0.02568984031677246, "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": "2023-02-15T16:03:51.046374Z", "completed_at": "2023-02-15T16:03:51.061776Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.062726Z", "completed_at": "2023-02-15T16:03:51.062729Z"}], "thread_id": "Thread-2", "execution_time": 0.02579212188720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:51.049438Z", "completed_at": "2023-02-15T16:03:51.062286Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.063309Z", "completed_at": "2023-02-15T16:03:51.063312Z"}], "thread_id": "Thread-1", "execution_time": 0.02585005760192871, "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": "2023-02-15T16:03:51.064583Z", "completed_at": "2023-02-15T16:03:51.073297Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.081457Z", "completed_at": "2023-02-15T16:03:51.081465Z"}], "thread_id": "Thread-3", "execution_time": 0.018884897232055664, "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": "2023-02-15T16:03:51.068489Z", "completed_at": "2023-02-15T16:03:51.081249Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.082180Z", "completed_at": "2023-02-15T16:03:51.082183Z"}], "thread_id": "Thread-4", "execution_time": 0.01830887794494629, "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": "2023-02-15T16:03:51.068695Z", "completed_at": "2023-02-15T16:03:51.081372Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.082256Z", "completed_at": "2023-02-15T16:03:51.082258Z"}], "thread_id": "Thread-2", "execution_time": 0.01817178726196289, "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": "2023-02-15T16:03:51.073199Z", "completed_at": "2023-02-15T16:03:51.081555Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.082458Z", "completed_at": "2023-02-15T16:03:51.082460Z"}], "thread_id": "Thread-1", "execution_time": 0.015323877334594727, "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": "2023-02-15T16:03:51.084530Z", "completed_at": "2023-02-15T16:03:51.102602Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.106025Z", "completed_at": "2023-02-15T16:03:51.106032Z"}], "thread_id": "Thread-3", "execution_time": 0.023600101470947266, "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": "2023-02-15T16:03:51.088080Z", "completed_at": "2023-02-15T16:03:51.105838Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.106907Z", "completed_at": "2023-02-15T16:03:51.106910Z"}], "thread_id": "Thread-2", "execution_time": 0.02312612533569336, "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_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:51.087997Z", "completed_at": "2023-02-15T16:03:51.105910Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.106988Z", "completed_at": "2023-02-15T16:03:51.106991Z"}], "thread_id": "Thread-4", "execution_time": 0.02377915382385254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:51.088194Z", "completed_at": "2023-02-15T16:03:51.106190Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.107200Z", "completed_at": "2023-02-15T16:03:51.107202Z"}], "thread_id": "Thread-1", "execution_time": 0.023721933364868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-02-15T16:03:51.109386Z", "completed_at": "2023-02-15T16:03:51.122618Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.125787Z", "completed_at": "2023-02-15T16:03:51.125794Z"}], "thread_id": "Thread-3", "execution_time": 0.0182950496673584, "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": "2023-02-15T16:03:51.114657Z", "completed_at": "2023-02-15T16:03:51.125715Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.126495Z", "completed_at": "2023-02-15T16:03:51.126499Z"}], "thread_id": "Thread-2", "execution_time": 0.01809382438659668, "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": "2023-02-15T16:03:51.114739Z", "completed_at": "2023-02-15T16:03:51.125863Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.126786Z", "completed_at": "2023-02-15T16:03:51.126789Z"}], "thread_id": "Thread-4", "execution_time": 0.018504858016967773, "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": "2023-02-15T16:03:51.114856Z", "completed_at": "2023-02-15T16:03:51.126012Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.127165Z", "completed_at": "2023-02-15T16:03:51.127168Z"}], "thread_id": "Thread-1", "execution_time": 0.018565893173217773, "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": "2023-02-15T16:03:51.128576Z", "completed_at": "2023-02-15T16:03:51.137793Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.138159Z", "completed_at": "2023-02-15T16:03:51.138169Z"}], "thread_id": "Thread-3", "execution_time": 0.011273860931396484, "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": "2023-02-15T16:03:51.134456Z", "completed_at": "2023-02-15T16:03:51.138244Z"}, {"name": "execute", "started_at": "2023-02-15T16:03:51.138861Z", "completed_at": "2023-02-15T16:03:51.138865Z"}], "thread_id": "Thread-2", "execution_time": 0.01078176498413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6"}], "elapsed_time": 13.326529026031494, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file diff --git a/macros/get_enabled_packages.sql b/macros/get_enabled_packages.sql index a99ff31..e4dc782 100644 --- a/macros/get_enabled_packages.sql +++ b/macros/get_enabled_packages.sql @@ -14,7 +14,8 @@ 'pinterest_ads', 'snapchat_ads', 'tiktok_ads', - 'twitter_ads'] %} + 'twitter_ads', + 'reddit_ads'] %} {% set enabled_packages = [] %} diff --git a/packages.yml b/packages.yml index 797c8d4..f7906d5 100644 --- a/packages.yml +++ b/packages.yml @@ -29,6 +29,11 @@ packages: - package: fivetran/amazon_ads version: [">=0.1.0", "<0.2.0"] - - package: fivetran/reddit_ads - version: [">=0.1.0", "<0.2.0"] + # - package: fivetran/reddit_ads + # version: [">=0.1.0", "<0.2.0"] + + + - git: https://github.com/fivetran/dbt_reddit_ads.git + revision: main + warn-unpinned: false From 0ea2377ec10d456ffcf5cbfc6f700e383ae09af9 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Fri, 10 Mar 2023 13:06:39 -0500 Subject: [PATCH 04/20] seed type cast --- integration_tests/dbt_project.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index ceab4cf..c8b5a90 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -560,7 +560,7 @@ seeds: reddit_ads_ad_report_data: +column_types: ad_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" - ad_group_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + account_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" reddit_ads_ad_group_data: +column_types: id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" @@ -569,9 +569,8 @@ seeds: ad_group_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" reddit_ads_ad_group_report_data: +column_types: - id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" - campaign_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" - ad_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + account_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" + ad_group_id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" reddit_ads_campaign_data: +column_types: id: "{{ 'INT64' if target.type == 'bigquery' else 'bigint' }}" From 2ff2a98d4822258898fa22b6741c3853072b765c Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Fri, 10 Mar 2023 13:30:04 -0500 Subject: [PATCH 05/20] databricks --- .buildkite/hooks/pre-command | 3 ++- .buildkite/pipeline.yml | 1 + integration_tests/ci/sample.profiles.yml | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index 04c85c0..81b7b00 100644 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -21,4 +21,5 @@ export CI_SNOWFLAKE_DBT_USER=$(gcloud secrets versions access latest --secret="C 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 +export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917") +export CI_DATABRICKS_DBT_CATALOG=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_CATALOG" --project="dbt-package-testing-363917") \ No newline at end of file diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 6e76ea0..281f1d4 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -69,5 +69,6 @@ steps: - "CI_DATABRICKS_DBT_HOST" - "CI_DATABRICKS_DBT_HTTP_PATH" - "CI_DATABRICKS_DBT_TOKEN" + - "CI_DATABRICKS_DBT_CATALOG" commands: | bash .buildkite/scripts/run_models.sh databricks \ No newline at end of file diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 52a4202..f33e63e 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -45,10 +45,10 @@ integration_tests: schema: ad_reporting_integration_tests_2 threads: 8 databricks: - catalog: null + catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}" host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: ad_reporting_integration_tests_2 + schema: recharge_source_integration_tests_02 threads: 2 token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" type: databricks \ No newline at end of file From 84ec489b1af2535e0dcab7ff3cd32fde08948fd5 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Sun, 12 Mar 2023 23:06:13 -0500 Subject: [PATCH 06/20] fixes --- .buildkite/scripts/run_models.sh | 4 ++-- integration_tests/dbt_project.yml | 2 +- .../int_ad_reporting__account_report.sql | 16 +++++++++++++++- .../int_ad_reporting__ad_group_report.sql | 14 ++++++++++++++ .../intermediate/int_ad_reporting__ad_report.sql | 14 ++++++++++++++ .../int_ad_reporting__campaign_report.sql | 14 ++++++++++++++ .../int_ad_reporting__url_report.sql | 14 ++++++++++++++ 7 files changed, 74 insertions(+), 4 deletions(-) diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index fa67f4e..5964f2f 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 --vars '{ad_reporting__linkedin_ads_enabled: false, 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__facebook_ads_enabled: false, ad_reporting__reddit_ads_enabled: false}' -dbt test --target "$db" --vars '{ad_reporting__linkedin_ads_enabled: false, 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__facebook_ads_enabled: false, ad_reporting__reddit_ads_enabled: false}' +dbt run --target "$db" --full-refresh --vars '{ad_reporting__linkedin_ads_enabled: false, 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__facebook_ads_enabled: false, ad_reporting__amazon_ads_enabled: false}' +dbt test --target "$db" --vars '{ad_reporting__linkedin_ads_enabled: false, 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__facebook_ads_enabled: false, ad_reporting__amazon_ads_enabled: false}' diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index c8b5a90..991cb63 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -138,7 +138,7 @@ vars: amazon_ads_search_term_ad_keyword_report_identifier: "amazon_ads_search_term_ad_keyword_report_data" reddit_ads_source: - reddit_ads_schema: reddit_ads_integration_tests_1 + reddit_ads_schema: ad_reporting_integration_tests_2 reddit_ads_account_identifier: "reddit_ads_account_data" reddit_ads_account_report_identifier: "reddit_ads_account_report_data" reddit_ads_ad_identifier: "reddit_ads_ad_data" diff --git a/models/intermediate/int_ad_reporting__account_report.sql b/models/intermediate/int_ad_reporting__account_report.sql index f2e5b9e..3995260 100644 --- a/models/intermediate/int_ad_reporting__account_report.sql +++ b/models/intermediate/int_ad_reporting__account_report.sql @@ -2,7 +2,7 @@ {{ config(enabled=is_enabled(enabled_packages)) }} with -{% for package in ['twitter_ads', 'facebook_ads', 'google_ads', 'microsoft_ads','reddit_ads'] %} +{% for package in ['twitter_ads', 'facebook_ads', 'google_ads', 'microsoft_ads'] %} {% if package in enabled_packages %} {{ package }} as ( {{ get_query( @@ -104,6 +104,20 @@ amazon_ads as ( ), {% endif %} +{% if 'reddit_ads' in enabled_packages %} +apple_search_ads as ( + + {{ get_query( + platform='reddit_ads', + report_type='account', + field_mapping={ + 'account_name': 'null' + }, + relation=ref('reddit_ads__account_report') + ) }} +), +{% endif %} + unioned as ( {{ union_ctes(ctes=enabled_packages)}} diff --git a/models/intermediate/int_ad_reporting__ad_group_report.sql b/models/intermediate/int_ad_reporting__ad_group_report.sql index 83bf92b..f0e8de6 100644 --- a/models/intermediate/int_ad_reporting__ad_group_report.sql +++ b/models/intermediate/int_ad_reporting__ad_group_report.sql @@ -140,6 +140,20 @@ amazon_ads as ( ), {% endif %} +{% if 'reddit_ads' in enabled_packages %} +apple_search_ads as ( + + {{ get_query( + platform='reddit_ads', + report_type='ad_group', + field_mapping={ + 'account_name': 'null' + }, + relation=ref('reddit_ads__ad_group_report') + ) }} +), +{% endif %} + unioned as ( {{ union_ctes(ctes=enabled_packages)}} diff --git a/models/intermediate/int_ad_reporting__ad_report.sql b/models/intermediate/int_ad_reporting__ad_report.sql index e677b33..22b2280 100644 --- a/models/intermediate/int_ad_reporting__ad_report.sql +++ b/models/intermediate/int_ad_reporting__ad_report.sql @@ -149,6 +149,20 @@ amazon_ads as ( ), {% endif %} +{% if 'reddit_ads' in enabled_packages %} +apple_search_ads as ( + + {{ get_query( + platform='reddit_ads', + report_type='ad', + field_mapping={ + 'account_name': 'null' + }, + relation=ref('reddit_ads__ad_report') + ) }} +), +{% endif %} + unioned as ( {{ union_ctes(ctes=enabled_packages)}} diff --git a/models/intermediate/int_ad_reporting__campaign_report.sql b/models/intermediate/int_ad_reporting__campaign_report.sql index 8bbe732..1b52bcb 100644 --- a/models/intermediate/int_ad_reporting__campaign_report.sql +++ b/models/intermediate/int_ad_reporting__campaign_report.sql @@ -106,6 +106,20 @@ amazon_ads as ( ), {% endif %} +{% if 'reddit_ads' in enabled_packages %} +apple_search_ads as ( + + {{ get_query( + platform='reddit_ads', + report_type='campaign', + field_mapping={ + 'account_name': 'null' + }, + relation=ref('reddit_ads__campaign_report') + ) }} +), +{% endif %} + unioned as ( {{ union_ctes(ctes=enabled_packages)}} diff --git a/models/intermediate/int_ad_reporting__url_report.sql b/models/intermediate/int_ad_reporting__url_report.sql index c02e957..bbd181b 100644 --- a/models/intermediate/int_ad_reporting__url_report.sql +++ b/models/intermediate/int_ad_reporting__url_report.sql @@ -110,6 +110,20 @@ twitter_ads as ( ), {% endif %} +{% if 'reddit_ads' in enabled_packages %} +apple_search_ads as ( + + {{ get_query( + platform='reddit_ads', + report_type='url', + field_mapping={ + 'account_name': 'null' + }, + relation=ref('reddit_ads__url_report') + ) }} +), +{% endif %} + unioned as ( {{ union_ctes(ctes=enabled_packages)}} From bfb351b2481646d16ec5fd758a1a3d19737a62e1 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Mon, 13 Mar 2023 15:17:15 -0500 Subject: [PATCH 07/20] updates --- CHANGELOG.md | 2 +- integration_tests/ci/sample.profiles.yml | 2 +- .../seeds/reddit_ads_post_report_data.csv | 101 ------------------ packages.yml | 8 +- 4 files changed, 6 insertions(+), 107 deletions(-) delete mode 100644 integration_tests/seeds/reddit_ads_post_report_data.csv diff --git a/CHANGELOG.md b/CHANGELOG.md index a0d1273..b052da9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # dbt_ad_reporting v1.3.0 -## Introducing Reddit Ads +## 🎉 Introducing Reddit Ads Compatibility 🎉 - We have added Reddit Ads as another platform in our Ad Reporting package ecosystem. ([PR #83](https://github.com/fivetran/dbt_ad_reporting/pull/83)) # dbt_ad_reporting v1.2.1 diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index f33e63e..e9cb14c 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -48,7 +48,7 @@ integration_tests: catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}" host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: recharge_source_integration_tests_02 + 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/seeds/reddit_ads_post_report_data.csv b/integration_tests/seeds/reddit_ads_post_report_data.csv deleted file mode 100644 index 5a31cea..0000000 --- a/integration_tests/seeds/reddit_ads_post_report_data.csv +++ /dev/null @@ -1,101 +0,0 @@ -account_id,date,post_id,_fivetran_synced,app_install_metrics_add_payment_info,app_install_metrics_add_to_cart,app_install_metrics_app_launch,app_install_metrics_completed_tutorial,app_install_metrics_install,app_install_metrics_level_achieved,app_install_metrics_purchase,app_install_metrics_search,app_install_metrics_sign_up,app_install_metrics_spend,app_install_metrics_spend_credits,app_install_metrics_view_content,clicks,comment_downvotes,comment_upvotes,comments_page_views,conversion_roas,cpc,ctr,ecpm,gallery_item_caption,gallery_item_id,impressions,legacy_click_conversions_attribution_window_day,legacy_click_conversions_attribution_window_month,legacy_click_conversions_attribution_window_week,legacy_view_conversions_attribution_window_day,legacy_view_conversions_attribution_window_month,legacy_view_conversions_attribution_window_week,priority,region,spend,video_fully_viewable_impressions,video_plays_expanded,video_plays_with_sound,video_started,video_viewable_impressions,video_watched_100_percent,video_watched_10_seconds,video_watched_25_percent,video_watched_3_seconds,video_watched_50_percent,video_watched_5_seconds,video_watched_75_percent,video_watched_95_percent,viewable_impressions,viewer_comments -1234,2022-10-09,5678,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,30,,,,0,2005160.033,0.002794076558,5602570.644,,,10737,,,,,,,,,60154801,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-24,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1647657.125,0.002063273728,3399567.658,,,11632,,,,,,,,,39543771,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-23,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,2128841.13,0.002362366475,5029102.917,,,9736,,,,,,,,,48963346,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-15,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2152102.8,0.003140703518,6759116.834,,,1592,,,,,,,,,10760514,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-19,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2257865.579,0.001824467064,4119401.383,,,10414,,,,,,,,,42899446,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-29,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,2518876,0.004291845494,10810626.61,,,1398,,,,,,,,,15113256,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-27,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2019917.667,0.004863362668,9823592.172,,,4318,,,,,,,,,42418271,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-31,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1715421.375,0.001921998879,3297037.959,,,12487,,,,,,,,,41170113,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-25,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1870083.815,0.00284120804,5313297.169,,,9503,,,,,,,,,50492263,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-14,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960725.4,0.003513703443,6889407.59,,,5692,,,,,,,,,39214508,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-12,5678,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2123689.6,0.001857010214,3943713.278,,,10770,,,,,,,,,42473792,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-30,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1725187.75,0.002251301534,3883917.827,,,14214,,,,,,,,,55206008,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-17,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1903813.091,0.002320185615,4417199.747,,,9482,,,,,,,,,41883888,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-13,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1955247.286,0.001614391144,3156533.902,,,13008,,,,,,,,,41060193,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-20,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1751217.25,0.002341691872,4100811.201,,,10249,,,,,,,,,42029214,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-18,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2003290.227,0.002553389044,5115179.318,,,8616,,,,,,,,,44072385,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-28,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,2058634.96,0.003542581834,7292882.811,,,7057,,,,,,,,,51465874,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-21,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1883932.52,0.002648024574,4988699.608,,,9441,,,,,,,,,47098313,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-10,5678,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1534314.464,0.002293577982,3519069.872,,,12208,,,,,,,,,42960805,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-26,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1853571.56,0.003061849357,5675356.889,,,8165,,,,,,,,,46339289,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-11,5678,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2070946.727,0.002353948213,4874901.348,,,9346,,,,,,,,,45560828,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-22,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,2119840.667,0.003428571429,7268025.143,,,1750,,,,,,,,,12719044,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-16,5678,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1784607.897,0.002736365352,4883339.215,,,10598,,,,,,,,,51753629,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-17,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,48,,,,0,868205.0833,0.00705052879,6121304.935,,,6808,,,,,,,,,41673844,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-14,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,35,,,,0,1046448.314,0.009828699803,10285226.34,,,3561,,,,,,,,,36625691,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-29,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,17,,,,0,775914,0.007910656119,6137988.832,,,2149,,,,,,,,,13190538,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-25,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,62,,,,0,744124.9194,0.007203439061,5360258.511,,,8607,,,,,,,,,46135745,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-31,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,41,,,,0,877972.7317,0.006444514304,5658107.828,,,6362,,,,,,,,,35996882,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-16,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,41,,,,0,927280.6098,0.005117324014,4745195.332,,,8012,,,,,,,,,38018505,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-10,t3_x2vup1,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,55,,,,0,895254.7636,0.00636500405,5698300.197,,,8641,,,,,,,,,49239012,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-12,t3_x2vup1,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,39,,,,0,1006656.256,0.0128458498,12931355.07,,,3036,,,,,,,,,39259594,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-24,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1050531.8,0.007235890014,7601532.562,,,6219,,,,,,,,,47273931,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-27,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,936291.3556,0.007831534981,7332598.503,,,5746,,,,,,,,,42133111,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-18,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,49,,,,0,848027.0204,0.007834985609,6644279.501,,,6254,,,,,,,,,41553324,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-13,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,46,,,,0,880780.087,0.008859784284,7803521.572,,,5192,,,,,,,,,40515884,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-28,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,52,,,,0,861070.5192,0.009809469911,8446645.35,,,5301,,,,,,,,,44775667,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-26,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,47,,,,0,957437.7234,0.009674763277,9262983.326,,,4858,,,,,,,,,44999573,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-11,t3_x2vup1,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,42,,,,0,927499.1905,0.005589566143,5184318.073,,,7514,,,,,,,,,38954966,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-09,t3_x2vup1,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,45,,,,0,1048095.333,0.004139072848,4338142.936,,,10872,,,,,,,,,47164290,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-15,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,6,,,,0,1402248.333,0.01829268293,25650884.15,,,328,,,,,,,,,8413490,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-21,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,46,,,,0,892044.1087,0.007076923077,6312927.538,,,6500,,,,,,,,,41034029,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-22,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,15,,,,0,1015290.533,0.01242750621,12617529.41,,,1207,,,,,,,,,15229358,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-19,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,56,,,,0,902064.7679,0.009061488673,8174049.676,,,6180,,,,,,,,,50515627,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-23,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,36,,,,0,1131407.222,0.006923076923,7832819.231,,,5200,,,,,,,,,40730660,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-30,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,44,,,,0,934995.4091,0.006520450504,6096591.286,,,6748,,,,,,,,,41139798,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-20,t3_x2vup1,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,42,,,,0,920716.119,0.00845410628,7783831.924,,,4968,,,,,,,,,38670077,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-23,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1776401.727,0.002914679385,5177641.494,,,7548,,,,,,,,,39080838,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-09,t3_xiiuai,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,33,,,,0,1562001.758,0.002073645846,3239038.457,,,15914,,,,,,,,,51546058,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-29,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,1605432.143,0.005196733482,8343002.97,,,1347,,,,,,,,,11238025,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-27,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1764421.778,0.003351123247,5912794.837,,,8057,,,,,,,,,47639388,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-11,t3_xiiuai,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,18,,,,0,2131581.444,0.002286585366,4874042.937,,,7872,,,,,,,,,38368466,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-24,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1802213,0.001836287873,3309381.877,,,14159,,,,,,,,,46857538,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-19,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,1790684.909,0.003666055657,6564750.542,,,6001,,,,,,,,,39395068,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-30,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1723513.148,0.002499537123,4307985.095,,,10802,,,,,,,,,46534855,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-25,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1756288.111,0.001961924139,3445704.04,,,13762,,,,,,,,,47419779,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-21,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1952633.6,0.002200462097,4296696.226,,,9089,,,,,,,,,39052672,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-15,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2066008.143,0.006487488415,13403203.89,,,1079,,,,,,,,,14462057,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-22,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,8,,,,0,2020232.625,0.003214142226,6493314.986,,,2489,,,,,,,,,16161861,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-10,t3_xiiuai,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,22,,,,0,2094054.273,0.002906976744,6087367.072,,,7568,,,,,,,,,46069194,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-28,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1741785,0.002963841138,5162374.037,,,8435,,,,,,,,,43544625,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-13,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1762241.714,0.003142889213,5538530.475,,,8909,,,,,,,,,49342768,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-20,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1562767.615,0.00269179004,4206642.303,,,9659,,,,,,,,,40631958,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-14,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1878849.381,0.002068354181,3886125.973,,,10153,,,,,,,,,39455837,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-31,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1751287.321,0.002105579786,3687475.184,,,13298,,,,,,,,,49036045,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-18,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1639406.522,0.001914433161,3138534.21,,,12014,,,,,,,,,37706350,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-17,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1624521.464,0.002330614283,3786132.928,,,12014,,,,,,,,,45486601,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-26,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1901739.154,0.002640398091,5021348.431,,,9847,,,,,,,,,49445218,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-12,t3_xiiuai,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2007943.421,0.003240661777,6507065.495,,,5863,,,,,,,,,38150925,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-16,t3_xiiuai,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1580669.296,0.003456663679,5463842.146,,,7811,,,,,,,,,42678071,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-17,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,28,,,,0,1804320.5,0.001447851492,2612388.128,,,19339,,,,,,,,,50520974,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-27,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,2128213.524,0.00204778157,4358116.431,,,10255,,,,,,,,,44692484,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-25,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,29,,,,0,1374477.448,0.001649132784,2266695.82,,,17585,,,,,,,,,39859846,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-18,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1614260.583,0.002644045389,4268178.253,,,9077,,,,,,,,,38742254,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-26,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,2238452.583,0.001801937082,4033550.717,,,13319,,,,,,,,,53722862,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-15,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,7,,,,0,2125368.143,0.002896152255,6155389.739,,,2417,,,,,,,,,14877577,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-13,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,27,,,,0,1971535.296,0.002324380165,4582597.538,,,11616,,,,,,,,,53231453,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-21,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,19,,,,0,2130129.789,0.002254657648,4802713.421,,,8427,,,,,,,,,40472466,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-28,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1844539.261,0.002660805183,4907959.625,,,8644,,,,,,,,,42424403,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-29,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,5,,,,0,2559320.6,0.002748763057,7034965.915,,,1819,,,,,,,,,12796603,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-09,t3_xqr2gh,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,24,,,,0,1705044.25,0.001713306682,2921263.706,,,14008,,,,,,,,,40921062,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-10,t3_xqr2gh,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1728446.077,0.002474540782,4277110.307,,,10507,,,,,,,,,44939598,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-20,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1960190.6,0.002065262288,4048307.724,,,9684,,,,,,,,,39203812,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-22,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,10,,,,0,2459581.8,0.003084515731,7586618.754,,,3242,,,,,,,,,24595818,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-19,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,1969758.95,0.002731121125,5379650.28,,,7323,,,,,,,,,39395179,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-14,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,20,,,,0,2080103.2,0.002103049422,4374559.832,,,9510,,,,,,,,,41602064,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-23,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,25,,,,0,1702841.4,0.001720814978,2930274.986,,,14528,,,,,,,,,42571035,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-31,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1816478,0.00180533752,3279355.887,,,12740,,,,,,,,,41778994,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-24,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,26,,,,0,1864886.577,0.001815769258,3386203.715,,,14319,,,,,,,,,48487051,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-30,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,34,,,,0,1489352.441,0.003205128205,4773565.517,,,10608,,,,,,,,,50637983,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-16,t3_xqr2gh,2023-01-09 22:21:40,0,0,0,0,0,0,0,0,0,0,0,0,32,,,,0,1312920.938,0.0023896647,3137440.818,,,13391,,,,,,,,,42013470,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-11,t3_xqr2gh,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,21,,,,0,1935094.952,0.001796868315,3477110.807,,,11687,,,,,,,,,40636994,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-10-12,t3_xqr2gh,2023-01-09 22:21:42,0,0,0,0,0,0,0,0,0,0,0,0,23,,,,0,1852267.783,0.002399833055,4445133.452,,,9584,,,,,,,,,42602159,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-11-23,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,154,,,,0,1365631.558,0.002490257273,3400773.92,,,61841,,,,,,,,,210307260,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-12-03,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,14,,,,0,1839016.357,0.002066725716,3800742.397,,,6774,,,,,,,,,25746229,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-12-07,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,71,,,,0,1723582.239,0.001843724844,3177811.395,,,38509,,,,,,,,,122374339,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-11-22,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,156,,,,0,1360858.795,0.002018685784,2747146.303,,,77278,,,,,,,,,212293972,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-11-25,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,158,,,,0,1319160.082,0.0018617366,2455928.606,,,84867,,,,,,,,,208427293,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-11-26,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,143,,,,0,1447518.357,0.002166207168,3135624.64,,,66014,,,,,,,,,206995125,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-12-02,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,71,,,,0,1616851.761,0.002139585342,3459392.328,,,33184,,,,,,,,,114796475,0,0,0,0,0,0,0,0,0,0,,0,0,, -1234,2022-12-05,t3_yv9gtx,2023-01-09 22:21:37,0,0,0,0,0,0,0,0,0,0,0,0,82,,,,0,1458452.268,0.002312464749,3372619.459,,,35460,,,,,,,,,119593086,0,0,0,0,0,0,0,0,0,0,,0,0,, \ No newline at end of file diff --git a/packages.yml b/packages.yml index f7906d5..0749662 100644 --- a/packages.yml +++ b/packages.yml @@ -29,11 +29,11 @@ packages: - package: fivetran/amazon_ads version: [">=0.1.0", "<0.2.0"] - # - package: fivetran/reddit_ads - # version: [">=0.1.0", "<0.2.0"] - - - git: https://github.com/fivetran/dbt_reddit_ads.git revision: main warn-unpinned: false + # - package: fivetran/reddit_ads + # version: [">=0.1.0", "<0.2.0"] + + From 5cafd1e4596c0b21e1a89a1b4a96dc13ee5edb75 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Mon, 13 Mar 2023 15:52:59 -0500 Subject: [PATCH 08/20] fix cte names --- models/intermediate/int_ad_reporting__account_report.sql | 2 +- models/intermediate/int_ad_reporting__ad_group_report.sql | 2 +- models/intermediate/int_ad_reporting__ad_report.sql | 2 +- models/intermediate/int_ad_reporting__campaign_report.sql | 2 +- models/intermediate/int_ad_reporting__url_report.sql | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/intermediate/int_ad_reporting__account_report.sql b/models/intermediate/int_ad_reporting__account_report.sql index 3995260..a98e36a 100644 --- a/models/intermediate/int_ad_reporting__account_report.sql +++ b/models/intermediate/int_ad_reporting__account_report.sql @@ -105,7 +105,7 @@ amazon_ads as ( {% endif %} {% if 'reddit_ads' in enabled_packages %} -apple_search_ads as ( +reddit_ads as ( {{ get_query( platform='reddit_ads', diff --git a/models/intermediate/int_ad_reporting__ad_group_report.sql b/models/intermediate/int_ad_reporting__ad_group_report.sql index f0e8de6..015062a 100644 --- a/models/intermediate/int_ad_reporting__ad_group_report.sql +++ b/models/intermediate/int_ad_reporting__ad_group_report.sql @@ -141,7 +141,7 @@ amazon_ads as ( {% endif %} {% if 'reddit_ads' in enabled_packages %} -apple_search_ads as ( +reddit_ads as ( {{ get_query( platform='reddit_ads', diff --git a/models/intermediate/int_ad_reporting__ad_report.sql b/models/intermediate/int_ad_reporting__ad_report.sql index 22b2280..9519d49 100644 --- a/models/intermediate/int_ad_reporting__ad_report.sql +++ b/models/intermediate/int_ad_reporting__ad_report.sql @@ -150,7 +150,7 @@ amazon_ads as ( {% endif %} {% if 'reddit_ads' in enabled_packages %} -apple_search_ads as ( +reddit_ads as ( {{ get_query( platform='reddit_ads', diff --git a/models/intermediate/int_ad_reporting__campaign_report.sql b/models/intermediate/int_ad_reporting__campaign_report.sql index 1b52bcb..77c8d8c 100644 --- a/models/intermediate/int_ad_reporting__campaign_report.sql +++ b/models/intermediate/int_ad_reporting__campaign_report.sql @@ -107,7 +107,7 @@ amazon_ads as ( {% endif %} {% if 'reddit_ads' in enabled_packages %} -apple_search_ads as ( +reddit_ads as ( {{ get_query( platform='reddit_ads', diff --git a/models/intermediate/int_ad_reporting__url_report.sql b/models/intermediate/int_ad_reporting__url_report.sql index bbd181b..ce89cbb 100644 --- a/models/intermediate/int_ad_reporting__url_report.sql +++ b/models/intermediate/int_ad_reporting__url_report.sql @@ -111,7 +111,7 @@ twitter_ads as ( {% endif %} {% if 'reddit_ads' in enabled_packages %} -apple_search_ads as ( +reddit_ads as ( {{ get_query( platform='reddit_ads', From c3390cfb8fd27ad733172cff2e10b1d4f8eb7d17 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Tue, 14 Mar 2023 13:39:53 -0500 Subject: [PATCH 09/20] update deps versions --- README.md | 36 ++++++++++++++++++------------------ packages.yml | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index d3085c9..006eb33 100644 --- a/README.md +++ b/README.md @@ -312,58 +312,58 @@ packages: version: [">=0.1.0", "<0.2.0"] - package: fivetran/apple_search_ads - version: [">=0.1.0", "<0.2.0"] + version: [">=0.2.0", "<0.3.0"] - package: fivetran/apple_search_ads_source - version: [">=0.1.0", "<0.2.0"] + version: [">=0.2.0", "<0.3.0"] - package: fivetran/facebook_ads - version: [">=0.5.0", "<0.6.0"] + version: [">=0.6.0", "<0.7.0"] - package: fivetran/facebook_ads_source - version: [">=0.5.0", "<0.6.0"] + version: [">=0.6.0", "<0.7.0"] - package: fivetran/google_ads - version: [">=0.8.0", "<0.9.0"] + version: [">=0.9.0", "<0.10.0"] - package: fivetran/google_ads_source - version: [">=0.8.0", "<0.9.0"] + version: [">=0.9.0", "<0.10.0"] - package: fivetran/pinterest - version: [">=0.6.0", "<0.7.0"] + version: [">=0.7.0", "<0.8.0"] - package: fivetran/pinterest_source - version: [">=0.6.0", "<0.7.0"] + version: [">=0.7.0", "<0.8.0"] - package: fivetran/microsoft_ads - version: [">=0.5.0", "<0.6.0"] + version: [">=0.6.0", "<0.7.0"] - package: fivetran/microsoft_ads_source - version: [">=0.6.0", "<0.7.0"] + version: [">=0.7.0", "<0.8.0"] - package: fivetran/linkedin - version: [">=0.5.0", "<0.6.0"] + version: [">=0.7.0", "<0.8.0"] - package: fivetran/linkedin_source - version: [">=0.5.0", "<0.6.0"] + version: [">=0.7.0", "<0.8.0"] - package: fivetran/twitter_ads - version: [">=0.5.0", "<0.6.0"] + version: [">=0.6.0", "<0.7.0"] - package: fivetran/twitter_ads_source - version: [">=0.5.0", "<0.6.0"] + version: [">=0.6.0", "<0.7.0"] - package: fivetran/snapchat_ads - version: [">=0.4.0", "<0.5.0"] + version: [">=0.5.0", "<0.6.0"] - package: fivetran/snapchat_ads_source - version: [">=0.4.0", "<0.5.0"] + version: [">=0.5.0", "<0.6.0"] - package: fivetran/tiktok_ads - version: [">=0.2.0", "<0.3.0"] + version: [">=0.3.0", "<0.4.0"] - package: fivetran/tiktok_ads_source - version: [">=0.2.0", "<0.3.0"] + version: [">=0.3.0", "<0.4.0"] - package: fivetran/reddit_ads version: [">=0.1.0", "<0.2.0"] diff --git a/packages.yml b/packages.yml index 0749662..83fd9c9 100644 --- a/packages.yml +++ b/packages.yml @@ -15,7 +15,7 @@ packages: version: [">=0.7.0", "<0.8.0"] - package: fivetran/linkedin - version: [">=0.6.0", "<0.7.0"] + version: [">=0.7.0", "<0.8.0"] - package: fivetran/microsoft_ads version: [">=0.6.0", "<0.7.0"] From 46f4530a63c0600c956ee438f35e15dfc239ba8c Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Tue, 14 Mar 2023 14:47:03 -0500 Subject: [PATCH 10/20] version in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 006eb33..dbf8a52 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ Include the following github package version in your `packages.yml` ```yaml packages: - package: fivetran/ad_reporting - version: [">=1.2.0", "<1.3.0"] + version: [">=1.3.0", "<1.4.0"] ``` ## Step 3: Configure Database and Schema Variables By default, this package looks for your ad platform data in your target database. If this is not where your app platform data is stored, add the relevant `_database` variables to your `dbt_project.yml` file (see below). From 1c08e5c2dac1ce9cf2e46779a841d1a9f68502b8 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Tue, 14 Mar 2023 14:48:45 -0500 Subject: [PATCH 11/20] update package deps --- packages.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages.yml b/packages.yml index 83fd9c9..006c469 100644 --- a/packages.yml +++ b/packages.yml @@ -29,11 +29,7 @@ packages: - package: fivetran/amazon_ads version: [">=0.1.0", "<0.2.0"] - - git: https://github.com/fivetran/dbt_reddit_ads.git - revision: main - warn-unpinned: false - - # - package: fivetran/reddit_ads - # version: [">=0.1.0", "<0.2.0"] + - package: fivetran/reddit_ads + version: [">=0.1.0", "<0.2.0"] From d2030966be7399e705dfc904984ee1f68ffc604f Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Wed, 15 Mar 2023 11:20:52 -0500 Subject: [PATCH 12/20] rebuild From a28e2846c3b96194ac3370702794560d2fc90d4a Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Wed, 15 Mar 2023 12:05:24 -0500 Subject: [PATCH 13/20] revert linkedin version --- packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.yml b/packages.yml index 006c469..7455289 100644 --- a/packages.yml +++ b/packages.yml @@ -15,7 +15,7 @@ packages: version: [">=0.7.0", "<0.8.0"] - package: fivetran/linkedin - version: [">=0.7.0", "<0.8.0"] + version: [">=0.6.0", "<0.7.0"] - package: fivetran/microsoft_ads version: [">=0.6.0", "<0.7.0"] From 83c7ee36094f709135e8d0f34423879b6b924575 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Wed, 15 Mar 2023 14:38:22 -0500 Subject: [PATCH 14/20] try new schema --- integration_tests/ci/sample.profiles.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index e9cb14c..88636fa 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_2 + schema: ad_reporting_integration_tests_3 threads: 8 bigquery: type: bigquery method: service-account-json project: 'dbt-package-testing' - schema: ad_reporting_integration_tests_2 + schema: ad_reporting_integration_tests_3 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_2 + schema: ad_reporting_integration_tests_3 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_2 + schema: ad_reporting_integration_tests_3 threads: 8 databricks: catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}" host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: ad_reporting_integration_tests_2 + schema: ad_reporting_integration_tests_3 threads: 2 token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" type: databricks \ No newline at end of file From 04f9417c019871639cfe440527b5d0757966098a Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Wed, 15 Mar 2023 16:39:46 -0500 Subject: [PATCH 15/20] try google fix --- packages.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages.yml b/packages.yml index 7455289..5bd095b 100644 --- a/packages.yml +++ b/packages.yml @@ -8,8 +8,12 @@ packages: - package: fivetran/facebook_ads version: [">=0.6.0", "<0.7.0"] - - package: fivetran/google_ads - version: [">=0.9.0", "<0.10.0"] + # - package: fivetran/google_ads + # version: [">=0.9.0", "<0.10.0"] + + - git: https://github.com/fivetran/dbt_google_ads.git + revision: hotfix/dbt-expectations-macro + warn-unpinned: false - package: fivetran/pinterest version: [">=0.7.0", "<0.8.0"] From ad1c846c55bfe63a4c1f6ae7de0065f7a3139087 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 16 Mar 2023 12:40:09 -0500 Subject: [PATCH 16/20] docs --- docs/catalog.json | 1 + docs/index.html | 102 ++++++++++++++++++++++++++++++++++++++++++ docs/manifest.json | 1 + docs/run_results.json | 1 + 4 files changed, 105 insertions(+) create mode 100644 docs/catalog.json create mode 100644 docs/index.html create mode 100644 docs/manifest.json create mode 100644 docs/run_results.json diff --git a/docs/catalog.json b/docs/catalog.json new file mode 100644 index 0000000..e716aed --- /dev/null +++ b/docs/catalog.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.4.5", "generated_at": "2023-03-16T17:39:44.075520Z", "invocation_id": "23f6391d-ec02-4ce1-b01c-9e19b12ffc5f", "env": {}}, "nodes": {"model.reddit_ads.reddit_ads__ad_group_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_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_id": {"type": "STRING", "index": 2, "name": "account_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 3, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "currency": {"type": "STRING", "index": 7, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 9, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 10, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 21596.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 160.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads.reddit_ads__ad_group_report"}, "model.reddit_ads.reddit_ads__url_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_ads__url_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_name": {"type": "STRING", "index": 2, "name": "ad_name", "comment": null}, "ad_id": {"type": "STRING", "index": 3, "name": "ad_id", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "currency": {"type": "STRING", "index": 9, "name": "currency", "comment": null}, "post_id": {"type": "STRING", "index": 10, "name": "post_id", "comment": null}, "post_url": {"type": "STRING", "index": 11, "name": "post_url", "comment": null}, "click_url": {"type": "STRING", "index": 12, "name": "click_url", "comment": null}, "base_url": {"type": "STRING", "index": 13, "name": "base_url", "comment": null}, "url_host": {"type": "STRING", "index": 14, "name": "url_host", "comment": null}, "url_path": {"type": "STRING", "index": 15, "name": "url_path", "comment": null}, "utm_source": {"type": "STRING", "index": 16, "name": "utm_source", "comment": null}, "utm_medium": {"type": "STRING", "index": 17, "name": "utm_medium", "comment": null}, "utm_term": {"type": "STRING", "index": 18, "name": "utm_term", "comment": null}, "utm_content": {"type": "STRING", "index": 19, "name": "utm_content", "comment": null}, "utm_campaign": {"type": "STRING", "index": 20, "name": "utm_campaign", "comment": null}, "clicks": {"type": "INT64", "index": 21, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 22, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 23, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 116454.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 189.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads.reddit_ads__url_report"}, "model.reddit_ads.reddit_ads__campaign_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_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": "STRING", "index": 2, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 3, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "clicks": {"type": "INT64", "index": 6, "name": "clicks", "comment": null}, "impressions": {"type": "INT64", "index": 7, "name": "impressions", "comment": null}, "spend": {"type": "FLOAT64", "index": 8, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7133.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 79.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads.reddit_ads__campaign_report"}, "model.reddit_ads.reddit_ads__account_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_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": "STRING", "index": 2, "name": "account_id", "comment": null}, "currency": {"type": "STRING", "index": 3, "name": "currency", "comment": null}, "attribution_type": {"type": "STRING", "index": 4, "name": "attribution_type", "comment": null}, "status": {"type": "STRING", "index": 5, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 6, "name": "time_zone_id", "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": 3976.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 56.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads.reddit_ads__account_report"}, "model.reddit_ads.reddit_ads__ad_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"date_day": {"type": "DATE", "index": 1, "name": "date_day", "comment": null}, "ad_id": {"type": "STRING", "index": 2, "name": "ad_id", "comment": null}, "ad_name": {"type": "STRING", "index": 3, "name": "ad_name", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "campaign_name": {"type": "STRING", "index": 5, "name": "campaign_name", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "ad_group_id": {"type": "STRING", "index": 8, "name": "ad_group_id", "comment": null}, "currency": {"type": "STRING", "index": 9, "name": "currency", "comment": null}, "post_id": {"type": "STRING", "index": 10, "name": "post_id", "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": 36242.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 189.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads.reddit_ads__ad_report"}, "model.reddit_ads_source.stg_reddit_ads__account_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__account_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "attribution_type": {"type": "STRING", "index": 3, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "STRING", "index": 4, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "STRING", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 3, "name": "campaign_id", "comment": null}, "click_url": {"type": "STRING", "index": 4, "name": "click_url", "comment": null}, "configured_status": {"type": "STRING", "index": 5, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 6, "name": "effective_status", "comment": null}, "ad_id": {"type": "STRING", "index": 7, "name": "ad_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 8, "name": "is_processing", "comment": null}, "ad_name": {"type": "STRING", "index": 9, "name": "ad_name", "comment": null}, "post_id": {"type": "STRING", "index": 10, "name": "post_id", "comment": null}, "post_url": {"type": "STRING", "index": 11, "name": "post_url", "comment": null}, "rejection_reason": {"type": "STRING", "index": 12, "name": "rejection_reason", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10499.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 32.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.stg_reddit_ads__ad"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_group_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "FLOAT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "STRING", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "STRING", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "STRING", "index": 34, "name": "priority", "comment": null}, "region": {"type": "STRING", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "STRING", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "FLOAT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "STRING", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "STRING", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "STRING", "index": 34, "name": "priority", "comment": null}, "region": {"type": "STRING", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_group": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_group", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "bid_strategy": {"type": "STRING", "index": 2, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "INT64", "index": 3, "name": "bid_value", "comment": null}, "campaign_id": {"type": "STRING", "index": 4, "name": "campaign_id", "comment": null}, "configured_status": {"type": "STRING", "index": 5, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 6, "name": "effective_status", "comment": null}, "end_time_at": {"type": "TIMESTAMP", "index": 7, "name": "end_time_at", "comment": null}, "expand_targeting": {"type": "BOOL", "index": 8, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "STRING", "index": 9, "name": "goal_type", "comment": null}, "goal_value": {"type": "INT64", "index": 10, "name": "goal_value", "comment": null}, "ad_group_id": {"type": "STRING", "index": 11, "name": "ad_group_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 12, "name": "is_processing", "comment": null}, "ad_group_name": {"type": "STRING", "index": 13, "name": "ad_group_name", "comment": null}, "optimization_strategy_type": {"type": "STRING", "index": 14, "name": "optimization_strategy_type", "comment": null}, "start_time_at": {"type": "TIMESTAMP", "index": 15, "name": "start_time_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3152.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.reddit_ads_source.stg_reddit_ads__ad_group"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "region": {"type": "STRING", "index": 6, "name": "region", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10560.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 160.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.stg_reddit_ads__ad_group_report"}, "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_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": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "FLOAT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "STRING", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "STRING", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "STRING", "index": 34, "name": "priority", "comment": null}, "region": {"type": "STRING", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"}, "model.reddit_ads_source.stg_reddit_ads__ad_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "click_url": {"type": "STRING", "index": 6, "name": "click_url", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "is_processing": {"type": "BOOL", "index": 9, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "post_id": {"type": "STRING", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "STRING", "index": 12, "name": "post_url", "comment": null}, "preview_expiry": {"type": "STRING", "index": 13, "name": "preview_expiry", "comment": null}, "preview_url": {"type": "STRING", "index": 14, "name": "preview_url", "comment": null}, "rejection_reason": {"type": "STRING", "index": 15, "name": "rejection_reason", "comment": null}, "search_term": {"type": "STRING", "index": 16, "name": "search_term", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_tmp"}, "model.reddit_ads_source.stg_reddit_ads__account": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__account", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"attribution_type": {"type": "STRING", "index": 1, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "STRING", "index": 2, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 3, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 4, "name": "currency", "comment": null}, "account_id": {"type": "STRING", "index": 5, "name": "account_id", "comment": null}, "status": {"type": "STRING", "index": 6, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 7, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "STRING", "index": 8, "name": "view_attribution_window", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 59.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.reddit_ads_source.stg_reddit_ads__account"}, "model.reddit_ads_source.stg_reddit_ads__ad_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "STRING", "index": 2, "name": "ad_id", "comment": null}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "region": {"type": "STRING", "index": 6, "name": "region", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 12474.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 189.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.stg_reddit_ads__ad_report"}, "model.reddit_ads_source.stg_reddit_ads__account_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "clicks": {"type": "INT64", "index": 2, "name": "clicks", "comment": null}, "date_day": {"type": "DATE", "index": 3, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 4, "name": "impressions", "comment": null}, "region": {"type": "STRING", "index": 5, "name": "region", "comment": null}, "spend": {"type": "FLOAT64", "index": 6, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2520.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 56.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.stg_reddit_ads__account_report"}, "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_group_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "id": {"type": "STRING", "index": 2, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "bid_strategy": {"type": "STRING", "index": 4, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "INT64", "index": 5, "name": "bid_value", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 9, "name": "end_time", "comment": null}, "expand_targeting": {"type": "BOOL", "index": 10, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "STRING", "index": 11, "name": "goal_type", "comment": null}, "goal_value": {"type": "INT64", "index": 12, "name": "goal_value", "comment": null}, "is_processing": {"type": "BOOL", "index": 13, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 14, "name": "name", "comment": null}, "optimization_strategy_type": {"type": "STRING", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 16, "name": "start_time", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"}, "model.reddit_ads_source.stg_reddit_ads__campaign": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__campaign", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "configured_status": {"type": "STRING", "index": 2, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 3, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 4, "name": "funding_instrument_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 6, "name": "is_processing", "comment": null}, "campaign_name": {"type": "STRING", "index": 7, "name": "campaign_name", "comment": null}, "objective": {"type": "STRING", "index": 8, "name": "objective", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 895.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.reddit_ads_source.stg_reddit_ads__campaign"}, "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__campaign_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "configured_status": {"type": "STRING", "index": 4, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 5, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 6, "name": "funding_instrument_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 7, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 9, "name": "objective", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_tmp"}, "model.reddit_ads_source.stg_reddit_ads__campaign_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__campaign_report", "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}, "clicks": {"type": "INT64", "index": 3, "name": "clicks", "comment": null}, "date_day": {"type": "DATE", "index": 4, "name": "date_day", "comment": null}, "impressions": {"type": "INT64", "index": 5, "name": "impressions", "comment": null}, "region": {"type": "STRING", "index": 6, "name": "region", "comment": null}, "spend": {"type": "FLOAT64", "index": 7, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 5214.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 79.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.stg_reddit_ads__campaign_report"}, "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": {"metadata": {"type": "view", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__account_report_tmp", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 4, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 6, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 7, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 8, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 9, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 10, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 11, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 12, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 13, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 15, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 17, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 18, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 19, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "FLOAT64", "index": 20, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 21, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 22, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 23, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "STRING", "index": 24, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "STRING", "index": 25, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 26, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 27, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 30, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "STRING", "index": 33, "name": "priority", "comment": null}, "region": {"type": "STRING", "index": 34, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 35, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 36, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 37, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 38, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 39, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 40, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 41, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 42, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 43, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 44, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 45, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 46, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 47, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 48, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 49, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 50, "name": "viewer_comments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report_tmp"}, "model.ad_reporting.ad_reporting__ad_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_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": 35486.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 189.0, "include": true, "description": "Approximate count of rows in this 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__ad_group_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_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": 22716.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 160.0, "include": true, "description": "Approximate count of rows in this 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": "zz_dbt_renee_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": 59251.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 160.0, "include": true, "description": "Approximate count of rows in this 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": "zz_dbt_renee_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": 3192.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 56.0, "include": true, "description": "Approximate count of rows in this 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__campaign_report": {"metadata": {"type": "table", "schema": "zz_dbt_renee_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": 7686.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 79.0, "include": true, "description": "Approximate count of rows in this 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"}}, "sources": {"source.microsoft_ads_source.microsoft_ads.campaign_history": {"metadata": {"type": "table", "schema": "bingads", "name": "campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 2, "name": "modified_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "bid_adjustment": {"type": "FLOAT64", "index": 5, "name": "bid_adjustment", "comment": null}, "bid_strategy_max_cpc": {"type": "FLOAT64", "index": 6, "name": "bid_strategy_max_cpc", "comment": null}, "bid_strategy_target_cpa": {"type": "FLOAT64", "index": 7, "name": "bid_strategy_target_cpa", "comment": null}, "bid_strategy_type": {"type": "STRING", "index": 8, "name": "bid_strategy_type", "comment": null}, "budget": {"type": "FLOAT64", "index": 9, "name": "budget", "comment": null}, "budget_id": {"type": "INT64", "index": 10, "name": "budget_id", "comment": null}, "country_code": {"type": "STRING", "index": 11, "name": "country_code", "comment": null}, "domain_language": {"type": "STRING", "index": 12, "name": "domain_language", "comment": null}, "language": {"type": "STRING", "index": 13, "name": "language", "comment": null}, "local_inventory_ads_enabled": {"type": "BOOL", "index": 14, "name": "local_inventory_ads_enabled", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "priority": {"type": "INT64", "index": 16, "name": "priority", "comment": null}, "status": {"type": "STRING", "index": 17, "name": "status", "comment": null}, "store_id": {"type": "INT64", "index": 18, "name": "store_id", "comment": null}, "sub_type": {"type": "STRING", "index": 19, "name": "sub_type", "comment": null}, "time_zone": {"type": "STRING", "index": 20, "name": "time_zone", "comment": null}, "tracking_template": {"type": "STRING", "index": 21, "name": "tracking_template", "comment": null}, "type": {"type": "STRING", "index": 22, "name": "type", "comment": null}, "website": {"type": "STRING", "index": 23, "name": "website", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 5882.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 28.0, "include": true, "description": "Approximate count of rows in this 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.microsoft_ads_source.microsoft_ads.account_history": {"metadata": {"type": "table", "schema": "bingads", "name": "account_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_financial_status": {"type": "STRING", "index": 4, "name": "account_financial_status", "comment": null}, "account_life_cycle_status": {"type": "STRING", "index": 5, "name": "account_life_cycle_status", "comment": null}, "auto_tag_type": {"type": "STRING", "index": 6, "name": "auto_tag_type", "comment": null}, "back_up_payment_instrument_id": {"type": "INT64", "index": 7, "name": "back_up_payment_instrument_id", "comment": null}, "bill_to_customer_id": {"type": "INT64", "index": 8, "name": "bill_to_customer_id", "comment": null}, "billing_threshold_amount": {"type": "FLOAT64", "index": 9, "name": "billing_threshold_amount", "comment": null}, "business_address_city": {"type": "STRING", "index": 10, "name": "business_address_city", "comment": null}, "business_address_country_code": {"type": "STRING", "index": 11, "name": "business_address_country_code", "comment": null}, "business_address_id": {"type": "INT64", "index": 12, "name": "business_address_id", "comment": null}, "business_address_line_1": {"type": "STRING", "index": 13, "name": "business_address_line_1", "comment": null}, "business_address_line_2": {"type": "STRING", "index": 14, "name": "business_address_line_2", "comment": null}, "business_address_line_3": {"type": "STRING", "index": 15, "name": "business_address_line_3", "comment": null}, "business_address_line_4": {"type": "STRING", "index": 16, "name": "business_address_line_4", "comment": null}, "business_address_postal_code": {"type": "STRING", "index": 17, "name": "business_address_postal_code", "comment": null}, "business_address_state_or_province": {"type": "STRING", "index": 18, "name": "business_address_state_or_province", "comment": null}, "business_name": {"type": "STRING", "index": 19, "name": "business_name", "comment": null}, "currency_code": {"type": "STRING", "index": 20, "name": "currency_code", "comment": null}, "language": {"type": "STRING", "index": 21, "name": "language", "comment": null}, "last_modified_by_user_id": {"type": "INT64", "index": 22, "name": "last_modified_by_user_id", "comment": null}, "name": {"type": "STRING", "index": 23, "name": "name", "comment": null}, "number": {"type": "STRING", "index": 24, "name": "number", "comment": null}, "parent_customer_id": {"type": "INT64", "index": 25, "name": "parent_customer_id", "comment": null}, "pause_reason": {"type": "INT64", "index": 26, "name": "pause_reason", "comment": null}, "payment_method_id": {"type": "INT64", "index": 27, "name": "payment_method_id", "comment": null}, "payment_method_type": {"type": "STRING", "index": 28, "name": "payment_method_type", "comment": null}, "primary_user_id": {"type": "INT64", "index": 29, "name": "primary_user_id", "comment": null}, "sales_house_customer_id": {"type": "INT64", "index": 30, "name": "sales_house_customer_id", "comment": null}, "sold_to_payment_instrument_id": {"type": "INT64", "index": 31, "name": "sold_to_payment_instrument_id", "comment": null}, "time_zone": {"type": "STRING", "index": 32, "name": "time_zone", "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": 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.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"metadata": {"type": "table", "schema": "bingads", "name": "keyword_performance_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_distribution": {"type": "STRING", "index": 2, "name": "ad_distribution", "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}, "bid_match_type": {"type": "STRING", "index": 5, "name": "bid_match_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "device_os": {"type": "STRING", "index": 10, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 11, "name": "device_type", "comment": null}, "keyword_id": {"type": "INT64", "index": 12, "name": "keyword_id", "comment": null}, "language": {"type": "STRING", "index": 13, "name": "language", "comment": null}, "network": {"type": "STRING", "index": 14, "name": "network", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 16, "name": "_fivetran_synced", "comment": null}, "ad_relevance": {"type": "INT64", "index": 17, "name": "ad_relevance", "comment": null}, "all_conversion_rate": {"type": "STRING", "index": 18, "name": "all_conversion_rate", "comment": null}, "all_conversions": {"type": "INT64", "index": 19, "name": "all_conversions", "comment": null}, "all_return_on_ad_spend": {"type": "FLOAT64", "index": 20, "name": "all_return_on_ad_spend", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 21, "name": "all_revenue", "comment": null}, "assists": {"type": "INT64", "index": 22, "name": "assists", "comment": null}, "average_cpc": {"type": "FLOAT64", "index": 23, "name": "average_cpc", "comment": null}, "average_position": {"type": "FLOAT64", "index": 24, "name": "average_position", "comment": null}, "clicks": {"type": "INT64", "index": 25, "name": "clicks", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 26, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 27, "name": "conversions", "comment": null}, "ctr": {"type": "FLOAT64", "index": 28, "name": "ctr", "comment": null}, "current_max_cpc": {"type": "FLOAT64", "index": 29, "name": "current_max_cpc", "comment": null}, "expected_ctr": {"type": "INT64", "index": 30, "name": "expected_ctr", "comment": null}, "historical_ad_relevance": {"type": "INT64", "index": 31, "name": "historical_ad_relevance", "comment": null}, "historical_expected_ctr": {"type": "INT64", "index": 32, "name": "historical_expected_ctr", "comment": null}, "historical_landing_page_experience": {"type": "INT64", "index": 33, "name": "historical_landing_page_experience", "comment": null}, "historical_quality_score": {"type": "INT64", "index": 34, "name": "historical_quality_score", "comment": null}, "impressions": {"type": "INT64", "index": 35, "name": "impressions", "comment": null}, "landing_page_experience": {"type": "INT64", "index": 36, "name": "landing_page_experience", "comment": null}, "quality_impact": {"type": "INT64", "index": 37, "name": "quality_impact", "comment": null}, "quality_score": {"type": "INT64", "index": 38, "name": "quality_score", "comment": null}, "return_on_ad_spend": {"type": "FLOAT64", "index": 39, "name": "return_on_ad_spend", "comment": null}, "revenue": {"type": "FLOAT64", "index": 40, "name": "revenue", "comment": null}, "spend": {"type": "FLOAT64", "index": 41, "name": "spend", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 42, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7409920.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 21464.0, "include": true, "description": "Approximate count of rows in this 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.microsoft_ads_source.microsoft_ads.ad_history": {"metadata": {"type": "table", "schema": "bingads", "name": "ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 2, "name": "modified_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_format_preference": {"type": "STRING", "index": 4, "name": "ad_format_preference", "comment": null}, "ad_group_id": {"type": "INT64", "index": 5, "name": "ad_group_id", "comment": null}, "app_id": {"type": "STRING", "index": 6, "name": "app_id", "comment": null}, "app_platform": {"type": "STRING", "index": 7, "name": "app_platform", "comment": null}, "business_name": {"type": "STRING", "index": 8, "name": "business_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 9, "name": "call_to_action", "comment": null}, "device_preference": {"type": "STRING", "index": 10, "name": "device_preference", "comment": null}, "display_url": {"type": "STRING", "index": 11, "name": "display_url", "comment": null}, "domain": {"type": "STRING", "index": 12, "name": "domain", "comment": null}, "editorial_appeal_status": {"type": "STRING", "index": 13, "name": "editorial_appeal_status", "comment": null}, "editorial_location": {"type": "STRING", "index": 14, "name": "editorial_location", "comment": null}, "editorial_reason_code": {"type": "INT64", "index": 15, "name": "editorial_reason_code", "comment": null}, "editorial_status": {"type": "STRING", "index": 16, "name": "editorial_status", "comment": null}, "editorial_term": {"type": "STRING", "index": 17, "name": "editorial_term", "comment": null}, "final_url": {"type": "STRING", "index": 18, "name": "final_url", "comment": null}, "head_line": {"type": "STRING", "index": 19, "name": "head_line", "comment": null}, "landscape_image_media_id": {"type": "STRING", "index": 20, "name": "landscape_image_media_id", "comment": null}, "landscape_logo_media_id": {"type": "STRING", "index": 21, "name": "landscape_logo_media_id", "comment": null}, "long_head_line": {"type": "STRING", "index": 22, "name": "long_head_line", "comment": null}, "mobile_final_url": {"type": "STRING", "index": 23, "name": "mobile_final_url", "comment": null}, "path_1": {"type": "STRING", "index": 24, "name": "path_1", "comment": null}, "path_2": {"type": "STRING", "index": 25, "name": "path_2", "comment": null}, "square_image_media_id": {"type": "STRING", "index": 26, "name": "square_image_media_id", "comment": null}, "square_logo_media_id": {"type": "STRING", "index": 27, "name": "square_logo_media_id", "comment": null}, "status": {"type": "STRING", "index": 28, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 29, "name": "text", "comment": null}, "title": {"type": "STRING", "index": 30, "name": "title", "comment": null}, "title_part_1": {"type": "STRING", "index": 31, "name": "title_part_1", "comment": null}, "title_part_2": {"type": "STRING", "index": 32, "name": "title_part_2", "comment": null}, "title_part_3": {"type": "STRING", "index": 33, "name": "title_part_3", "comment": null}, "tracking_template": {"type": "STRING", "index": 34, "name": "tracking_template", "comment": null}, "type": {"type": "STRING", "index": 35, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 82904.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 311.0, "include": true, "description": "Approximate count of rows in this 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.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"metadata": {"type": "table", "schema": "bingads", "name": "ad_group_performance_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_distribution": {"type": "STRING", "index": 2, "name": "ad_distribution", "comment": null}, "ad_group_id": {"type": "INT64", "index": 3, "name": "ad_group_id", "comment": null}, "bid_match_type": {"type": "STRING", "index": 4, "name": "bid_match_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 6, "name": "currency_code", "comment": null}, "date": {"type": "DATE", "index": 7, "name": "date", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 8, "name": "delivered_match_type", "comment": null}, "device_os": {"type": "STRING", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 10, "name": "device_type", "comment": null}, "language": {"type": "STRING", "index": 11, "name": "language", "comment": null}, "network": {"type": "STRING", "index": 12, "name": "network", "comment": null}, "top_vs_other": {"type": "STRING", "index": 13, "name": "top_vs_other", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 14, "name": "_fivetran_synced", "comment": null}, "ad_relevance": {"type": "INT64", "index": 15, "name": "ad_relevance", "comment": null}, "all_conversion_rate": {"type": "STRING", "index": 16, "name": "all_conversion_rate", "comment": null}, "all_conversions": {"type": "INT64", "index": 17, "name": "all_conversions", "comment": null}, "all_return_on_ad_spend": {"type": "FLOAT64", "index": 18, "name": "all_return_on_ad_spend", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 19, "name": "all_revenue", "comment": null}, "assists": {"type": "INT64", "index": 20, "name": "assists", "comment": null}, "average_cpc": {"type": "FLOAT64", "index": 21, "name": "average_cpc", "comment": null}, "average_position": {"type": "FLOAT64", "index": 22, "name": "average_position", "comment": null}, "clicks": {"type": "INT64", "index": 23, "name": "clicks", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 24, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 25, "name": "conversions", "comment": null}, "ctr": {"type": "FLOAT64", "index": 26, "name": "ctr", "comment": null}, "expected_ctr": {"type": "INT64", "index": 27, "name": "expected_ctr", "comment": null}, "historical_ad_relevance": {"type": "INT64", "index": 28, "name": "historical_ad_relevance", "comment": null}, "historical_expected_ctr": {"type": "INT64", "index": 29, "name": "historical_expected_ctr", "comment": null}, "historical_landing_page_experience": {"type": "INT64", "index": 30, "name": "historical_landing_page_experience", "comment": null}, "historical_quality_score": {"type": "INT64", "index": 31, "name": "historical_quality_score", "comment": null}, "impressions": {"type": "INT64", "index": 32, "name": "impressions", "comment": null}, "landing_page_experience": {"type": "INT64", "index": 33, "name": "landing_page_experience", "comment": null}, "phone_calls": {"type": "INT64", "index": 34, "name": "phone_calls", "comment": null}, "phone_impressions": {"type": "INT64", "index": 35, "name": "phone_impressions", "comment": null}, "ptr": {"type": "FLOAT64", "index": 36, "name": "ptr", "comment": null}, "quality_score": {"type": "INT64", "index": 37, "name": "quality_score", "comment": null}, "return_on_ad_spend": {"type": "FLOAT64", "index": 38, "name": "return_on_ad_spend", "comment": null}, "revenue": {"type": "FLOAT64", "index": 39, "name": "revenue", "comment": null}, "spend": {"type": "FLOAT64", "index": 40, "name": "spend", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 41, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3617436.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 10951.0, "include": true, "description": "Approximate count of rows in this 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.ad_performance_daily_report": {"metadata": {"type": "table", "schema": "bingads", "name": "ad_performance_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_distribution": {"type": "STRING", "index": 2, "name": "ad_distribution", "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}, "bid_match_type": {"type": "STRING", "index": 5, "name": "bid_match_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 7, "name": "currency_code", "comment": null}, "date": {"type": "DATE", "index": 8, "name": "date", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 9, "name": "delivered_match_type", "comment": null}, "device_os": {"type": "STRING", "index": 10, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 11, "name": "device_type", "comment": null}, "language": {"type": "STRING", "index": 12, "name": "language", "comment": null}, "network": {"type": "STRING", "index": 13, "name": "network", "comment": null}, "top_vs_other": {"type": "STRING", "index": 14, "name": "top_vs_other", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 15, "name": "_fivetran_synced", "comment": null}, "ad_description": {"type": "STRING", "index": 16, "name": "ad_description", "comment": null}, "ad_description_2": {"type": "STRING", "index": 17, "name": "ad_description_2", "comment": null}, "all_conversion_rate": {"type": "STRING", "index": 18, "name": "all_conversion_rate", "comment": null}, "all_conversions": {"type": "INT64", "index": 19, "name": "all_conversions", "comment": null}, "all_return_on_ad_spend": {"type": "FLOAT64", "index": 20, "name": "all_return_on_ad_spend", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 21, "name": "all_revenue", "comment": null}, "assists": {"type": "INT64", "index": 22, "name": "assists", "comment": null}, "average_cpc": {"type": "FLOAT64", "index": 23, "name": "average_cpc", "comment": null}, "average_position": {"type": "FLOAT64", "index": 24, "name": "average_position", "comment": null}, "clicks": {"type": "INT64", "index": 25, "name": "clicks", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 26, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 27, "name": "conversions", "comment": null}, "ctr": {"type": "FLOAT64", "index": 28, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 29, "name": "impressions", "comment": null}, "return_on_ad_spend": {"type": "FLOAT64", "index": 30, "name": "return_on_ad_spend", "comment": null}, "revenue": {"type": "FLOAT64", "index": 31, "name": "revenue", "comment": null}, "spend": {"type": "FLOAT64", "index": 32, "name": "spend", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 33, "name": "view_through_conversions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6024653.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 17740.0, "include": true, "description": "Approximate count of rows in this 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.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"metadata": {"type": "table", "schema": "bingads", "name": "account_performance_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_distribution": {"type": "STRING", "index": 2, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 3, "name": "bid_match_type", "comment": null}, "currency_code": {"type": "STRING", "index": 4, "name": "currency_code", "comment": null}, "date": {"type": "DATE", "index": 5, "name": "date", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 6, "name": "delivered_match_type", "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}, "top_vs_other": {"type": "STRING", "index": 10, "name": "top_vs_other", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 11, "name": "_fivetran_synced", "comment": null}, "assists": {"type": "INT64", "index": 12, "name": "assists", "comment": null}, "average_cpc": {"type": "FLOAT64", "index": 13, "name": "average_cpc", "comment": null}, "average_position": {"type": "FLOAT64", "index": 14, "name": "average_position", "comment": null}, "clicks": {"type": "INT64", "index": 15, "name": "clicks", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 16, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 17, "name": "conversions", "comment": null}, "ctr": {"type": "FLOAT64", "index": 18, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 19, "name": "impressions", "comment": null}, "low_quality_clicks": {"type": "INT64", "index": 20, "name": "low_quality_clicks", "comment": null}, "low_quality_clicks_percent": {"type": "FLOAT64", "index": 21, "name": "low_quality_clicks_percent", "comment": null}, "low_quality_conversion_rate": {"type": "FLOAT64", "index": 22, "name": "low_quality_conversion_rate", "comment": null}, "low_quality_conversions": {"type": "INT64", "index": 23, "name": "low_quality_conversions", "comment": null}, "low_quality_general_clicks": {"type": "INT64", "index": 24, "name": "low_quality_general_clicks", "comment": null}, "low_quality_impressions": {"type": "INT64", "index": 25, "name": "low_quality_impressions", "comment": null}, "low_quality_impressions_percent": {"type": "FLOAT64", "index": 26, "name": "low_quality_impressions_percent", "comment": null}, "low_quality_sophisticated_clicks": {"type": "INT64", "index": 27, "name": "low_quality_sophisticated_clicks", "comment": null}, "phone_calls": {"type": "INT64", "index": 28, "name": "phone_calls", "comment": null}, "phone_impressions": {"type": "INT64", "index": 29, "name": "phone_impressions", "comment": null}, "ptr": {"type": "FLOAT64", "index": 30, "name": "ptr", "comment": null}, "return_on_ad_spend": {"type": "FLOAT64", "index": 31, "name": "return_on_ad_spend", "comment": null}, "revenue": {"type": "FLOAT64", "index": 32, "name": "revenue", "comment": null}, "spend": {"type": "FLOAT64", "index": 33, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2313384.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 8958.0, "include": true, "description": "Approximate count of rows in this 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.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"metadata": {"type": "table", "schema": "bingads", "name": "search_query_performance_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "INT64", "index": 2, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 3, "name": "ad_id", "comment": null}, "bid_match_type": {"type": "STRING", "index": 4, "name": "bid_match_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "customer_id": {"type": "INT64", "index": 6, "name": "customer_id", "comment": null}, "date": {"type": "DATE", "index": 7, "name": "date", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 8, "name": "delivered_match_type", "comment": null}, "device_os": {"type": "STRING", "index": 9, "name": "device_os", "comment": null}, "device_type": {"type": "STRING", "index": 10, "name": "device_type", "comment": null}, "keyword_id": {"type": "INT64", "index": 11, "name": "keyword_id", "comment": null}, "language": {"type": "STRING", "index": 12, "name": "language", "comment": null}, "network": {"type": "STRING", "index": 13, "name": "network", "comment": null}, "search_query": {"type": "STRING", "index": 14, "name": "search_query", "comment": null}, "top_vs_other": {"type": "STRING", "index": 15, "name": "top_vs_other", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 16, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "STRING", "index": 17, "name": "account_number", "comment": null}, "all_conversion_rate": {"type": "STRING", "index": 18, "name": "all_conversion_rate", "comment": null}, "all_conversions": {"type": "INT64", "index": 19, "name": "all_conversions", "comment": null}, "all_return_on_ad_spend": {"type": "FLOAT64", "index": 20, "name": "all_return_on_ad_spend", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 21, "name": "all_revenue", "comment": null}, "assists": {"type": "INT64", "index": 22, "name": "assists", "comment": null}, "average_cpc": {"type": "FLOAT64", "index": 23, "name": "average_cpc", "comment": null}, "average_position": {"type": "FLOAT64", "index": 24, "name": "average_position", "comment": null}, "clicks": {"type": "INT64", "index": 25, "name": "clicks", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 26, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 27, "name": "conversions", "comment": null}, "ctr": {"type": "FLOAT64", "index": 28, "name": "ctr", "comment": null}, "impressions": {"type": "INT64", "index": 29, "name": "impressions", "comment": null}, "return_on_ad_spend": {"type": "FLOAT64", "index": 30, "name": "return_on_ad_spend", "comment": null}, "revenue": {"type": "FLOAT64", "index": 31, "name": "revenue", "comment": null}, "spend": {"type": "FLOAT64", "index": 32, "name": "spend", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1897779.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 6589.0, "include": true, "description": "Approximate count of rows in this 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.microsoft_ads_source.microsoft_ads.ad_group_history": {"metadata": {"type": "table", "schema": "bingads", "name": "ad_group_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 2, "name": "modified_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_rotation": {"type": "STRING", "index": 4, "name": "ad_rotation", "comment": null}, "bid_adjustment": {"type": "FLOAT64", "index": 5, "name": "bid_adjustment", "comment": null}, "bid_boost_value": {"type": "FLOAT64", "index": 6, "name": "bid_boost_value", "comment": null}, "bid_option": {"type": "STRING", "index": 7, "name": "bid_option", "comment": null}, "bid_strategy_type": {"type": "STRING", "index": 8, "name": "bid_strategy_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 9, "name": "campaign_id", "comment": null}, "cpc_bid": {"type": "FLOAT64", "index": 10, "name": "cpc_bid", "comment": null}, "end_date": {"type": "DATE", "index": 11, "name": "end_date", "comment": null}, "inherited_bid_strategy_type": {"type": "STRING", "index": 12, "name": "inherited_bid_strategy_type", "comment": null}, "language": {"type": "STRING", "index": 13, "name": "language", "comment": null}, "maximum_bid": {"type": "FLOAT64", "index": 14, "name": "maximum_bid", "comment": null}, "name": {"type": "STRING", "index": 15, "name": "name", "comment": null}, "network_distribution": {"type": "STRING", "index": 16, "name": "network_distribution", "comment": null}, "privacy_status": {"type": "STRING", "index": 17, "name": "privacy_status", "comment": null}, "start_date": {"type": "DATE", "index": 18, "name": "start_date", "comment": null}, "status": {"type": "STRING", "index": 19, "name": "status", "comment": null}, "target_setting": {"type": "STRING", "index": 20, "name": "target_setting", "comment": null}, "tracking_template": {"type": "STRING", "index": 21, "name": "tracking_template", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13873.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 90.0, "include": true, "description": "Approximate count of rows in this 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.keyword_history": {"metadata": {"type": "table", "schema": "bingads", "name": "keyword_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "modified_time": {"type": "TIMESTAMP", "index": 2, "name": "modified_time", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "bid": {"type": "FLOAT64", "index": 5, "name": "bid", "comment": null}, "bid_strategy_type": {"type": "STRING", "index": 6, "name": "bid_strategy_type", "comment": null}, "destination_url": {"type": "STRING", "index": 7, "name": "destination_url", "comment": null}, "editorial_appeal_status": {"type": "STRING", "index": 8, "name": "editorial_appeal_status", "comment": null}, "editorial_location": {"type": "STRING", "index": 9, "name": "editorial_location", "comment": null}, "editorial_reason_code": {"type": "STRING", "index": 10, "name": "editorial_reason_code", "comment": null}, "editorial_status": {"type": "STRING", "index": 11, "name": "editorial_status", "comment": null}, "editorial_term": {"type": "STRING", "index": 12, "name": "editorial_term", "comment": null}, "final_url": {"type": "STRING", "index": 13, "name": "final_url", "comment": null}, "inherited_bid_strategy_type": {"type": "STRING", "index": 14, "name": "inherited_bid_strategy_type", "comment": null}, "language": {"type": "STRING", "index": 15, "name": "language", "comment": null}, "match_type": {"type": "STRING", "index": 16, "name": "match_type", "comment": null}, "mobile_final_url": {"type": "STRING", "index": 17, "name": "mobile_final_url", "comment": null}, "name": {"type": "STRING", "index": 18, "name": "name", "comment": null}, "param_1": {"type": "STRING", "index": 19, "name": "param_1", "comment": null}, "param_2": {"type": "STRING", "index": 20, "name": "param_2", "comment": null}, "param_3": {"type": "STRING", "index": 21, "name": "param_3", "comment": null}, "status": {"type": "STRING", "index": 22, "name": "status", "comment": null}, "tracking_template": {"type": "STRING", "index": 23, "name": "tracking_template", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 135246.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1075.0, "include": true, "description": "Approximate count of rows in this 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.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"metadata": {"type": "table", "schema": "bingads", "name": "campaign_performance_daily_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "index": 1, "name": "account_id", "comment": null}, "ad_distribution": {"type": "STRING", "index": 2, "name": "ad_distribution", "comment": null}, "bid_match_type": {"type": "STRING", "index": 3, "name": "bid_match_type", "comment": null}, "campaign_id": {"type": "INT64", "index": 4, "name": "campaign_id", "comment": null}, "currency_code": {"type": "STRING", "index": 5, "name": "currency_code", "comment": null}, "date": {"type": "DATE", "index": 6, "name": "date", "comment": null}, "delivered_match_type": {"type": "STRING", "index": 7, "name": "delivered_match_type", "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}, "top_vs_other": {"type": "STRING", "index": 11, "name": "top_vs_other", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 12, "name": "_fivetran_synced", "comment": null}, "ad_relevance": {"type": "INT64", "index": 13, "name": "ad_relevance", "comment": null}, "all_conversion_rate": {"type": "STRING", "index": 14, "name": "all_conversion_rate", "comment": null}, "all_conversions": {"type": "INT64", "index": 15, "name": "all_conversions", "comment": null}, "all_return_on_ad_spend": {"type": "FLOAT64", "index": 16, "name": "all_return_on_ad_spend", "comment": null}, "all_revenue": {"type": "FLOAT64", "index": 17, "name": "all_revenue", "comment": null}, "assists": {"type": "INT64", "index": 18, "name": "assists", "comment": null}, "average_cpc": {"type": "FLOAT64", "index": 19, "name": "average_cpc", "comment": null}, "average_position": {"type": "FLOAT64", "index": 20, "name": "average_position", "comment": null}, "budget_association_status": {"type": "STRING", "index": 21, "name": "budget_association_status", "comment": null}, "clicks": {"type": "INT64", "index": 22, "name": "clicks", "comment": null}, "conversion_rate": {"type": "FLOAT64", "index": 23, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 24, "name": "conversions", "comment": null}, "ctr": {"type": "FLOAT64", "index": 25, "name": "ctr", "comment": null}, "expected_ctr": {"type": "INT64", "index": 26, "name": "expected_ctr", "comment": null}, "historical_ad_relevance": {"type": "INT64", "index": 27, "name": "historical_ad_relevance", "comment": null}, "historical_expected_ctr": {"type": "INT64", "index": 28, "name": "historical_expected_ctr", "comment": null}, "historical_landing_page_experience": {"type": "INT64", "index": 29, "name": "historical_landing_page_experience", "comment": null}, "historical_quality_score": {"type": "INT64", "index": 30, "name": "historical_quality_score", "comment": null}, "impressions": {"type": "INT64", "index": 31, "name": "impressions", "comment": null}, "landing_page_experience": {"type": "INT64", "index": 32, "name": "landing_page_experience", "comment": null}, "low_quality_clicks": {"type": "INT64", "index": 33, "name": "low_quality_clicks", "comment": null}, "low_quality_clicks_percent": {"type": "FLOAT64", "index": 34, "name": "low_quality_clicks_percent", "comment": null}, "low_quality_conversion_rate": {"type": "FLOAT64", "index": 35, "name": "low_quality_conversion_rate", "comment": null}, "low_quality_conversions": {"type": "INT64", "index": 36, "name": "low_quality_conversions", "comment": null}, "low_quality_general_clicks": {"type": "INT64", "index": 37, "name": "low_quality_general_clicks", "comment": null}, "low_quality_impressions": {"type": "INT64", "index": 38, "name": "low_quality_impressions", "comment": null}, "low_quality_impressions_percent": {"type": "FLOAT64", "index": 39, "name": "low_quality_impressions_percent", "comment": null}, "low_quality_sophisticated_clicks": {"type": "INT64", "index": 40, "name": "low_quality_sophisticated_clicks", "comment": null}, "phone_calls": {"type": "INT64", "index": 41, "name": "phone_calls", "comment": null}, "phone_impressions": {"type": "INT64", "index": 42, "name": "phone_impressions", "comment": null}, "ptr": {"type": "FLOAT64", "index": 43, "name": "ptr", "comment": null}, "quality_score": {"type": "INT64", "index": 44, "name": "quality_score", "comment": null}, "return_on_ad_spend": {"type": "FLOAT64", "index": 45, "name": "return_on_ad_spend", "comment": null}, "revenue": {"type": "FLOAT64", "index": 46, "name": "revenue", "comment": null}, "spend": {"type": "FLOAT64", "index": 47, "name": "spend", "comment": null}, "view_through_conversions": {"type": "INT64", "index": 48, "name": "view_through_conversions", "comment": null}, "campaign_name": {"type": "STRING", "index": 49, "name": "campaign_name", "comment": null}, "campaign_status": {"type": "STRING", "index": 50, "name": "campaign_status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4468627.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 12245.0, "include": true, "description": "Approximate count of rows in this 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.amazon_ads_source.amazon_ads.profile": {"metadata": {"type": "table", "schema": "amazon_ads", "name": "profile", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "account_marketplace_string_id": {"type": "STRING", "index": 5, "name": "account_marketplace_string_id", "comment": null}, "account_name": {"type": "STRING", "index": 6, "name": "account_name", "comment": null}, "account_sub_type": {"type": "STRING", "index": 7, "name": "account_sub_type", "comment": null}, "account_type": {"type": "STRING", "index": 8, "name": "account_type", "comment": null}, "account_valid_payment_method": {"type": "BOOL", "index": 9, "name": "account_valid_payment_method", "comment": null}, "country_code": {"type": "STRING", "index": 10, "name": "country_code", "comment": null}, "currency_code": {"type": "STRING", "index": 11, "name": "currency_code", "comment": null}, "daily_budget": {"type": "INT64", "index": 12, "name": "daily_budget", "comment": null}, "timezone": {"type": "STRING", "index": 13, "name": "timezone", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 332.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.amazon_ads_source.amazon_ads.profile"}, "source.linkedin_source.linkedin.ad_analytics_by_creative": {"metadata": {"type": "table", "schema": "linkedin_ads", "name": "ad_analytics_by_creative", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "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}, "card_clicks": {"type": "INT64", "index": 6, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 7, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "comments": {"type": "INT64", "index": 9, "name": "comments", "comment": null}, "comments_likes": {"type": "INT64", "index": 10, "name": "comments_likes", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 11, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "NUMERIC", "index": 12, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "NUMERIC", "index": 13, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "NUMERIC", "index": 14, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 15, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 16, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 18, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 19, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 21, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 22, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 23, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 24, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 25, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 26, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 27, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 28, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 29, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 30, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 31, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 32, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 33, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 34, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 35, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 36, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 37, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 38, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 39, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 40, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 41, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 42, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 43, "name": "viral_company_page_clicks", "comment": null}, "viral_extrernal_website_conversions": {"type": "INT64", "index": 44, "name": "viral_extrernal_website_conversions", "comment": null}, "viral_extrernal_website_post_click_conversions": {"type": "INT64", "index": 45, "name": "viral_extrernal_website_post_click_conversions", "comment": null}, "viral_extrernal_website_post_view_conversions": {"type": "INT64", "index": 46, "name": "viral_extrernal_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 47, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 48, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 49, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 50, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 51, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 52, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 53, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 54, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 55, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 56, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 57, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 58, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 59, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 60, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 61, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 62, "name": "viral_video_views", "comment": null}, "comment_likes": {"type": "INT64", "index": 63, "name": "comment_likes", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 64, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 65, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 66, "name": "viral_external_website_post_view_conversions", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 67, "name": "approximate_unique_impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 14304800.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 34397.0, "include": true, "description": "Approximate count of rows in this 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.linkedin_source.linkedin.campaign_group_history": {"metadata": {"type": "table", "schema": "linkedin_ads", "name": "campaign_group_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "backfilled": {"type": "BOOL", "index": 5, "name": "backfilled", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 6, "name": "created_time", "comment": null}, "name": {"type": "STRING", "index": 7, "name": "name", "comment": null}, "run_schedule_end": {"type": "TIMESTAMP", "index": 8, "name": "run_schedule_end", "comment": null}, "run_schedule_start": {"type": "TIMESTAMP", "index": 9, "name": "run_schedule_start", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 542.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 7.0, "include": true, "description": "Approximate count of rows in this 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.linkedin_source.linkedin.account_history": {"metadata": {"type": "table", "schema": "linkedin_ads", "name": "account_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 4, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 5, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "notified_on_campaign_optimization": {"type": "BOOL", "index": 7, "name": "notified_on_campaign_optimization", "comment": null}, "notified_on_creative_approval": {"type": "BOOL", "index": 8, "name": "notified_on_creative_approval", "comment": null}, "notified_on_creative_rejection": {"type": "BOOL", "index": 9, "name": "notified_on_creative_rejection", "comment": null}, "notified_on_end_of_campaign": {"type": "BOOL", "index": 10, "name": "notified_on_end_of_campaign", "comment": null}, "reference": {"type": "STRING", "index": 11, "name": "reference", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}, "total_budget_amount": {"type": "FLOAT64", "index": 13, "name": "total_budget_amount", "comment": null}, "total_budget_currency_code": {"type": "STRING", "index": 14, "name": "total_budget_currency_code", "comment": null}, "total_budget_ends_at": {"type": "INT64", "index": 15, "name": "total_budget_ends_at", "comment": null}, "type": {"type": "STRING", "index": 16, "name": "type", "comment": null}, "version_tag": {"type": "STRING", "index": 17, "name": "version_tag", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2142.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.linkedin_source.linkedin.account_history"}, "source.linkedin_source.linkedin.creative_history": {"metadata": {"type": "table", "schema": "linkedin_ads", "name": "creative_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "call_to_action_label_type": {"type": "STRING", "index": 4, "name": "call_to_action_label_type", "comment": null}, "call_to_action_target": {"type": "STRING", "index": 5, "name": "call_to_action_target", "comment": null}, "campaign_id": {"type": "INT64", "index": 6, "name": "campaign_id", "comment": null}, "click_uri": {"type": "STRING", "index": 7, "name": "click_uri", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 8, "name": "created_time", "comment": null}, "follow_company_call_to_action": {"type": "STRING", "index": 9, "name": "follow_company_call_to_action", "comment": null}, "follow_company_organization_logo": {"type": "STRING", "index": 10, "name": "follow_company_organization_logo", "comment": null}, "follow_company_organization_name": {"type": "STRING", "index": 11, "name": "follow_company_organization_name", "comment": null}, "jobs_company_name": {"type": "STRING", "index": 12, "name": "jobs_company_name", "comment": null}, "jobs_logo": {"type": "STRING", "index": 13, "name": "jobs_logo", "comment": null}, "jobs_organization": {"type": "STRING", "index": 14, "name": "jobs_organization", "comment": null}, "reference": {"type": "STRING", "index": 15, "name": "reference", "comment": null}, "review_status": {"type": "STRING", "index": 16, "name": "review_status", "comment": null}, "sponsored_in_mail_content": {"type": "STRING", "index": 17, "name": "sponsored_in_mail_content", "comment": null}, "sponsored_update_activity": {"type": "STRING", "index": 18, "name": "sponsored_update_activity", "comment": null}, "sponsored_update_carousel_activity": {"type": "STRING", "index": 19, "name": "sponsored_update_carousel_activity", "comment": null}, "sponsored_update_carousel_direct_sponsored_content": {"type": "BOOL", "index": 20, "name": "sponsored_update_carousel_direct_sponsored_content", "comment": null}, "sponsored_update_carousel_share": {"type": "STRING", "index": 21, "name": "sponsored_update_carousel_share", "comment": null}, "sponsored_update_direct_sponsored_content": {"type": "BOOL", "index": 22, "name": "sponsored_update_direct_sponsored_content", "comment": null}, "sponsored_update_share": {"type": "STRING", "index": 23, "name": "sponsored_update_share", "comment": null}, "sponsored_video_media_asset": {"type": "STRING", "index": 24, "name": "sponsored_video_media_asset", "comment": null}, "sponsored_video_user_generated_content_post": {"type": "STRING", "index": 25, "name": "sponsored_video_user_generated_content_post", "comment": null}, "spotlight_call_to_action": {"type": "STRING", "index": 26, "name": "spotlight_call_to_action", "comment": null}, "spotlight_custom_background": {"type": "STRING", "index": 27, "name": "spotlight_custom_background", "comment": null}, "spotlight_description": {"type": "STRING", "index": 28, "name": "spotlight_description", "comment": null}, "spotlight_forum_name": {"type": "STRING", "index": 29, "name": "spotlight_forum_name", "comment": null}, "spotlight_headline": {"type": "STRING", "index": 30, "name": "spotlight_headline", "comment": null}, "spotlight_logo": {"type": "STRING", "index": 31, "name": "spotlight_logo", "comment": null}, "spotlight_show_member_profile_photo": {"type": "BOOL", "index": 32, "name": "spotlight_show_member_profile_photo", "comment": null}, "status": {"type": "STRING", "index": 33, "name": "status", "comment": null}, "text_ad_text": {"type": "STRING", "index": 34, "name": "text_ad_text", "comment": null}, "text_ad_title": {"type": "STRING", "index": 35, "name": "text_ad_title", "comment": null}, "type": {"type": "STRING", "index": 36, "name": "type", "comment": null}, "version_tag": {"type": "STRING", "index": 37, "name": "version_tag", "comment": null}, "sponsored_update_carousel_share_content_description": {"type": "STRING", "index": 38, "name": "sponsored_update_carousel_share_content_description", "comment": null}, "sponsored_update_carousel_share_content_share_media_category": {"type": "STRING", "index": 39, "name": "sponsored_update_carousel_share_content_share_media_category", "comment": null}, "sponsored_update_carousel_share_content_title": {"type": "STRING", "index": 40, "name": "sponsored_update_carousel_share_content_title", "comment": null}, "sponsored_update_carousel_share_subject": {"type": "STRING", "index": 41, "name": "sponsored_update_carousel_share_subject", "comment": null}, "sponsored_update_share_content_description": {"type": "STRING", "index": 42, "name": "sponsored_update_share_content_description", "comment": null}, "sponsored_update_share_content_share_media_category": {"type": "STRING", "index": 43, "name": "sponsored_update_share_content_share_media_category", "comment": null}, "sponsored_update_share_content_title": {"type": "STRING", "index": 44, "name": "sponsored_update_share_content_title", "comment": null}, "sponsored_update_share_subject": {"type": "STRING", "index": 45, "name": "sponsored_update_share_subject", "comment": null}, "sponsored_update_carousel_share_content_content_entities": {"type": "STRING", "index": 46, "name": "sponsored_update_carousel_share_content_content_entities", "comment": null}, "sponsored_update_share_content_content_entities": {"type": "STRING", "index": 47, "name": "sponsored_update_share_content_content_entities", "comment": null}, "sponsored_video_user_generated_content_post_value_specific_content_share_content_media": {"type": "STRING", "index": 48, "name": "sponsored_video_user_generated_content_post_value_specific_content_share_content_media", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 567705.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2581.0, "include": true, "description": "Approximate count of rows in this 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.linkedin_source.linkedin.ad_analytics_by_campaign": {"metadata": {"type": "table", "schema": "linkedin_ads", "name": "ad_analytics_by_campaign", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "INT64", "index": 1, "name": "campaign_id", "comment": null}, "day": {"type": "TIMESTAMP", "index": 2, "name": "day", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "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}, "card_clicks": {"type": "INT64", "index": 6, "name": "card_clicks", "comment": null}, "card_impressions": {"type": "INT64", "index": 7, "name": "card_impressions", "comment": null}, "clicks": {"type": "INT64", "index": 8, "name": "clicks", "comment": null}, "comments": {"type": "INT64", "index": 9, "name": "comments", "comment": null}, "comments_likes": {"type": "INT64", "index": 10, "name": "comments_likes", "comment": null}, "company_page_clicks": {"type": "INT64", "index": 11, "name": "company_page_clicks", "comment": null}, "conversion_value_in_local_currency": {"type": "NUMERIC", "index": 12, "name": "conversion_value_in_local_currency", "comment": null}, "cost_in_local_currency": {"type": "NUMERIC", "index": 13, "name": "cost_in_local_currency", "comment": null}, "cost_in_usd": {"type": "NUMERIC", "index": 14, "name": "cost_in_usd", "comment": null}, "external_website_conversions": {"type": "INT64", "index": 15, "name": "external_website_conversions", "comment": null}, "external_website_post_click_conversions": {"type": "INT64", "index": 16, "name": "external_website_post_click_conversions", "comment": null}, "external_website_post_view_conversions": {"type": "INT64", "index": 17, "name": "external_website_post_view_conversions", "comment": null}, "follows": {"type": "INT64", "index": 18, "name": "follows", "comment": null}, "full_screen_plays": {"type": "INT64", "index": 19, "name": "full_screen_plays", "comment": null}, "impressions": {"type": "INT64", "index": 20, "name": "impressions", "comment": null}, "landing_page_clicks": {"type": "INT64", "index": 21, "name": "landing_page_clicks", "comment": null}, "lead_generation_mail_contact_info_shares": {"type": "INT64", "index": 22, "name": "lead_generation_mail_contact_info_shares", "comment": null}, "lead_generation_mail_interested_clicks": {"type": "INT64", "index": 23, "name": "lead_generation_mail_interested_clicks", "comment": null}, "likes": {"type": "INT64", "index": 24, "name": "likes", "comment": null}, "one_click_lead_form_opens": {"type": "INT64", "index": 25, "name": "one_click_lead_form_opens", "comment": null}, "one_click_leads": {"type": "INT64", "index": 26, "name": "one_click_leads", "comment": null}, "opens": {"type": "INT64", "index": 27, "name": "opens", "comment": null}, "other_engagements": {"type": "INT64", "index": 28, "name": "other_engagements", "comment": null}, "shares": {"type": "INT64", "index": 29, "name": "shares", "comment": null}, "text_url_clicks": {"type": "INT64", "index": 30, "name": "text_url_clicks", "comment": null}, "total_engagements": {"type": "INT64", "index": 31, "name": "total_engagements", "comment": null}, "video_completions": {"type": "INT64", "index": 32, "name": "video_completions", "comment": null}, "video_first_quartile_completions": {"type": "INT64", "index": 33, "name": "video_first_quartile_completions", "comment": null}, "video_midpoint_completions": {"type": "INT64", "index": 34, "name": "video_midpoint_completions", "comment": null}, "video_starts": {"type": "INT64", "index": 35, "name": "video_starts", "comment": null}, "video_third_quartile_completions": {"type": "INT64", "index": 36, "name": "video_third_quartile_completions", "comment": null}, "video_views": {"type": "INT64", "index": 37, "name": "video_views", "comment": null}, "viral_card_clicks": {"type": "INT64", "index": 38, "name": "viral_card_clicks", "comment": null}, "viral_card_impressions": {"type": "INT64", "index": 39, "name": "viral_card_impressions", "comment": null}, "viral_clicks": {"type": "INT64", "index": 40, "name": "viral_clicks", "comment": null}, "viral_comment_likes": {"type": "INT64", "index": 41, "name": "viral_comment_likes", "comment": null}, "viral_comments": {"type": "INT64", "index": 42, "name": "viral_comments", "comment": null}, "viral_company_page_clicks": {"type": "INT64", "index": 43, "name": "viral_company_page_clicks", "comment": null}, "viral_extrernal_website_conversions": {"type": "INT64", "index": 44, "name": "viral_extrernal_website_conversions", "comment": null}, "viral_extrernal_website_post_click_conversions": {"type": "INT64", "index": 45, "name": "viral_extrernal_website_post_click_conversions", "comment": null}, "viral_extrernal_website_post_view_conversions": {"type": "INT64", "index": 46, "name": "viral_extrernal_website_post_view_conversions", "comment": null}, "viral_follows": {"type": "INT64", "index": 47, "name": "viral_follows", "comment": null}, "viral_full_screen_plays": {"type": "INT64", "index": 48, "name": "viral_full_screen_plays", "comment": null}, "viral_impressions": {"type": "INT64", "index": 49, "name": "viral_impressions", "comment": null}, "viral_landing_page_clicks": {"type": "INT64", "index": 50, "name": "viral_landing_page_clicks", "comment": null}, "viral_likes": {"type": "INT64", "index": 51, "name": "viral_likes", "comment": null}, "viral_one_click_lead_form_opens": {"type": "INT64", "index": 52, "name": "viral_one_click_lead_form_opens", "comment": null}, "viral_one_click_leads": {"type": "INT64", "index": 53, "name": "viral_one_click_leads", "comment": null}, "viral_other_engagements": {"type": "INT64", "index": 54, "name": "viral_other_engagements", "comment": null}, "viral_shares": {"type": "INT64", "index": 55, "name": "viral_shares", "comment": null}, "viral_total_engagements": {"type": "INT64", "index": 56, "name": "viral_total_engagements", "comment": null}, "viral_video_completions": {"type": "INT64", "index": 57, "name": "viral_video_completions", "comment": null}, "viral_video_first_quartile_completions": {"type": "INT64", "index": 58, "name": "viral_video_first_quartile_completions", "comment": null}, "viral_video_midpoint_completions": {"type": "INT64", "index": 59, "name": "viral_video_midpoint_completions", "comment": null}, "viral_video_starts": {"type": "INT64", "index": 60, "name": "viral_video_starts", "comment": null}, "viral_video_third_quartile_completions": {"type": "INT64", "index": 61, "name": "viral_video_third_quartile_completions", "comment": null}, "viral_video_views": {"type": "INT64", "index": 62, "name": "viral_video_views", "comment": null}, "comment_likes": {"type": "INT64", "index": 63, "name": "comment_likes", "comment": null}, "viral_external_website_conversions": {"type": "INT64", "index": 64, "name": "viral_external_website_conversions", "comment": null}, "viral_external_website_post_click_conversions": {"type": "INT64", "index": 65, "name": "viral_external_website_post_click_conversions", "comment": null}, "viral_external_website_post_view_conversions": {"type": "INT64", "index": 66, "name": "viral_external_website_post_view_conversions", "comment": null}, "approximate_unique_impressions": {"type": "INT64", "index": 67, "name": "approximate_unique_impressions", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 13869480.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 32850.0, "include": true, "description": "Approximate count of rows in this 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.linkedin_source.linkedin.campaign_history": {"metadata": {"type": "table", "schema": "linkedin_ads", "name": "campaign_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "INT64", "index": 4, "name": "account_id", "comment": null}, "associated_entity": {"type": "STRING", "index": 5, "name": "associated_entity", "comment": null}, "audience_expansion_enabled": {"type": "BOOL", "index": 6, "name": "audience_expansion_enabled", "comment": null}, "campaign_group_id": {"type": "INT64", "index": 7, "name": "campaign_group_id", "comment": null}, "cost_type": {"type": "STRING", "index": 8, "name": "cost_type", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 9, "name": "created_time", "comment": null}, "creative_selection": {"type": "STRING", "index": 10, "name": "creative_selection", "comment": null}, "daily_budget_amount": {"type": "FLOAT64", "index": 11, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency_code": {"type": "STRING", "index": 12, "name": "daily_budget_currency_code", "comment": null}, "format": {"type": "STRING", "index": 13, "name": "format", "comment": null}, "locale_country": {"type": "STRING", "index": 14, "name": "locale_country", "comment": null}, "locale_language": {"type": "STRING", "index": 15, "name": "locale_language", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "objective_type": {"type": "STRING", "index": 17, "name": "objective_type", "comment": null}, "offsite_delivery_enabled": {"type": "BOOL", "index": 18, "name": "offsite_delivery_enabled", "comment": null}, "optimization_target_type": {"type": "STRING", "index": 19, "name": "optimization_target_type", "comment": null}, "run_schedule_end": {"type": "TIMESTAMP", "index": 20, "name": "run_schedule_end", "comment": null}, "run_schedule_start": {"type": "TIMESTAMP", "index": 21, "name": "run_schedule_start", "comment": null}, "status": {"type": "STRING", "index": 22, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 23, "name": "type", "comment": null}, "unit_cost_amount": {"type": "FLOAT64", "index": 24, "name": "unit_cost_amount", "comment": null}, "unit_cost_currency_code": {"type": "STRING", "index": 25, "name": "unit_cost_currency_code", "comment": null}, "version_tag": {"type": "STRING", "index": 26, "name": "version_tag", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15364566.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 53138.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.reddit_ads.account": {"metadata": {"type": "table", "schema": "reddit_ads", "name": "account", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "attribution_type": {"type": "STRING", "index": 3, "name": "attribution_type", "comment": null}, "click_attribution_window": {"type": "STRING", "index": 4, "name": "click_attribution_window", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "status": {"type": "STRING", "index": 7, "name": "status", "comment": null}, "time_zone_id": {"type": "STRING", "index": 8, "name": "time_zone_id", "comment": null}, "view_attribution_window": {"type": "STRING", "index": 9, "name": "view_attribution_window", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 67.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.reddit_ads_source.reddit_ads.account"}, "source.reddit_ads_source.reddit_ads.ad_report": {"metadata": {"type": "table", "schema": "reddit_ads", "name": "ad_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "ad_id": {"type": "STRING", "index": 2, "name": "ad_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "FLOAT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "STRING", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "STRING", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "STRING", "index": 34, "name": "priority", "comment": null}, "region": {"type": "STRING", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 56322.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 189.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.reddit_ads.ad_report"}, "source.reddit_ads_source.reddit_ads.ad": {"metadata": {"type": "table", "schema": "reddit_ads", "name": "ad", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "STRING", "index": 5, "name": "campaign_id", "comment": null}, "click_url": {"type": "STRING", "index": 6, "name": "click_url", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "is_processing": {"type": "BOOL", "index": 9, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "post_id": {"type": "STRING", "index": 11, "name": "post_id", "comment": null}, "post_url": {"type": "STRING", "index": 12, "name": "post_url", "comment": null}, "preview_expiry": {"type": "STRING", "index": 13, "name": "preview_expiry", "comment": null}, "preview_url": {"type": "STRING", "index": 14, "name": "preview_url", "comment": null}, "rejection_reason": {"type": "STRING", "index": 15, "name": "rejection_reason", "comment": null}, "search_term": {"type": "STRING", "index": 16, "name": "search_term", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10755.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 32.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.reddit_ads.ad"}, "source.reddit_ads_source.reddit_ads.campaign": {"metadata": {"type": "table", "schema": "reddit_ads", "name": "campaign", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "configured_status": {"type": "STRING", "index": 4, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 5, "name": "effective_status", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 6, "name": "funding_instrument_id", "comment": null}, "is_processing": {"type": "BOOL", "index": 7, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 9, "name": "objective", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 975.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.reddit_ads_source.reddit_ads.campaign"}, "source.reddit_ads_source.reddit_ads.campaign_report": {"metadata": {"type": "table", "schema": "reddit_ads", "name": "campaign_report", "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": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "FLOAT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "STRING", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "STRING", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "STRING", "index": 34, "name": "priority", "comment": null}, "region": {"type": "STRING", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 23542.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 79.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.reddit_ads.campaign_report"}, "source.reddit_ads_source.reddit_ads.ad_group_report": {"metadata": {"type": "table", "schema": "reddit_ads", "name": "ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "ad_group_id": {"type": "STRING", "index": 2, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 3, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 6, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 7, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 8, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 9, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 10, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 11, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 12, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 13, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 15, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 16, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 17, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 18, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 19, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 20, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "FLOAT64", "index": 21, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 22, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 23, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 24, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "STRING", "index": 25, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "STRING", "index": 26, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 27, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 30, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 33, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "STRING", "index": 34, "name": "priority", "comment": null}, "region": {"type": "STRING", "index": 35, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 37, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 38, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 39, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 40, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 41, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 42, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 43, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 44, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 45, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 46, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 47, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 48, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 49, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 50, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 51, "name": "viewer_comments", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 47680.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 160.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.reddit_ads.ad_group_report"}, "source.reddit_ads_source.reddit_ads.ad_group": {"metadata": {"type": "table", "schema": "reddit_ads", "name": "ad_group", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "id": {"type": "STRING", "index": 2, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "bid_strategy": {"type": "STRING", "index": 4, "name": "bid_strategy", "comment": null}, "bid_value": {"type": "INT64", "index": 5, "name": "bid_value", "comment": null}, "campaign_id": {"type": "STRING", "index": 6, "name": "campaign_id", "comment": null}, "configured_status": {"type": "STRING", "index": 7, "name": "configured_status", "comment": null}, "effective_status": {"type": "STRING", "index": 8, "name": "effective_status", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 9, "name": "end_time", "comment": null}, "expand_targeting": {"type": "BOOL", "index": 10, "name": "expand_targeting", "comment": null}, "goal_type": {"type": "STRING", "index": 11, "name": "goal_type", "comment": null}, "goal_value": {"type": "INT64", "index": 12, "name": "goal_value", "comment": null}, "is_processing": {"type": "BOOL", "index": 13, "name": "is_processing", "comment": null}, "name": {"type": "STRING", "index": 14, "name": "name", "comment": null}, "optimization_strategy_type": {"type": "STRING", "index": 15, "name": "optimization_strategy_type", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 16, "name": "start_time", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3304.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.reddit_ads_source.reddit_ads.ad_group"}, "source.reddit_ads_source.reddit_ads.account_report": {"metadata": {"type": "table", "schema": "reddit_ads", "name": "account_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "app_install_metrics_add_payment_info": {"type": "INT64", "index": 4, "name": "app_install_metrics_add_payment_info", "comment": null}, "app_install_metrics_add_to_cart": {"type": "INT64", "index": 5, "name": "app_install_metrics_add_to_cart", "comment": null}, "app_install_metrics_app_launch": {"type": "INT64", "index": 6, "name": "app_install_metrics_app_launch", "comment": null}, "app_install_metrics_completed_tutorial": {"type": "INT64", "index": 7, "name": "app_install_metrics_completed_tutorial", "comment": null}, "app_install_metrics_install": {"type": "INT64", "index": 8, "name": "app_install_metrics_install", "comment": null}, "app_install_metrics_level_achieved": {"type": "INT64", "index": 9, "name": "app_install_metrics_level_achieved", "comment": null}, "app_install_metrics_purchase": {"type": "INT64", "index": 10, "name": "app_install_metrics_purchase", "comment": null}, "app_install_metrics_search": {"type": "INT64", "index": 11, "name": "app_install_metrics_search", "comment": null}, "app_install_metrics_sign_up": {"type": "INT64", "index": 12, "name": "app_install_metrics_sign_up", "comment": null}, "app_install_metrics_spend": {"type": "INT64", "index": 13, "name": "app_install_metrics_spend", "comment": null}, "app_install_metrics_spend_credits": {"type": "INT64", "index": 14, "name": "app_install_metrics_spend_credits", "comment": null}, "app_install_metrics_view_content": {"type": "INT64", "index": 15, "name": "app_install_metrics_view_content", "comment": null}, "clicks": {"type": "INT64", "index": 16, "name": "clicks", "comment": null}, "comment_downvotes": {"type": "INT64", "index": 17, "name": "comment_downvotes", "comment": null}, "comment_upvotes": {"type": "INT64", "index": 18, "name": "comment_upvotes", "comment": null}, "comments_page_views": {"type": "INT64", "index": 19, "name": "comments_page_views", "comment": null}, "conversion_roas": {"type": "FLOAT64", "index": 20, "name": "conversion_roas", "comment": null}, "cpc": {"type": "FLOAT64", "index": 21, "name": "cpc", "comment": null}, "ctr": {"type": "FLOAT64", "index": 22, "name": "ctr", "comment": null}, "ecpm": {"type": "FLOAT64", "index": 23, "name": "ecpm", "comment": null}, "gallery_item_caption": {"type": "STRING", "index": 24, "name": "gallery_item_caption", "comment": null}, "gallery_item_id": {"type": "STRING", "index": 25, "name": "gallery_item_id", "comment": null}, "impressions": {"type": "INT64", "index": 26, "name": "impressions", "comment": null}, "legacy_click_conversions_attribution_window_day": {"type": "INT64", "index": 27, "name": "legacy_click_conversions_attribution_window_day", "comment": null}, "legacy_click_conversions_attribution_window_month": {"type": "INT64", "index": 28, "name": "legacy_click_conversions_attribution_window_month", "comment": null}, "legacy_click_conversions_attribution_window_week": {"type": "INT64", "index": 29, "name": "legacy_click_conversions_attribution_window_week", "comment": null}, "legacy_view_conversions_attribution_window_day": {"type": "INT64", "index": 30, "name": "legacy_view_conversions_attribution_window_day", "comment": null}, "legacy_view_conversions_attribution_window_month": {"type": "INT64", "index": 31, "name": "legacy_view_conversions_attribution_window_month", "comment": null}, "legacy_view_conversions_attribution_window_week": {"type": "INT64", "index": 32, "name": "legacy_view_conversions_attribution_window_week", "comment": null}, "priority": {"type": "STRING", "index": 33, "name": "priority", "comment": null}, "region": {"type": "STRING", "index": 34, "name": "region", "comment": null}, "spend": {"type": "INT64", "index": 35, "name": "spend", "comment": null}, "video_fully_viewable_impressions": {"type": "INT64", "index": 36, "name": "video_fully_viewable_impressions", "comment": null}, "video_plays_expanded": {"type": "INT64", "index": 37, "name": "video_plays_expanded", "comment": null}, "video_plays_with_sound": {"type": "INT64", "index": 38, "name": "video_plays_with_sound", "comment": null}, "video_started": {"type": "INT64", "index": 39, "name": "video_started", "comment": null}, "video_viewable_impressions": {"type": "INT64", "index": 40, "name": "video_viewable_impressions", "comment": null}, "video_watched_100_percent": {"type": "INT64", "index": 41, "name": "video_watched_100_percent", "comment": null}, "video_watched_10_seconds": {"type": "INT64", "index": 42, "name": "video_watched_10_seconds", "comment": null}, "video_watched_25_percent": {"type": "INT64", "index": 43, "name": "video_watched_25_percent", "comment": null}, "video_watched_3_seconds": {"type": "INT64", "index": 44, "name": "video_watched_3_seconds", "comment": null}, "video_watched_50_percent": {"type": "INT64", "index": 45, "name": "video_watched_50_percent", "comment": null}, "video_watched_5_seconds": {"type": "INT64", "index": 46, "name": "video_watched_5_seconds", "comment": null}, "video_watched_75_percent": {"type": "INT64", "index": 47, "name": "video_watched_75_percent", "comment": null}, "video_watched_95_percent": {"type": "INT64", "index": 48, "name": "video_watched_95_percent", "comment": null}, "viewable_impressions": {"type": "INT64", "index": 49, "name": "viewable_impressions", "comment": null}, "viewer_comments": {"type": "INT64", "index": 50, "name": "viewer_comments", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 15512.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 56.0, "include": true, "description": "Approximate count of rows in this 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.reddit_ads_source.reddit_ads.account_report"}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "keyword_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "bid_amount": {"type": "BIGNUMERIC", "index": 5, "name": "bid_amount", "comment": null}, "bid_currency": {"type": "STRING", "index": 6, "name": "bid_currency", "comment": null}, "campaign_id": {"type": "INT64", "index": 7, "name": "campaign_id", "comment": null}, "deleted": {"type": "BOOL", "index": 8, "name": "deleted", "comment": null}, "match_type": {"type": "STRING", "index": 9, "name": "match_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "text": {"type": "STRING", "index": 11, "name": "text", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1663.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.apple_search_ads_source.apple_search_ads.ad_history": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "ad_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_group_id": {"type": "INT64", "index": 4, "name": "ad_group_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "creation_time": {"type": "TIMESTAMP", "index": 6, "name": "creation_time", "comment": null}, "creative_id": {"type": "INT64", "index": 7, "name": "creative_id", "comment": null}, "creative_type": {"type": "STRING", "index": 8, "name": "creative_type", "comment": null}, "deleted": {"type": "BOOL", "index": 9, "name": "deleted", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "org_id": {"type": "INT64", "index": 11, "name": "org_id", "comment": null}, "serving_status": {"type": "STRING", "index": 12, "name": "serving_status", "comment": null}, "status": {"type": "STRING", "index": 13, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 119.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.apple_search_ads_source.apple_search_ads.ad_group_report": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "ad_group_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "date": {"type": "DATE", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "avg_cpa_amount": {"type": "BIGNUMERIC", "index": 4, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 5, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "BIGNUMERIC", "index": 6, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 7, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "BIGNUMERIC", "index": 8, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 9, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 11, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 12, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "BIGNUMERIC", "index": 13, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 14, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 15, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 16, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 17, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 18, "name": "taps", "comment": null}, "avg_cpm_amount": {"type": "BIGNUMERIC", "index": 19, "name": "avg_cpm_amount", "comment": null}, "avg_cpm_currency": {"type": "STRING", "index": 20, "name": "avg_cpm_currency", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3807.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.ad_group_report"}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "keyword_report", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "avg_cpa_amount": {"type": "BIGNUMERIC", "index": 4, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 5, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "BIGNUMERIC", "index": 6, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 7, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "BIGNUMERIC", "index": 8, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 9, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 11, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 12, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "BIGNUMERIC", "index": 13, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 14, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 15, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 16, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 17, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 18, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 22869.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.apple_search_ads_source.apple_search_ads.ad_level_report": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "ad_level_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ad_group_id": {"type": "INT64", "index": 1, "name": "ad_group_id", "comment": null}, "ad_id": {"type": "INT64", "index": 2, "name": "ad_id", "comment": null}, "campaign_id": {"type": "INT64", "index": 3, "name": "campaign_id", "comment": null}, "creative_id": {"type": "INT64", "index": 4, "name": "creative_id", "comment": null}, "date": {"type": "DATE", "index": 5, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "avg_cpa_amount": {"type": "BIGNUMERIC", "index": 7, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 8, "name": "avg_cpa_currency", "comment": null}, "avg_cpm_amount": {"type": "BIGNUMERIC", "index": 9, "name": "avg_cpm_amount", "comment": null}, "avg_cpm_currency": {"type": "STRING", "index": 10, "name": "avg_cpm_currency", "comment": null}, "avg_cpt_amount": {"type": "BIGNUMERIC", "index": 11, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 12, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "BIGNUMERIC", "index": 13, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 14, "name": "conversions", "comment": null}, "display_status": {"type": "STRING", "index": 15, "name": "display_status", "comment": null}, "impressions": {"type": "INT64", "index": 16, "name": "impressions", "comment": null}, "language": {"type": "STRING", "index": 17, "name": "language", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 18, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 19, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "BIGNUMERIC", "index": 20, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 21, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 22, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 23, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 24, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 25, "name": "taps", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4590.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.apple_search_ads_source.apple_search_ads.ad_level_report"}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "ad_group_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "automated_keywords_opt_in": {"type": "BOOL", "index": 4, "name": "automated_keywords_opt_in", "comment": null}, "campaign_id": {"type": "INT64", "index": 5, "name": "campaign_id", "comment": null}, "cpa_goal_amount": {"type": "BIGNUMERIC", "index": 6, "name": "cpa_goal_amount", "comment": null}, "cpa_goal_currency": {"type": "STRING", "index": 7, "name": "cpa_goal_currency", "comment": null}, "default_cpc_bid_amount": {"type": "BIGNUMERIC", "index": 8, "name": "default_cpc_bid_amount", "comment": null}, "default_cpc_bid_currency": {"type": "STRING", "index": 9, "name": "default_cpc_bid_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 10, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 11, "name": "end_time", "comment": null}, "name": {"type": "STRING", "index": 12, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 13, "name": "organization_id", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 14, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 15, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 16, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 17, "name": "status", "comment": null}, "storefronts": {"type": "STRING", "index": 18, "name": "storefronts", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 523.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "include": true, "description": "Approximate count of rows in this 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.organization": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "organization", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "currency": {"type": "STRING", "index": 3, "name": "currency", "comment": null}, "name": {"type": "STRING", "index": 4, "name": "name", "comment": null}, "payment_model": {"type": "STRING", "index": 5, "name": "payment_model", "comment": null}, "role_names": {"type": "STRING", "index": 6, "name": "role_names", "comment": null}, "time_zone": {"type": "STRING", "index": 7, "name": "time_zone", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 148.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.apple_search_ads_source.apple_search_ads.campaign_history": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "campaign_history", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "adam_id": {"type": "INT64", "index": 4, "name": "adam_id", "comment": null}, "budget_amount": {"type": "BIGNUMERIC", "index": 5, "name": "budget_amount", "comment": null}, "budget_currency": {"type": "STRING", "index": 6, "name": "budget_currency", "comment": null}, "budget_orders": {"type": "STRING", "index": 7, "name": "budget_orders", "comment": null}, "daily_budget_amount": {"type": "BIGNUMERIC", "index": 8, "name": "daily_budget_amount", "comment": null}, "daily_budget_currency": {"type": "STRING", "index": 9, "name": "daily_budget_currency", "comment": null}, "deleted": {"type": "BOOL", "index": 10, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 11, "name": "end_time", "comment": null}, "loc_invoice_detail_buyer_email": {"type": "STRING", "index": 12, "name": "loc_invoice_detail_buyer_email", "comment": null}, "loc_invoice_detail_buyer_name": {"type": "STRING", "index": 13, "name": "loc_invoice_detail_buyer_name", "comment": null}, "loc_invoice_detail_client_name": {"type": "STRING", "index": 14, "name": "loc_invoice_detail_client_name", "comment": null}, "loc_invoice_detail_order_number": {"type": "STRING", "index": 15, "name": "loc_invoice_detail_order_number", "comment": null}, "name": {"type": "STRING", "index": 16, "name": "name", "comment": null}, "organization_id": {"type": "INT64", "index": 17, "name": "organization_id", "comment": null}, "payment_model": {"type": "STRING", "index": 18, "name": "payment_model", "comment": null}, "serving_state_reasons": {"type": "STRING", "index": 19, "name": "serving_state_reasons", "comment": null}, "serving_status": {"type": "STRING", "index": 20, "name": "serving_status", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 21, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 22, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1847.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.apple_search_ads_source.apple_search_ads.campaign_history"}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "search_term_report", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "ad_group_deleted": {"type": "BOOL", "index": 6, "name": "ad_group_deleted", "comment": null}, "ad_group_name": {"type": "STRING", "index": 7, "name": "ad_group_name", "comment": null}, "avg_cpa_amount": {"type": "BIGNUMERIC", "index": 8, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 9, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "BIGNUMERIC", "index": 10, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 11, "name": "avg_cpt_currency", "comment": null}, "bid_amount_amount": {"type": "BIGNUMERIC", "index": 12, "name": "bid_amount_amount", "comment": null}, "bid_amount_currency": {"type": "STRING", "index": 13, "name": "bid_amount_currency", "comment": null}, "conversion_rate": {"type": "BIGNUMERIC", "index": 14, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 15, "name": "conversions", "comment": null}, "deleted": {"type": "BOOL", "index": 16, "name": "deleted", "comment": null}, "impressions": {"type": "INT64", "index": 17, "name": "impressions", "comment": null}, "keyword": {"type": "STRING", "index": 18, "name": "keyword", "comment": null}, "keyword_display_status": {"type": "STRING", "index": 19, "name": "keyword_display_status", "comment": null}, "keyword_id": {"type": "INT64", "index": 20, "name": "keyword_id", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 21, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 22, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "BIGNUMERIC", "index": 23, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 24, "name": "local_spend_currency", "comment": null}, "match_type": {"type": "STRING", "index": 25, "name": "match_type", "comment": null}, "new_downloads": {"type": "INT64", "index": 26, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 27, "name": "redownloads", "comment": null}, "search_term_source": {"type": "STRING", "index": 28, "name": "search_term_source", "comment": null}, "search_term_text": {"type": "STRING", "index": 29, "name": "search_term_text", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 30, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 31, "name": "taps", "comment": null}, "avg_cpm_amount": {"type": "BIGNUMERIC", "index": 32, "name": "avg_cpm_amount", "comment": null}, "avg_cpm_currency": {"type": "STRING", "index": 33, "name": "avg_cpm_currency", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 58497.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 161.0, "include": true, "description": "Approximate count of rows in this 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.apple_search_ads_source.apple_search_ads.campaign_report": {"metadata": {"type": "table", "schema": "apple_search_ads", "name": "campaign_report", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "avg_cpa_amount": {"type": "BIGNUMERIC", "index": 4, "name": "avg_cpa_amount", "comment": null}, "avg_cpa_currency": {"type": "STRING", "index": 5, "name": "avg_cpa_currency", "comment": null}, "avg_cpt_amount": {"type": "BIGNUMERIC", "index": 6, "name": "avg_cpt_amount", "comment": null}, "avg_cpt_currency": {"type": "STRING", "index": 7, "name": "avg_cpt_currency", "comment": null}, "conversion_rate": {"type": "BIGNUMERIC", "index": 8, "name": "conversion_rate", "comment": null}, "conversions": {"type": "INT64", "index": 9, "name": "conversions", "comment": null}, "impressions": {"type": "INT64", "index": 10, "name": "impressions", "comment": null}, "lat_off_installs": {"type": "INT64", "index": 11, "name": "lat_off_installs", "comment": null}, "lat_on_installs": {"type": "INT64", "index": 12, "name": "lat_on_installs", "comment": null}, "local_spend_amount": {"type": "BIGNUMERIC", "index": 13, "name": "local_spend_amount", "comment": null}, "local_spend_currency": {"type": "STRING", "index": 14, "name": "local_spend_currency", "comment": null}, "new_downloads": {"type": "INT64", "index": 15, "name": "new_downloads", "comment": null}, "redownloads": {"type": "INT64", "index": 16, "name": "redownloads", "comment": null}, "tap_through_rate": {"type": "FLOAT64", "index": 17, "name": "tap_through_rate", "comment": null}, "taps": {"type": "INT64", "index": 18, "name": "taps", "comment": null}, "avg_cpm_amount": {"type": "BIGNUMERIC", "index": 19, "name": "avg_cpm_amount", "comment": null}, "avg_cpm_currency": {"type": "STRING", "index": 20, "name": "avg_cpm_currency", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3576.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.apple_search_ads_source.apple_search_ads.campaign_report"}, "source.pinterest_source.pinterest_ads.campaign_history": {"metadata": {"type": "table", "schema": "pinterest_ads", "name": "campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"ID": {"type": "INT64", "index": 1, "name": "ID", "comment": null}, "CREATED_TIME": {"type": "DATETIME", "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": 91.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.pinterest_source.pinterest_ads.pin_promotion_history": {"metadata": {"type": "table", "schema": "pinterest_ads", "name": "pin_promotion_history", "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.pinterest_source.pinterest_ads.advertiser_history": {"metadata": {"type": "table", "schema": "pinterest_ads", "name": "advertiser_history", "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}, "name": {"type": "STRING", "index": 3, "name": "name", "comment": null}, "owner_user_id": {"type": "INT64", "index": 4, "name": "owner_user_id", "comment": null}, "test_account": {"type": "BOOL", "index": 5, "name": "test_account", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "country": {"type": "STRING", "index": 7, "name": "country", "comment": null}, "created_time": {"type": "DATETIME", "index": 8, "name": "created_time", "comment": null}, "is_one_tap": {"type": "BOOL", "index": 9, "name": "is_one_tap", "comment": null}, "_fivetran_synced": {"type": "STRING", "index": 10, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 330.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.advertiser_history"}, "source.pinterest_source.pinterest_ads.ad_group_history": {"metadata": {"type": "table", "schema": "pinterest_ads", "name": "ad_group_history", "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.pinterest_source.pinterest_ads.pin_promotion_report": {"metadata": {"type": "table", "schema": "pinterest_ads", "name": "pin_promotion_report", "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": 9108.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.facebook_ads_source.facebook_ads.account_history": {"metadata": {"type": "table", "schema": "facebook_ads", "name": "account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_id": {"type": "STRING", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_status": {"type": "STRING", "index": 3, "name": "account_status", "comment": null}, "age": {"type": "FLOAT64", "index": 4, "name": "age", "comment": null}, "agency_client_declaration_agency_representing_client": {"type": "INT64", "index": 5, "name": "agency_client_declaration_agency_representing_client", "comment": null}, "agency_client_declaration_client_based_in_france": {"type": "INT64", "index": 6, "name": "agency_client_declaration_client_based_in_france", "comment": null}, "agency_client_declaration_client_city": {"type": "STRING", "index": 7, "name": "agency_client_declaration_client_city", "comment": null}, "agency_client_declaration_client_country_code": {"type": "STRING", "index": 8, "name": "agency_client_declaration_client_country_code", "comment": null}, "agency_client_declaration_client_email_address": {"type": "STRING", "index": 9, "name": "agency_client_declaration_client_email_address", "comment": null}, "agency_client_declaration_client_name": {"type": "STRING", "index": 10, "name": "agency_client_declaration_client_name", "comment": null}, "agency_client_declaration_client_postal_code": {"type": "STRING", "index": 11, "name": "agency_client_declaration_client_postal_code", "comment": null}, "agency_client_declaration_client_province": {"type": "STRING", "index": 12, "name": "agency_client_declaration_client_province", "comment": null}, "agency_client_declaration_client_street": {"type": "STRING", "index": 13, "name": "agency_client_declaration_client_street", "comment": null}, "agency_client_declaration_client_street_2": {"type": "STRING", "index": 14, "name": "agency_client_declaration_client_street_2", "comment": null}, "agency_client_declaration_has_written_mandate_from_advertiser": {"type": "INT64", "index": 15, "name": "agency_client_declaration_has_written_mandate_from_advertiser", "comment": null}, "agency_client_declaration_is_client_paying_invoices": {"type": "INT64", "index": 16, "name": "agency_client_declaration_is_client_paying_invoices", "comment": null}, "amount_spent": {"type": "INT64", "index": 17, "name": "amount_spent", "comment": null}, "balance": {"type": "INT64", "index": 18, "name": "balance", "comment": null}, "business_city": {"type": "STRING", "index": 19, "name": "business_city", "comment": null}, "business_country_code": {"type": "STRING", "index": 20, "name": "business_country_code", "comment": null}, "business_manager_created_by": {"type": "STRING", "index": 21, "name": "business_manager_created_by", "comment": null}, "business_manager_created_time": {"type": "TIMESTAMP", "index": 22, "name": "business_manager_created_time", "comment": null}, "business_manager_manager_id": {"type": "INT64", "index": 23, "name": "business_manager_manager_id", "comment": null}, "business_manager_name": {"type": "STRING", "index": 24, "name": "business_manager_name", "comment": null}, "business_manager_primary_page": {"type": "STRING", "index": 25, "name": "business_manager_primary_page", "comment": null}, "business_manager_timezone_id": {"type": "INT64", "index": 26, "name": "business_manager_timezone_id", "comment": null}, "business_manager_update_time": {"type": "TIMESTAMP", "index": 27, "name": "business_manager_update_time", "comment": null}, "business_manager_updated_by": {"type": "STRING", "index": 28, "name": "business_manager_updated_by", "comment": null}, "business_name": {"type": "STRING", "index": 29, "name": "business_name", "comment": null}, "business_state": {"type": "STRING", "index": 30, "name": "business_state", "comment": null}, "business_street": {"type": "STRING", "index": 31, "name": "business_street", "comment": null}, "business_street_2": {"type": "STRING", "index": 32, "name": "business_street_2", "comment": null}, "business_zip": {"type": "STRING", "index": 33, "name": "business_zip", "comment": null}, "can_create_brand_lift_study": {"type": "BOOL", "index": 34, "name": "can_create_brand_lift_study", "comment": null}, "capabilities": {"type": "STRING", "index": 35, "name": "capabilities", "comment": null}, "created_time": {"type": "TIMESTAMP", "index": 36, "name": "created_time", "comment": null}, "currency": {"type": "STRING", "index": 37, "name": "currency", "comment": null}, "disable_reason": {"type": "STRING", "index": 38, "name": "disable_reason", "comment": null}, "end_advertiser": {"type": "INT64", "index": 39, "name": "end_advertiser", "comment": null}, "end_advertiser_name": {"type": "STRING", "index": 40, "name": "end_advertiser_name", "comment": null}, "has_migrated_permissions": {"type": "BOOL", "index": 41, "name": "has_migrated_permissions", "comment": null}, "id": {"type": "INT64", "index": 42, "name": "id", "comment": null}, "io_number": {"type": "INT64", "index": 43, "name": "io_number", "comment": null}, "is_attribution_spec_system_default": {"type": "BOOL", "index": 44, "name": "is_attribution_spec_system_default", "comment": null}, "is_direct_deals_enabled": {"type": "BOOL", "index": 45, "name": "is_direct_deals_enabled", "comment": null}, "is_notifications_enabled": {"type": "BOOL", "index": 46, "name": "is_notifications_enabled", "comment": null}, "is_personal": {"type": "INT64", "index": 47, "name": "is_personal", "comment": null}, "is_prepay_account": {"type": "BOOL", "index": 48, "name": "is_prepay_account", "comment": null}, "is_tax_id_required": {"type": "BOOL", "index": 49, "name": "is_tax_id_required", "comment": null}, "media_agency": {"type": "INT64", "index": 50, "name": "media_agency", "comment": null}, "min_campaign_group_spend_cap": {"type": "INT64", "index": 51, "name": "min_campaign_group_spend_cap", "comment": null}, "min_daily_budget": {"type": "INT64", "index": 52, "name": "min_daily_budget", "comment": null}, "name": {"type": "STRING", "index": 53, "name": "name", "comment": null}, "next_bill_date": {"type": "TIMESTAMP", "index": 54, "name": "next_bill_date", "comment": null}, "offsite_pixels_tos_accepted": {"type": "BOOL", "index": 55, "name": "offsite_pixels_tos_accepted", "comment": null}, "owner": {"type": "INT64", "index": 56, "name": "owner", "comment": null}, "partner": {"type": "INT64", "index": 57, "name": "partner", "comment": null}, "salesforce_invoice_group_id": {"type": "STRING", "index": 58, "name": "salesforce_invoice_group_id", "comment": null}, "spend_cap": {"type": "INT64", "index": 59, "name": "spend_cap", "comment": null}, "tax_id": {"type": "STRING", "index": 60, "name": "tax_id", "comment": null}, "tax_id_status": {"type": "STRING", "index": 61, "name": "tax_id_status", "comment": null}, "tax_id_type": {"type": "STRING", "index": 62, "name": "tax_id_type", "comment": null}, "timezone_id": {"type": "INT64", "index": 63, "name": "timezone_id", "comment": null}, "timezone_name": {"type": "STRING", "index": 64, "name": "timezone_name", "comment": null}, "timezone_offset_hours_utc": {"type": "FLOAT64", "index": 65, "name": "timezone_offset_hours_utc", "comment": null}, "extended_credit_invoice_group_name": {"type": "STRING", "index": 66, "name": "extended_credit_invoice_group_name", "comment": null}, "extended_credit_invoice_group_id": {"type": "INT64", "index": 67, "name": "extended_credit_invoice_group_id", "comment": null}, "is_in_3_ds_authorization_enabled_market": {"type": "BOOL", "index": 68, "name": "is_in_3_ds_authorization_enabled_market", "comment": null}, "extended_credit_invoice_group_emails": {"type": "STRING", "index": 69, "name": "extended_credit_invoice_group_emails", "comment": null}, "extended_credit_invoice_group_auto_enroll": {"type": "BOOL", "index": 70, "name": "extended_credit_invoice_group_auto_enroll", "comment": null}, "is_in_middle_of_local_entity_migration": {"type": "BOOL", "index": 71, "name": "is_in_middle_of_local_entity_migration", "comment": null}, "extended_credit_invoice_group_customer_po_number": {"type": "STRING", "index": 72, "name": "extended_credit_invoice_group_customer_po_number", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 299675.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 57.0, "include": true, "description": "Approximate count of rows in this 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.tiktok_ads_source.tiktok_ads.ad_history": {"metadata": {"type": "table", "schema": "tiktok_ads", "name": "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": "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": 1144.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.tiktok_ads_source.tiktok_ads.campaign_history": {"metadata": {"type": "table", "schema": "tiktok_ads", "name": "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": "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": 775.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.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"metadata": {"type": "table", "schema": "tiktok_ads", "name": "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": "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": 1344.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.tiktok_ads_source.tiktok_ads.advertiser": {"metadata": {"type": "table", "schema": "tiktok_ads", "name": "advertiser", "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": 463.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.tiktok_ads_source.tiktok_ads.adgroup_history": {"metadata": {"type": "table", "schema": "tiktok_ads", "name": "adgroup_history", "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": 2647.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"}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"metadata": {"type": "table", "schema": "tiktok_ads", "name": "adgroup_report_hourly", "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": 1344.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.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"metadata": {"type": "table", "schema": "tiktok_ads", "name": "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": "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": 1344.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.snapchat_ads_source.snapchat_ads.creative_history": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "creative_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_account_id": {"type": "STRING", "index": 4, "name": "ad_account_id", "comment": null}, "ad_product": {"type": "STRING", "index": 5, "name": "ad_product", "comment": null}, "app_install_android_app_url": {"type": "STRING", "index": 6, "name": "app_install_android_app_url", "comment": null}, "app_install_app_name": {"type": "STRING", "index": 7, "name": "app_install_app_name", "comment": null}, "app_install_icon_media_id": {"type": "STRING", "index": 8, "name": "app_install_icon_media_id", "comment": null}, "app_install_ios_app_id": {"type": "STRING", "index": 9, "name": "app_install_ios_app_id", "comment": null}, "attachment_type": {"type": "STRING", "index": 10, "name": "attachment_type", "comment": null}, "brand_name": {"type": "STRING", "index": 11, "name": "brand_name", "comment": null}, "call_to_action": {"type": "STRING", "index": 12, "name": "call_to_action", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 13, "name": "created_at", "comment": null}, "deep_link_android_app_url": {"type": "STRING", "index": 14, "name": "deep_link_android_app_url", "comment": null}, "deep_link_app_name": {"type": "STRING", "index": 15, "name": "deep_link_app_name", "comment": null}, "deep_link_icon_media_id": {"type": "STRING", "index": 16, "name": "deep_link_icon_media_id", "comment": null}, "deep_link_ios_app_id": {"type": "STRING", "index": 17, "name": "deep_link_ios_app_id", "comment": null}, "deep_link_uri": {"type": "STRING", "index": 18, "name": "deep_link_uri", "comment": null}, "headline": {"type": "STRING", "index": 19, "name": "headline", "comment": null}, "longform_video_media_id": {"type": "STRING", "index": 20, "name": "longform_video_media_id", "comment": null}, "name": {"type": "STRING", "index": 21, "name": "name", "comment": null}, "packaging_status": {"type": "STRING", "index": 22, "name": "packaging_status", "comment": null}, "playback_type": {"type": "STRING", "index": 23, "name": "playback_type", "comment": null}, "preview_creative_id": {"type": "STRING", "index": 24, "name": "preview_creative_id", "comment": null}, "review_status": {"type": "STRING", "index": 25, "name": "review_status", "comment": null}, "shareable": {"type": "BOOL", "index": 26, "name": "shareable", "comment": null}, "top_snap_crop_position": {"type": "STRING", "index": 27, "name": "top_snap_crop_position", "comment": null}, "top_snap_media_id": {"type": "STRING", "index": 28, "name": "top_snap_media_id", "comment": null}, "type": {"type": "STRING", "index": 29, "name": "type", "comment": null}, "web_view_allow_snap_javascript_sdk": {"type": "BOOL", "index": 30, "name": "web_view_allow_snap_javascript_sdk", "comment": null}, "web_view_block_preload": {"type": "BOOL", "index": 31, "name": "web_view_block_preload", "comment": null}, "web_view_url": {"type": "STRING", "index": 32, "name": "web_view_url", "comment": null}, "web_view_use_immersive_mode": {"type": "BOOL", "index": 33, "name": "web_view_use_immersive_mode", "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": 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.snapchat_ads_source.snapchat_ads.creative_history"}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "ad_hourly_report", "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}, "_fivetran_synced": {"type": "TIMESTAMP", "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_frequency": {"type": "INT64", "index": 6, "name": "attachment_frequency", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 7, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 8, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 9, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 10, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_uniques": {"type": "INT64", "index": 11, "name": "attachment_uniques", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 12, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 13, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 14, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 15, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 16, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 17, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 18, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 19, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 20, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 22, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 23, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 24, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 25, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 26, "name": "conversion_view_content", "comment": null}, "frequency": {"type": "INT64", "index": 27, "name": "frequency", "comment": null}, "impressions": {"type": "INT64", "index": 28, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 29, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 30, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 31, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 32, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 33, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 34, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 35, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 37, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 38, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 39, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 40, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 41, "name": "total_installs", "comment": null}, "uniques": {"type": "INT64", "index": 42, "name": "uniques", "comment": null}, "video_views": {"type": "INT64", "index": 43, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 44, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 45, "name": "view_time_millis", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 103104.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 288.0, "include": true, "description": "Approximate count of rows in this 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.snapchat_ads_source.snapchat_ads.ad_account_history": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "ad_account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "advertiser": {"type": "STRING", "index": 4, "name": "advertiser", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "lifetime_spend_cap_micro": {"type": "INT64", "index": 7, "name": "lifetime_spend_cap_micro", "comment": null}, "name": {"type": "STRING", "index": 8, "name": "name", "comment": null}, "organization_id": {"type": "STRING", "index": 9, "name": "organization_id", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "timezone": {"type": "STRING", "index": 11, "name": "timezone", "comment": null}, "type": {"type": "STRING", "index": 12, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1164.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 7.0, "include": true, "description": "Approximate count of rows in this 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.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "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": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "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_frequency": {"type": "INT64", "index": 6, "name": "attachment_frequency", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 7, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 8, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 9, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 10, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_uniques": {"type": "INT64", "index": 11, "name": "attachment_uniques", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 12, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 13, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 14, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 15, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 16, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 17, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 18, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 19, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 20, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 22, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 23, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 24, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 25, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 26, "name": "conversion_view_content", "comment": null}, "frequency": {"type": "INT64", "index": 27, "name": "frequency", "comment": null}, "impressions": {"type": "INT64", "index": 28, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 29, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 30, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 31, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 32, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 33, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 34, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 35, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 37, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 38, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 39, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 40, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 41, "name": "total_installs", "comment": null}, "uniques": {"type": "INT64", "index": 42, "name": "uniques", "comment": null}, "video_views": {"type": "INT64", "index": 43, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 44, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 45, "name": "view_time_millis", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 103104.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 288.0, "include": true, "description": "Approximate count of rows in this 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.snapchat_ads_source.snapchat_ads.ad_squad_history": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "ad_squad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "audience_size_maximum": {"type": "INT64", "index": 4, "name": "audience_size_maximum", "comment": null}, "audience_size_minimum": {"type": "INT64", "index": 5, "name": "audience_size_minimum", "comment": null}, "auto_bid": {"type": "BOOL", "index": 6, "name": "auto_bid", "comment": null}, "bid_estimate_maximum": {"type": "INT64", "index": 7, "name": "bid_estimate_maximum", "comment": null}, "bid_estimate_minimum": {"type": "INT64", "index": 8, "name": "bid_estimate_minimum", "comment": null}, "bid_micro": {"type": "INT64", "index": 9, "name": "bid_micro", "comment": null}, "billing_event": {"type": "STRING", "index": 10, "name": "billing_event", "comment": null}, "campaign_id": {"type": "STRING", "index": 11, "name": "campaign_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 12, "name": "created_at", "comment": null}, "daily_budget_micro": {"type": "INT64", "index": 13, "name": "daily_budget_micro", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 14, "name": "end_time", "comment": null}, "lifetime_budget_micro": {"type": "INT64", "index": 15, "name": "lifetime_budget_micro", "comment": null}, "lifetime_spend_micro": {"type": "INT64", "index": 16, "name": "lifetime_spend_micro", "comment": null}, "name": {"type": "STRING", "index": 17, "name": "name", "comment": null}, "optimization_goal": {"type": "STRING", "index": 18, "name": "optimization_goal", "comment": null}, "placement": {"type": "STRING", "index": 19, "name": "placement", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 20, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 21, "name": "status", "comment": null}, "targeting_regulated_content": {"type": "BOOL", "index": 22, "name": "targeting_regulated_content", "comment": null}, "type": {"type": "STRING", "index": 23, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 214.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.snapchat_ads_source.snapchat_ads.ad_squad_history"}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "creative_url_tag_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"_fivetran_synced": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_synced", "comment": null}, "creative_id": {"type": "STRING", "index": 2, "name": "creative_id", "comment": null}, "key": {"type": "STRING", "index": 3, "name": "key", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 4, "name": "updated_at", "comment": null}, "value": {"type": "STRING", "index": 5, "name": "value", "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": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "campaign_hourly_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"campaign_id": {"type": "STRING", "index": 1, "name": "campaign_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "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_frequency": {"type": "INT64", "index": 6, "name": "attachment_frequency", "comment": null}, "attachment_quartile_1": {"type": "INT64", "index": 7, "name": "attachment_quartile_1", "comment": null}, "attachment_quartile_2": {"type": "INT64", "index": 8, "name": "attachment_quartile_2", "comment": null}, "attachment_quartile_3": {"type": "INT64", "index": 9, "name": "attachment_quartile_3", "comment": null}, "attachment_total_view_time_millis": {"type": "INT64", "index": 10, "name": "attachment_total_view_time_millis", "comment": null}, "attachment_uniques": {"type": "INT64", "index": 11, "name": "attachment_uniques", "comment": null}, "attachment_view_completion": {"type": "INT64", "index": 12, "name": "attachment_view_completion", "comment": null}, "avg_screen_time_millis": {"type": "INT64", "index": 13, "name": "avg_screen_time_millis", "comment": null}, "avg_view_time_millis": {"type": "INT64", "index": 14, "name": "avg_view_time_millis", "comment": null}, "conversion_add_billing": {"type": "INT64", "index": 15, "name": "conversion_add_billing", "comment": null}, "conversion_add_cart": {"type": "INT64", "index": 16, "name": "conversion_add_cart", "comment": null}, "conversion_app_opens": {"type": "INT64", "index": 17, "name": "conversion_app_opens", "comment": null}, "conversion_level_completes": {"type": "INT64", "index": 18, "name": "conversion_level_completes", "comment": null}, "conversion_page_views": {"type": "INT64", "index": 19, "name": "conversion_page_views", "comment": null}, "conversion_purchases": {"type": "INT64", "index": 20, "name": "conversion_purchases", "comment": null}, "conversion_purchases_value": {"type": "INT64", "index": 21, "name": "conversion_purchases_value", "comment": null}, "conversion_save": {"type": "INT64", "index": 22, "name": "conversion_save", "comment": null}, "conversion_searches": {"type": "INT64", "index": 23, "name": "conversion_searches", "comment": null}, "conversion_sign_ups": {"type": "INT64", "index": 24, "name": "conversion_sign_ups", "comment": null}, "conversion_start_checkout": {"type": "INT64", "index": 25, "name": "conversion_start_checkout", "comment": null}, "conversion_view_content": {"type": "INT64", "index": 26, "name": "conversion_view_content", "comment": null}, "frequency": {"type": "INT64", "index": 27, "name": "frequency", "comment": null}, "impressions": {"type": "INT64", "index": 28, "name": "impressions", "comment": null}, "ios_installs": {"type": "INT64", "index": 29, "name": "ios_installs", "comment": null}, "quartile_1": {"type": "INT64", "index": 30, "name": "quartile_1", "comment": null}, "quartile_2": {"type": "INT64", "index": 31, "name": "quartile_2", "comment": null}, "quartile_3": {"type": "INT64", "index": 32, "name": "quartile_3", "comment": null}, "saves": {"type": "INT64", "index": 33, "name": "saves", "comment": null}, "screen_time_millis": {"type": "INT64", "index": 34, "name": "screen_time_millis", "comment": null}, "shares": {"type": "INT64", "index": 35, "name": "shares", "comment": null}, "spend": {"type": "INT64", "index": 36, "name": "spend", "comment": null}, "story_completes": {"type": "INT64", "index": 37, "name": "story_completes", "comment": null}, "story_opens": {"type": "INT64", "index": 38, "name": "story_opens", "comment": null}, "swipe_up_percent": {"type": "INT64", "index": 39, "name": "swipe_up_percent", "comment": null}, "swipes": {"type": "INT64", "index": 40, "name": "swipes", "comment": null}, "total_installs": {"type": "INT64", "index": 41, "name": "total_installs", "comment": null}, "uniques": {"type": "INT64", "index": 42, "name": "uniques", "comment": null}, "video_views": {"type": "INT64", "index": 43, "name": "video_views", "comment": null}, "view_completion": {"type": "INT64", "index": 44, "name": "view_completion", "comment": null}, "view_time_millis": {"type": "INT64", "index": 45, "name": "view_time_millis", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1039056.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2904.0, "include": true, "description": "Approximate count of rows in this 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.snapchat_ads_source.snapchat_ads.campaign_history": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_account_id": {"type": "STRING", "index": 4, "name": "ad_account_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 5, "name": "created_at", "comment": null}, "daily_budget_micro": {"type": "INT64", "index": 6, "name": "daily_budget_micro", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 7, "name": "end_time", "comment": null}, "lifetime_spend_cap_micro": {"type": "INT64", "index": 8, "name": "lifetime_spend_cap_micro", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 10, "name": "objective", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 11, "name": "start_time", "comment": null}, "status": {"type": "STRING", "index": 12, "name": "status", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 165.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.snapchat_ads_source.snapchat_ads.campaign_history"}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"metadata": {"type": "table", "schema": "snapchat_ads", "name": "ad_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "ad_squad_id": {"type": "STRING", "index": 4, "name": "ad_squad_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 5, "name": "created_at", "comment": null}, "creative_id": {"type": "STRING", "index": 6, "name": "creative_id", "comment": null}, "name": {"type": "STRING", "index": 7, "name": "name", "comment": null}, "review_status": {"type": "STRING", "index": 8, "name": "review_status", "comment": null}, "review_status_reason": {"type": "STRING", "index": 9, "name": "review_status_reason", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "type": {"type": "STRING", "index": 11, "name": "type", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 205.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.snapchat_ads_source.snapchat_ads.ad_history"}, "source.twitter_ads_source.twitter_ads.line_item_history": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "line_item_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "advertiser_domain": {"type": "STRING", "index": 4, "name": "advertiser_domain", "comment": null}, "advertiser_user_id": {"type": "INT64", "index": 5, "name": "advertiser_user_id", "comment": null}, "automatically_select_bid": {"type": "BOOL", "index": 6, "name": "automatically_select_bid", "comment": null}, "bid_amount_local_micro": {"type": "INT64", "index": 7, "name": "bid_amount_local_micro", "comment": null}, "bid_type": {"type": "STRING", "index": 8, "name": "bid_type", "comment": null}, "bid_unit": {"type": "STRING", "index": 9, "name": "bid_unit", "comment": null}, "campaign_id": {"type": "STRING", "index": 10, "name": "campaign_id", "comment": null}, "charge_by": {"type": "STRING", "index": 11, "name": "charge_by", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 12, "name": "created_at", "comment": null}, "creative_source": {"type": "STRING", "index": 13, "name": "creative_source", "comment": null}, "currency": {"type": "STRING", "index": 14, "name": "currency", "comment": null}, "deleted": {"type": "BOOL", "index": 15, "name": "deleted", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 16, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 17, "name": "entity_status", "comment": null}, "name": {"type": "STRING", "index": 18, "name": "name", "comment": null}, "objective": {"type": "STRING", "index": 19, "name": "objective", "comment": null}, "optimization": {"type": "STRING", "index": 20, "name": "optimization", "comment": null}, "primary_web_event_tag": {"type": "STRING", "index": 21, "name": "primary_web_event_tag", "comment": null}, "product_type": {"type": "STRING", "index": 22, "name": "product_type", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 23, "name": "start_time", "comment": null}, "target_cpa_local_micro": {"type": "INT64", "index": 24, "name": "target_cpa_local_micro", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 25, "name": "total_budget_amount_local_micro", "comment": null}, "bid_strategy": {"type": "STRING", "index": 26, "name": "bid_strategy", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 7568.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": "source.twitter_ads_source.twitter_ads.line_item_history"}, "source.twitter_ads_source.twitter_ads.line_item_report": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "line_item_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "TIMESTAMP", "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": "TIMESTAMP", "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": 3497214.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1741.0, "include": true, "description": "Approximate count of rows in this 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.twitter_ads_source.twitter_ads.tweet": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "tweet", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 3, "name": "account_id", "comment": null}, "card_uri": {"type": "STRING", "index": 4, "name": "card_uri", "comment": null}, "coordinates_coordinates": {"type": "STRING", "index": 5, "name": "coordinates_coordinates", "comment": null}, "coordinates_type": {"type": "STRING", "index": 6, "name": "coordinates_type", "comment": null}, "created_at": {"type": "TIMESTAMP", "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": "BOOL", "index": 10, "name": "followers", "comment": null}, "full_text": {"type": "STRING", "index": 11, "name": "full_text", "comment": null}, "geo_coordinates": {"type": "STRING", "index": 12, "name": "geo_coordinates", "comment": null}, "geo_type": {"type": "STRING", "index": 13, "name": "geo_type", "comment": null}, "in_reply_to_screen_name": {"type": "STRING", "index": 14, "name": "in_reply_to_screen_name", "comment": null}, "in_reply_to_status_id": {"type": "STRING", "index": 15, "name": "in_reply_to_status_id", "comment": null}, "in_reply_to_user_id": {"type": "STRING", "index": 16, "name": "in_reply_to_user_id", "comment": null}, "lang": {"type": "STRING", "index": 17, "name": "lang", "comment": null}, "media_key": {"type": "STRING", "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": "STRING", "index": 24, "name": "user_id", "comment": null}, "name": {"type": "STRING", "index": 25, "name": "name", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 780746.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2023.0, "include": true, "description": "Approximate count of rows in this 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.twitter_ads_source.twitter_ads.promoted_tweet_history": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "promoted_tweet_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 4, "name": "approval_status", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 5, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 6, "name": "deleted", "comment": null}, "entity_status": {"type": "STRING", "index": 7, "name": "entity_status", "comment": null}, "line_item_id": {"type": "STRING", "index": 8, "name": "line_item_id", "comment": null}, "tweet_id": {"type": "STRING", "index": 9, "name": "tweet_id", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6159.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 78.0, "include": true, "description": "Approximate count of rows in this 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.twitter_ads_source.twitter_ads.promoted_tweet_report": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "promoted_tweet_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "TIMESTAMP", "index": 2, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 3, "name": "placement", "comment": null}, "promoted_tweet_id": {"type": "STRING", "index": 4, "name": "promoted_tweet_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "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": 4257025.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 2119.0, "include": true, "description": "Approximate count of rows in this 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.twitter_ads_source.twitter_ads.campaign_report": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "campaign_report", "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": "TIMESTAMP", "index": 3, "name": "date", "comment": null}, "placement": {"type": "STRING", "index": 4, "name": "placement", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "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": 3137318.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1563.0, "include": true, "description": "Approximate count of rows in this 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_keywords_report": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "line_item_keywords_report", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"account_id": {"type": "STRING", "index": 1, "name": "account_id", "comment": null}, "date": {"type": "TIMESTAMP", "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": "TIMESTAMP", "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": 10671329.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 5285.0, "include": true, "description": "Approximate count of rows in this 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_keywords_report"}, "source.twitter_ads_source.twitter_ads.campaign_history": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "campaign_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "STRING", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 5, "name": "created_at", "comment": null}, "currency": {"type": "STRING", "index": 6, "name": "currency", "comment": null}, "daily_budget_amount_local_micro": {"type": "INT64", "index": 7, "name": "daily_budget_amount_local_micro", "comment": null}, "deleted": {"type": "BOOL", "index": 8, "name": "deleted", "comment": null}, "duration_in_days": {"type": "INT64", "index": 9, "name": "duration_in_days", "comment": null}, "end_time": {"type": "TIMESTAMP", "index": 10, "name": "end_time", "comment": null}, "entity_status": {"type": "STRING", "index": 11, "name": "entity_status", "comment": null}, "frequency_cap": {"type": "INT64", "index": 12, "name": "frequency_cap", "comment": null}, "funding_instrument_id": {"type": "STRING", "index": 13, "name": "funding_instrument_id", "comment": null}, "name": {"type": "STRING", "index": 14, "name": "name", "comment": null}, "servable": {"type": "BOOL", "index": 15, "name": "servable", "comment": null}, "standard_delivery": {"type": "BOOL", "index": 16, "name": "standard_delivery", "comment": null}, "start_time": {"type": "TIMESTAMP", "index": 17, "name": "start_time", "comment": null}, "total_budget_amount_local_micro": {"type": "INT64", "index": 18, "name": "total_budget_amount_local_micro", "comment": null}, "budget_optimization": {"type": "STRING", "index": 19, "name": "budget_optimization", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 5857.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": "source.twitter_ads_source.twitter_ads.campaign_history"}, "source.twitter_ads_source.twitter_ads.account_history": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "account_history", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "updated_at": {"type": "TIMESTAMP", "index": 2, "name": "updated_at", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "approval_status": {"type": "STRING", "index": 4, "name": "approval_status", "comment": null}, "business_id": {"type": "STRING", "index": 5, "name": "business_id", "comment": null}, "business_name": {"type": "STRING", "index": 6, "name": "business_name", "comment": null}, "created_at": {"type": "TIMESTAMP", "index": 7, "name": "created_at", "comment": null}, "deleted": {"type": "BOOL", "index": 8, "name": "deleted", "comment": null}, "industry_type": {"type": "STRING", "index": 9, "name": "industry_type", "comment": null}, "name": {"type": "STRING", "index": 10, "name": "name", "comment": null}, "salt": {"type": "STRING", "index": 11, "name": "salt", "comment": null}, "timezone": {"type": "STRING", "index": 12, "name": "timezone", "comment": null}, "timezone_switch_at": {"type": "TIMESTAMP", "index": 13, "name": "timezone_switch_at", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 3393.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 39.0, "include": true, "description": "Approximate count of rows in this 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.twitter_ads_source.twitter_ads.tweet_url": {"metadata": {"type": "table", "schema": "twitter_ads", "name": "tweet_url", "database": "dbt-package-testing", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "index": 1, "name": "index", "comment": null}, "tweet_id": {"type": "STRING", "index": 2, "name": "tweet_id", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "display_url": {"type": "STRING", "index": 4, "name": "display_url", "comment": null}, "expanded_url": {"type": "STRING", "index": 5, "name": "expanded_url", "comment": null}, "indices": {"type": "STRING", "index": 6, "name": "indices", "comment": null}, "url": {"type": "STRING", "index": 7, "name": "url", "comment": null}}, "stats": {"num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 205992.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "num_rows": {"id": "num_rows", "label": "# Rows", "value": 1445.0, "include": true, "description": "Approximate count of rows in this 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"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..0807e63 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,102 @@ + + + + + + + dbt Docs + + + + + + + + + + + + + + + + + +
icons
+
+ + diff --git a/docs/manifest.json b/docs/manifest.json new file mode 100644 index 0000000..7836b20 --- /dev/null +++ b/docs/manifest.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v8.json", "dbt_version": "1.4.5", "generated_at": "2023-03-16T17:38:29.723649Z", "invocation_id": "23f6391d-ec02-4ce1-b01c-9e19b12ffc5f", "env": {}, "project_id": "faebc42304447d4427374f806679ecb5", "user_id": "e607f749-4294-4b15-833b-0ae4a87d4d24", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.my_new_project.adgroup_report_hourly": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "adgroup_report_hourly", "resource_type": "seed", "package_name": "my_new_project", "path": "adgroup_report_hourly.csv", "original_file_path": "seeds/adgroup_report_hourly.csv", "unique_id": "seed.my_new_project.adgroup_report_hourly", "fqn": ["my_new_project", "adgroup_report_hourly"], "alias": "adgroup_report_hourly", "checksum": {"name": "sha256", "checksum": "115ceb73e027a9ec64266c689bfd3d3f5c9ecb31fc59d349c128026ef0ebde6c"}, "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": null, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988313.145323, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`adgroup_report_hourly`", "raw_code": "", "root_path": "/Users/renee.li/Documents/dbt/ad_reporting/develop", "depends_on": {"macros": []}}, "seed.my_new_project.adgroup_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "adgroup_history", "resource_type": "seed", "package_name": "my_new_project", "path": "adgroup_history.csv", "original_file_path": "seeds/adgroup_history.csv", "unique_id": "seed.my_new_project.adgroup_history", "fqn": ["my_new_project", "adgroup_history"], "alias": "adgroup_history", "checksum": {"name": "sha256", "checksum": "eb8c0708d9aa337c0314edd8232a825c37d15acac0cc8717facfaa452747e5dc"}, "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": null, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988313.162424, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`adgroup_history`", "raw_code": "", "root_path": "/Users/renee.li/Documents/dbt/ad_reporting/develop", "depends_on": {"macros": []}}, "seed.my_new_project.campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "campaign_history", "resource_type": "seed", "package_name": "my_new_project", "path": "campaign_history.csv", "original_file_path": "seeds/campaign_history.csv", "unique_id": "seed.my_new_project.campaign_history", "fqn": ["my_new_project", "campaign_history"], "alias": "campaign_history", "checksum": {"name": "sha256", "checksum": "e41829f211b9a07f761121b42034f696822b01b5d7494a188eb90a826680cd48"}, "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": null, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988313.16643, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`campaign_history`", "raw_code": "", "root_path": "/Users/renee.li/Documents/dbt/ad_reporting/develop", "depends_on": {"macros": []}}, "seed.my_new_project.advertiser": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "advertiser", "resource_type": "seed", "package_name": "my_new_project", "path": "advertiser.csv", "original_file_path": "seeds/advertiser.csv", "unique_id": "seed.my_new_project.advertiser", "fqn": ["my_new_project", "advertiser"], "alias": "advertiser", "checksum": {"name": "sha256", "checksum": "3272c4a8fcdabfb2b2b5244fe8ff5df3329769727883bbc4d510ca01379a7ba0"}, "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": null, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988313.1697989, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`advertiser`", "raw_code": "", "root_path": "/Users/renee.li/Documents/dbt/ad_reporting/develop", "depends_on": {"macros": []}}, "seed.my_new_project.ad_report_hourly": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "ad_report_hourly", "resource_type": "seed", "package_name": "my_new_project", "path": "ad_report_hourly.csv", "original_file_path": "seeds/ad_report_hourly.csv", "unique_id": "seed.my_new_project.ad_report_hourly", "fqn": ["my_new_project", "ad_report_hourly"], "alias": "ad_report_hourly", "checksum": {"name": "sha256", "checksum": "39ed8b9dadd5bfec63a2439efdd1410e5f02c8f13d3048a1b6d8e1d546bd876d"}, "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": null, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988313.173441, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`ad_report_hourly`", "raw_code": "", "root_path": "/Users/renee.li/Documents/dbt/ad_reporting/develop", "depends_on": {"macros": []}}, "seed.my_new_project.ad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "ad_history", "resource_type": "seed", "package_name": "my_new_project", "path": "ad_history.csv", "original_file_path": "seeds/ad_history.csv", "unique_id": "seed.my_new_project.ad_history", "fqn": ["my_new_project", "ad_history"], "alias": "ad_history", "checksum": {"name": "sha256", "checksum": "e7decb78ac655fe1273ebe66de74179a344a7c42221f005099325e2f09fac937"}, "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": null, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988313.176818, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`ad_history`", "raw_code": "", "root_path": "/Users/renee.li/Documents/dbt/ad_reporting/develop", "depends_on": {"macros": []}}, "seed.my_new_project.campaign_report_hourly": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "campaign_report_hourly", "resource_type": "seed", "package_name": "my_new_project", "path": "campaign_report_hourly.csv", "original_file_path": "seeds/campaign_report_hourly.csv", "unique_id": "seed.my_new_project.campaign_report_hourly", "fqn": ["my_new_project", "campaign_report_hourly"], "alias": "campaign_report_hourly", "checksum": {"name": "sha256", "checksum": "24c3b6a29f99706b05478a2122a81f6e55acaa1a6d75a4e3de74bac8fbde1463"}, "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": null, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988313.18029, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`campaign_report_hourly`", "raw_code": "", "root_path": "/Users/renee.li/Documents/dbt/ad_reporting/develop", "depends_on": {"macros": []}}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__account_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__account_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__account_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_daily_report"], "alias": "stg_microsoft_ads__account_daily_report", "checksum": {"name": "sha256", "checksum": "13f0f5b9c0d3c8e1474867c8492a360d07f6cb1756022a352c821be8cda7af26"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.543912, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__account_daily_report_tmp"], ["stg_microsoft_ads__account_daily_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as STRING) as \n \n ad_distribution\n \n , \n cast(null as STRING) as \n \n bid_match_type\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as STRING) as \n \n currency_code\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n delivered_match_type\n \n , \n cast(null as STRING) as \n \n device_os\n \n , \n cast(null as STRING) as \n \n device_type\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n network\n \n , \n cast(null as FLOAT64) as \n \n spend\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__search_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__search_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__search_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__search_daily_report"], "alias": "stg_microsoft_ads__search_daily_report", "checksum": {"name": "sha256", "checksum": "c776b1595930feed1c4dfa76f94f9c346ff92e0ccfe2c52275bfef45ddf71c7c"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.624022, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__search_daily_report_tmp"], ["stg_microsoft_ads__search_daily_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__search_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as INT64) as \n \n ad_id\n \n , \n cast(null as STRING) as \n \n bid_match_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n delivered_match_type\n \n , \n cast(null as STRING) as \n \n device_os\n \n , \n cast(null as STRING) as \n \n device_type\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as INT64) as \n \n keyword_id\n \n , \n cast(null as STRING) as \n \n language\n \n , \n cast(null as STRING) as \n \n network\n \n , \n cast(null as STRING) as \n \n search_query\n \n , \n cast(null as FLOAT64) as \n \n spend\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__keyword_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__keyword_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_daily_report"], "alias": "stg_microsoft_ads__keyword_daily_report", "checksum": {"name": "sha256", "checksum": "355959720c8f47de848c95bd42c6eefd81aeb89c02b20a3cc7e3e75098212212"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.613218, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__keyword_daily_report_tmp"], ["stg_microsoft_ads__keyword_daily_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as STRING) as \n \n ad_distribution\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as INT64) as \n \n ad_id\n \n , \n cast(null as STRING) as \n \n bid_match_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as STRING) as \n \n currency_code\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n delivered_match_type\n \n , \n cast(null as STRING) as \n \n device_os\n \n , \n cast(null as STRING) as \n \n device_type\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as INT64) as \n \n keyword_id\n \n , \n cast(null as STRING) as \n \n language\n \n , \n cast(null as STRING) as \n \n network\n \n , \n cast(null as FLOAT64) as \n \n spend\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__campaign_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__campaign_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_daily_report"], "alias": "stg_microsoft_ads__campaign_daily_report", "checksum": {"name": "sha256", "checksum": "13b5edfd52333941e6cbf976ac71d69c1f4986ea71948f644c0f6bbdc4ac7de8"}, "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": []}, "tags": [], "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": []}, "budget_association_status": {"name": "budget_association_status", "description": "The status of the campaign's budget.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.5953732, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 budget_association_status,\n clicks,\n impressions,\n spend\n\n {{ fivetran_utils.fill_pass_through_columns('microsoft_ads__campaign_passthrough_metrics') }}\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [["stg_microsoft_ads__campaign_daily_report_tmp"], ["stg_microsoft_ads__campaign_daily_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as STRING) as \n \n ad_distribution\n \n , \n cast(null as STRING) as \n \n bid_match_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as STRING) as \n \n currency_code\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n delivered_match_type\n \n , \n cast(null as STRING) as \n \n device_os\n \n , \n cast(null as STRING) as \n \n device_type\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n network\n \n , \n cast(null as FLOAT64) as \n \n spend\n \n , \n cast(null as STRING) as \n \n top_vs_other\n \n , \n cast(null as STRING) as \n \n budget_association_status\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 budget_association_status,\n clicks,\n impressions,\n spend\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__keyword_history.sql", "original_file_path": "models/stg_microsoft_ads__keyword_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__keyword_history"], "alias": "stg_microsoft_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "1ab4d19ab769d28e12c6671643ccd3abcdb71dfbabffa4dbbe0fc4b08bae4232"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.601504, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__keyword_history_tmp"], ["stg_microsoft_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__keyword_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) as \n \n modified_time\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n match_type\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_daily_report"], "alias": "stg_microsoft_ads__ad_group_daily_report", "checksum": {"name": "sha256", "checksum": "1469a2b46ec430dc3226a0ce28ad9e915104811f3b4aec44e6ef28aed7b2f48d"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.56142, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__ad_group_daily_report_tmp"], ["stg_microsoft_ads__ad_group_daily_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as STRING) as \n \n ad_distribution\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n bid_match_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as STRING) as \n \n currency_code\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n delivered_match_type\n \n , \n cast(null as STRING) as \n \n device_os\n \n , \n cast(null as STRING) as \n \n device_type\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n language\n \n , \n cast(null as STRING) as \n \n network\n \n , \n cast(null as FLOAT64) as \n \n spend\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_group_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_group_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_group_history"], "alias": "stg_microsoft_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "4de2e41bc989a2384df40fae5c9ab580b60bbc880b0d26c7ca84ab3937f3a7cf"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.549963, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__ad_group_history_tmp"], ["stg_microsoft_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n modified_time\n \n , \n cast(null as date) as \n \n start_date\n \n , \n cast(null as date) as \n \n end_date\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__ad_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_history.sql", "original_file_path": "models/stg_microsoft_ads__ad_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_history"], "alias": "stg_microsoft_ads__ad_history", "checksum": {"name": "sha256", "checksum": "8b09a143b8874327b96ac512de797191baa321edd39103216953d6badb73351d"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.568476, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__ad_history_tmp"], ["stg_microsoft_ads__ad_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n title_part_1\n \n , \n cast(null as STRING) as \n \n final_url\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as TIMESTAMP) as \n \n modified_time\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) as \n \n type\n \n \n\n\n \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": []}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__ad_daily_report", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__ad_daily_report.sql", "original_file_path": "models/stg_microsoft_ads__ad_daily_report.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__ad_daily_report"], "alias": "stg_microsoft_ads__ad_daily_report", "checksum": {"name": "sha256", "checksum": "5867c7ac2235bcdddd45c7c6f48b5340184f440ff88ffcd5f53f0e7e8a8f21c6"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.579961, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__ad_daily_report_tmp"], ["stg_microsoft_ads__ad_daily_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__ad_daily_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as STRING) as \n \n ad_distribution\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as INT64) as \n \n ad_id\n \n , \n cast(null as STRING) as \n \n bid_match_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as STRING) as \n \n currency_code\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n delivered_match_type\n \n , \n cast(null as STRING) as \n \n device_os\n \n , \n cast(null as STRING) as \n \n device_type\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n language\n \n , \n cast(null as STRING) as \n \n network\n \n , \n cast(null as FLOAT64) as \n \n spend\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__account_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__account_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__account_history.sql", "original_file_path": "models/stg_microsoft_ads__account_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__account_history"], "alias": "stg_microsoft_ads__account_history", "checksum": {"name": "sha256", "checksum": "39eeb4c34161dd3e6ccee2310eb51adae09769ee8dca6b2e22d7d421048698e6"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.535402, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__account_history_tmp"], ["stg_microsoft_ads__account_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__account_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) as \n \n last_modified_time\n \n , \n cast(null as STRING) as \n \n time_zone\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_history", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "stg_microsoft_ads__campaign_history.sql", "original_file_path": "models/stg_microsoft_ads__campaign_history.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "fqn": ["microsoft_ads_source", "stg_microsoft_ads__campaign_history"], "alias": "stg_microsoft_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "c47ff718f4a476f21216ecc8fee70546821ffa8af1b6309a6a88bde23e6ce763"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988320.585852, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_microsoft_ads__campaign_history_tmp"], ["stg_microsoft_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as TIMESTAMP) as \n \n modified_time\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as STRING) as \n \n time_zone\n \n , \n cast(null as STRING) 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": []}, "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__search_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__search_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__search_daily_report_tmp"], "alias": "stg_microsoft_ads__search_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "9b8d4452caa10568d6716c0c6b39598a962e60ca1859c4902ad9f7ad2bd28626"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.661977, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "search_query_performance_daily_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__search_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`search_query_performance_daily_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_history_tmp"], "alias": "stg_microsoft_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "0aebf1d34a59e00211f044b66e94c2d5141b3c0fc7b152dbdc769942a2da1c6e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.674334, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`ad_group_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_daily_report_tmp"], "alias": "stg_microsoft_ads__campaign_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "673ffabe992b47d945786bc8f91ad5d586854df386a3bb40ddae76d7ad41da33"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.685909, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "campaign_performance_daily_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`campaign_performance_daily_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__ad_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_history_tmp"], "alias": "stg_microsoft_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "f1af9df8b7a8c5f0eae62106592b9c8719d3f8ff9bd09f6d4f868a46b0acd0af"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.698401, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`ad_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__account_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__account_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_history_tmp"], "alias": "stg_microsoft_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "f326243a07088f5fde31cda73d5ada38bc95edbb0acd6f20b1cc479d076eeeed"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.7102542, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "account_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`account_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__ad_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_daily_report_tmp"], "alias": "stg_microsoft_ads__ad_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "4cf26ae811cd73631d86eee119cf79e71fd008b630b39e2e4d9bec63df999506"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.721278, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "ad_performance_daily_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`ad_performance_daily_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__ad_group_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__ad_group_daily_report_tmp"], "alias": "stg_microsoft_ads__ad_group_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "57f3f8acc0b43e57bba5c441bff246ada9d9ff8715098271628ac5122138dd0e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.732667, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "ad_group_performance_daily_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__ad_group_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`ad_group_performance_daily_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_daily_report_tmp"], "alias": "stg_microsoft_ads__keyword_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "ba23d7a4b13beac610573f8c6f8b5ba0ab4305b00e4453b7da4383c06062b9a7"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.745564, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "keyword_performance_daily_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`keyword_performance_daily_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__keyword_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__keyword_history_tmp"], "alias": "stg_microsoft_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "3d52da52eb899f748854c603db39c3fc0971a2140d4515e10c9f41623cc3bd3c"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.756715, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`keyword_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__campaign_history_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__campaign_history_tmp"], "alias": "stg_microsoft_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "c4a882096d8a71aaee29080771645afbd99d3f680b5575cc798abbeb0925291d"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.768592, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads_source", "name": "stg_microsoft_ads__account_daily_report_tmp", "resource_type": "model", "package_name": "microsoft_ads_source", "path": "tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "original_file_path": "models/tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_daily_report_tmp", "fqn": ["microsoft_ads_source", "tmp", "stg_microsoft_ads__account_daily_report_tmp"], "alias": "stg_microsoft_ads__account_daily_report_tmp", "checksum": {"name": "sha256", "checksum": "f7861bfb9f1931e450f018bf995c5eb19f2f0a79efb7d426e69b28965d637aa5"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988313.779836, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["microsoft_ads", "account_performance_daily_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.microsoft_ads_source.microsoft_ads.account_performance_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/tmp/stg_microsoft_ads__account_daily_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`bingads`.`account_performance_daily_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads.tiktok_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_tiktok_ads", "name": "tiktok_ads__ad_group_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__ad_group_report.sql", "original_file_path": "models/tiktok_ads__ad_group_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report", "fqn": ["tiktok_ads", "tiktok_ads__ad_group_report"], "alias": "tiktok_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "cd6f0250ddc693a683fb43b67c723a0f30c205465b44856b369764e593d0188a"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1678988320.8797078, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly`\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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": []}, "model.tiktok_ads.tiktok_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_tiktok_ads", "name": "tiktok_ads__url_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__url_report.sql", "original_file_path": "models/tiktok_ads__url_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__url_report", "fqn": ["tiktok_ads", "tiktok_ads__url_report"], "alias": "tiktok_ads__url_report", "checksum": {"name": "sha256", "checksum": "9d2e1b017a072d77ccdd7ce5d906429fdee130e6cefc34eb49358079223e2f32"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1678988320.9133482, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(26) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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 \n -- We are filtering for only ads where url fields are populated.\n where ads.landing_page_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26\n\n)\n\nselect *\nfrom aggregated", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads.tiktok_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_tiktok_ads", "name": "tiktok_ads__campaign_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__campaign_report.sql", "original_file_path": "models/tiktok_ads__campaign_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report", "fqn": ["tiktok_ads", "tiktok_ads__campaign_report"], "alias": "tiktok_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "e326da741a25ba4b3cdbeca8fb8e249c30cd5ef582be47077c14f4259804286f"}, "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": []}, "tags": [], "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": []}, "currency": {"name": "currency", "description": "Advertiser's currency.", "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_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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1678988320.891797, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_tiktok_ads__campaign_report_hourly"], ["stg_tiktok_ads__campaign_history"], ["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.tiktok_ads.tiktok_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_tiktok_ads", "name": "tiktok_ads__ad_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__ad_report.sql", "original_file_path": "models/tiktok_ads__ad_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__ad_report", "fqn": ["tiktok_ads", "tiktok_ads__ad_report"], "alias": "tiktok_ads__ad_report", "checksum": {"name": "sha256", "checksum": "ceee3ce54092049c327198fdc079ec337fa26661db48a8f976bc996997f8cac6"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1678988320.861674, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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": []}, "model.tiktok_ads.tiktok_ads__advertiser_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_tiktok_ads", "name": "tiktok_ads__advertiser_report", "resource_type": "model", "package_name": "tiktok_ads", "path": "tiktok_ads__advertiser_report.sql", "original_file_path": "models/tiktok_ads__advertiser_report.sql", "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report", "fqn": ["tiktok_ads", "tiktok_ads__advertiser_report"], "alias": "tiktok_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "b78cce2d035af7c7214232ba2acd99a6ade4908ee71ce08fed3322fa380c08b4"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "tiktok_ads", "materialized": "table", "enabled": true}, "created_at": 1678988320.8426392, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_tiktok_ads__ad_report_hourly"], ["stg_tiktok_ads__advertiser"], ["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith hourly as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\n),\n\nadvertiser as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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": []}, "model.twitter_ads.twitter_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads", "name": "twitter_ads__account_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__account_report.sql", "original_file_path": "models/twitter_ads__account_report.sql", "unique_id": "model.twitter_ads.twitter_ads__account_report", "fqn": ["twitter_ads", "twitter_ads__account_report"], "alias": "twitter_ads__account_report", "checksum": {"name": "sha256", "checksum": "16ac0265f5e3aa59cf06260bb446a6ef88d625c029d2e7298d44b9008c350fa9"}, "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": []}, "tags": [], "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": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.0390668, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_twitter_ads__account_history"], ["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.twitter_ads.twitter_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads", "name": "twitter_ads__campaign_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__campaign_report.sql", "original_file_path": "models/twitter_ads__campaign_report.sql", "unique_id": "model.twitter_ads.twitter_ads__campaign_report", "fqn": ["twitter_ads", "twitter_ads__campaign_report"], "alias": "twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "ac412006847147c6ef722fbf416456e8a94a3f0fee9eeed3b26a663e9820a3ab"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account and campaign level, within a placement in Twitter.\n", "columns": {"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": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.014011, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_twitter_ads__campaign_report"], ["stg_twitter_ads__campaign_history"], ["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.twitter_ads.twitter_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads", "name": "twitter_ads__url_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__url_report.sql", "original_file_path": "models/twitter_ads__url_report.sql", "unique_id": "model.twitter_ads.twitter_ads__url_report", "fqn": ["twitter_ads", "twitter_ads__url_report"], "alias": "twitter_ads__url_report", "checksum": {"name": "sha256", "checksum": "06fc0ec0eca546e85c1f848988ec0e3b8c4c30504aa9d920c690fc58ed4ae5cb"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), promoted tweet, and url level, within a placement in Twitter.\n", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.077573, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where tweet_url.expanded_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(n=23) }}\n\n \n)\n\nselect *\nfrom final", "language": "sql", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__tweet", "model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__tweet`\n),\n\ntweet_url as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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 \n where tweet_url.expanded_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23\n\n \n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads.twitter_ads__promoted_tweet_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads", "name": "twitter_ads__promoted_tweet_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/twitter_ads__promoted_tweet_report.sql", "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report", "fqn": ["twitter_ads", "twitter_ads__promoted_tweet_report"], "alias": "twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "bfe92b3b7b4256289f1f52608543c3e81151c3e345dc27623c7e7658386058d6"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), and promoted tweet level, within a placement in Twitter.\n", "columns": {"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": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.060927, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__promoted_tweet_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.twitter_ads.twitter_ads__line_item_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads", "name": "twitter_ads__line_item_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__line_item_report.sql", "original_file_path": "models/twitter_ads__line_item_report.sql", "unique_id": "model.twitter_ads.twitter_ads__line_item_report", "fqn": ["twitter_ads", "twitter_ads__line_item_report"], "alias": "twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "db0229d29cf1dbd5701d716465c399fe7be337436c2887f82fc25918d98ca90b"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, and line item (ad group) level, within a placement in Twitter.\n", "columns": {"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": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.030247, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__line_item_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_report`\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.twitter_ads.twitter_ads__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads", "name": "twitter_ads__keyword_report", "resource_type": "model", "package_name": "twitter_ads", "path": "twitter_ads__keyword_report.sql", "original_file_path": "models/twitter_ads__keyword_report.sql", "unique_id": "model.twitter_ads.twitter_ads__keyword_report", "fqn": ["twitter_ads", "twitter_ads__keyword_report"], "alias": "twitter_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "0ddfaeac37414648fe3241b0c879c7162ed91f6345ef8687c23c903a19149705"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance of ads at the account, campaign, line item (ad group), and keyword level, within a placement in Twitter.\n", "columns": {"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": []}, "keyword_id": {"name": "keyword_id", "description": "Unique key of the table built from the combination of 'account_id', 'line_item_id', 'segment', and 'placement' fields.", "meta": {}, "data_type": null, "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "twitter_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.047172, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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_id,\n report.keyword,\n line_items.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks\n\n {{ fivetran_utils.persist_pass_through_columns('twitter_ads__line_item_keywords_report_passthrough_metrics', transform='sum')}}\n\n from report \n left join line_items\n on report.line_item_id = line_items.line_item_id\n 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=11) }}\n)\n\nselect *\nfrom final", "language": "sql", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_keywords_report`\n),\n\nline_items as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 report.keyword_id,\n report.keyword,\n line_items.currency,\n sum(report.clicks) as clicks, \n sum(report.impressions) as impressions,\n sum(report.spend) as spend,\n sum(report.spend_micro) as spend_micro,\n sum(report.url_clicks) as url_clicks\n\n \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\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads.reddit_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_ads__campaign_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__campaign_report.sql", "original_file_path": "models/reddit_ads__campaign_report.sql", "unique_id": "model.reddit_ads.reddit_ads__campaign_report", "fqn": ["reddit_ads", "reddit_ads__campaign_report"], "alias": "reddit_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "4ba6618f25acf0f70b0d33bbc6b438136761157c587f628db45109589889f80c"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per campaign, along with account information.\n", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": "Name of 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": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.228491, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('campaign_daily_report') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\njoined as (\n\n select\n date_day,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__campaign_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(5)}}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [["stg_reddit_ads__campaign_report"], ["stg_reddit_ads__campaign"], ["stg_reddit_ads__account"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign`\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account`\n),\n\njoined as (\n\n select\n date_day,\n report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n left join campaigns\n on report.campaign_id = campaigns.campaign_id\n group by 1,2,3,4,5\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads.reddit_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_ads__url_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__url_report.sql", "original_file_path": "models/reddit_ads__url_report.sql", "unique_id": "model.reddit_ads.reddit_ads__url_report", "fqn": ["reddit_ads", "reddit_ads__url_report"], "alias": "reddit_ads__url_report", "checksum": {"name": "sha256", "checksum": "864699cc2e0e57928ce86b6d6d08bce180a1bf87e52484614827f191dcd1734b"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per url and utm parameters, along with post,ad, account, campaign, and ad group information.\n", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "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": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of 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 ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_url": {"name": "base_url", "description": "The base URL of the ad, extracted from the `click_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_host": {"name": "url_host", "description": "The URL host of the ad, extracted from the `click_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "url_path": {"name": "url_path", "description": "The URL path of the ad, extracted from the `click_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 `click_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 `click_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_campaign": {"name": "utm_campaign", "description": "Which campaign the keyword came from; extracted from the `click_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_content": {"name": "utm_content", "description": "Which ad group the keyword came from; extracted from the `click_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "utm_term": {"name": "utm_term", "description": "Which keyword brought people to your website; extracted from the `click_url`.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.2412212, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_daily_report') }}\n),\n\nads as (\n\n select *\n from {{ var('ad') }}\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n), \n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\njoined as (\n\n select\n report.date_day,\n ads.ad_name,\n report.ad_id,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n ads.post_url,\n ads.click_url,\n {{ dbt.split_part('ads.click_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('ads.click_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('ads.click_url') }} as url_path,\n {{ dbt_utils.get_url_parameter('ads.click_url', 'utm_source') }} as utm_source,\n {{ dbt_utils.get_url_parameter('ads.click_url', 'utm_medium') }} as utm_medium,\n {{ dbt_utils.get_url_parameter('ads.click_url', 'utm_term') }} as utm_term,\n {{ dbt_utils.get_url_parameter('ads.click_url', 'utm_content') }} as utm_content,\n coalesce( {{ dbt_utils.get_url_parameter('ads.click_url', 'utm_campaign') }}, campaigns.campaign_name) as utm_campaign,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n left join accounts\n on report.account_id = accounts.account_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(19) }}\n), \n\nfiltered as (\n\n select *\n from joined\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where click_url is not null -- filter for only ads with valid URLs\n {% endif %}\n)\n\nselect *\nfrom filtered", "language": "sql", "refs": [["stg_reddit_ads__ad_report"], ["stg_reddit_ads__ad"], ["stg_reddit_ads__ad_group"], ["stg_reddit_ads__campaign"], ["stg_reddit_ads__account"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.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.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_report`\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad`\n),\n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group`\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account`\n),\n\njoined as (\n\n select\n report.date_day,\n ads.ad_name,\n report.ad_id,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n ads.post_url,\n ads.click_url,\n \n\n \n split(\n ads.click_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as STRING)\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.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ) = 0\n then ''\n else\n substr(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n -1 * (\n\n length(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n\n )-coalesce(\n nullif(\n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n\n ), 0),\n \n\n strpos(\n \n\n replace(\n \n\n replace(\n ads.click_url,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '?'\n\n ) - 1\n ))\n )\n end,\n '?'\n )[safe_offset(0)]\n \n\n as STRING)\n as url_path,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_source='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_source,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_medium='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_medium,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_term='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_term,\n nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_content='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,'') as utm_content,\n coalesce( nullif(\n\n \n split(\n \n\n \n split(\n ads.click_url,\n 'utm_campaign='\n )[safe_offset(1)]\n \n\n,\n '&'\n )[safe_offset(0)]\n \n\n,''), campaigns.campaign_name) as utm_campaign,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n left join accounts\n on report.account_id = accounts.account_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_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,19\n), \n\nfiltered as (\n\n select *\n from joined\n\n \n where click_url is not null -- filter for only ads with valid URLs\n \n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads.reddit_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_ads__account_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__account_report.sql", "original_file_path": "models/reddit_ads__account_report.sql", "unique_id": "model.reddit_ads.reddit_ads__account_report", "fqn": ["reddit_ads", "reddit_ads__account_report"], "alias": "reddit_ads__account_report", "checksum": {"name": "sha256", "checksum": "d6d9c826127b05037262bf50e1cb401a82890c7e67240a6d360232f64608a8ae"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend of ads by account, account timezone, attribution type, and currency.\n", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.2090108, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('account_daily_report') }}\n), \n\naccounts as (\n\n select *\n from {{ var('account') }}\n)\n\n, joined as (\n\n select\n report.date_day,\n report.account_id,\n accounts.currency,\n accounts.attribution_type,\n accounts.status,\n accounts.time_zone_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__account_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n {{ dbt_utils.group_by(6)}}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [["stg_reddit_ads__account_report"], ["stg_reddit_ads__account"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report", "model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account_report`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account`\n)\n\n, joined as (\n\n select\n report.date_day,\n report.account_id,\n accounts.currency,\n accounts.attribution_type,\n accounts.status,\n accounts.time_zone_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join accounts\n on report.account_id = accounts.account_id\n group by 1,2,3,4,5,6\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads.reddit_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_ads__ad_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__ad_report.sql", "original_file_path": "models/reddit_ads__ad_report.sql", "unique_id": "model.reddit_ads.reddit_ads__ad_report", "fqn": ["reddit_ads", "reddit_ads__ad_report"], "alias": "reddit_ads__ad_report", "checksum": {"name": "sha256", "checksum": "0c272b68d0923e014d9a34ea824efe46d2a79f7d0c6d9c922305411a3180c1e7"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per ad, along with account, campaign, ad group, and post information.\n", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "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": "Name of 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 ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.223, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_daily_report') }}\n),\n\nads as (\n\n select *\n from {{ var('ad') }}\n), \n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\njoined as (\n\n select\n report.date_day,\n report.ad_id,\n ads.ad_name,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n left join accounts\n on report.account_id = accounts.account_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on ads.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(10) }}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [["stg_reddit_ads__ad_report"], ["stg_reddit_ads__ad"], ["stg_reddit_ads__ad_group"], ["stg_reddit_ads__campaign"], ["stg_reddit_ads__account"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_report`\n),\n\nads as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad`\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign`\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account`\n),\n\njoined as (\n\n select\n report.date_day,\n report.ad_id,\n ads.ad_name,\n report.account_id,\n campaigns.campaign_name,\n ads.campaign_id,\n ad_groups.ad_group_name,\n ads.ad_group_id,\n accounts.currency,\n ads.post_id,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n left join accounts\n on report.account_id = accounts.account_id\n left join ad_groups\n on ads.ad_group_id = ad_groups.ad_group_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\n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads.reddit_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads", "name": "reddit_ads__ad_group_report", "resource_type": "model", "package_name": "reddit_ads", "path": "reddit_ads__ad_group_report.sql", "original_file_path": "models/reddit_ads__ad_group_report.sql", "unique_id": "model.reddit_ads.reddit_ads__ad_group_report", "fqn": ["reddit_ads", "reddit_ads__ad_group_report"], "alias": "reddit_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "f37deed104f54050975d4e7b44d3982f5221f4b62ceba54d26f9897ebd6f2593"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record in this table represents the daily number of clicks, impressions, and spend per ad group, along with campaign and account information.\n", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of 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": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads://models/reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.2154171, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith report as (\n\n select *\n from {{ var('ad_group_daily_report') }}\n),\n\nad_groups as (\n\n select *\n from {{ var('ad_group') }}\n),\n\ncampaigns as (\n\n select *\n from {{ var('campaign') }}\n),\n\naccounts as (\n\n select *\n from {{ var('account') }}\n),\n\njoined as (\n\n select\n report.date_day,\n report.account_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n campaigns.campaign_name,\n ad_groups.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='reddit_ads__ad_group_passthrough_metrics', transform = 'sum') }}\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join accounts\n on report.account_id = accounts.account_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n {{ dbt_utils.group_by(7)}}\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [["stg_reddit_ads__ad_group_report"], ["stg_reddit_ads__ad_group"], ["stg_reddit_ads__campaign"], ["stg_reddit_ads__account"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group_report`\n),\n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign`\n),\n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account`\n),\n\njoined as (\n\n select\n report.date_day,\n report.account_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n campaigns.campaign_name,\n ad_groups.campaign_id,\n accounts.currency,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n\n from report\n left join ad_groups\n on report.ad_group_id = ad_groups.ad_group_id\n left join accounts\n on report.account_id = accounts.account_id\n left join campaigns\n on ad_groups.campaign_id = campaigns.campaign_id\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest.pinterest_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__url_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__url_report.sql", "original_file_path": "models/pinterest_ads__url_report.sql", "unique_id": "model.pinterest.pinterest_ads__url_report", "fqn": ["pinterest", "pinterest_ads__url_report"], "alias": "pinterest_ads__url_report", "checksum": {"name": "sha256", "checksum": "1ee4b8fc3fdecf9aa27336f1939c1d5f78ee9ca877f4b85e5054f077ed9f12c2"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1678988321.358221, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where pins.destination_url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(22) }}\n)\n\nselect * \nfrom joined", "language": "sql", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\n), \n\npins as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 \n where pins.destination_url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22\n)\n\nselect * \nfrom joined", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest.pinterest_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__campaign_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__campaign_report.sql", "original_file_path": "models/pinterest_ads__campaign_report.sql", "unique_id": "model.pinterest.pinterest_ads__campaign_report", "fqn": ["pinterest", "pinterest_ads__campaign_report"], "alias": "pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "80ef7572b29ea31a7e5866ad9a6e6bf99fc0055ef64e527a9173fa440acbdcbd"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1678988321.3729181, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_pinterest_ads__campaign_report"], ["stg_pinterest_ads__campaign_history"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__campaign_report`\n),\n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.pinterest.pinterest_ads__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__keyword_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__keyword_report.sql", "original_file_path": "models/pinterest_ads__keyword_report.sql", "unique_id": "model.pinterest.pinterest_ads__keyword_report", "fqn": ["pinterest", "pinterest_ads__keyword_report"], "alias": "pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "0c8aed643c742107bb4abb54739f3859a8fbe68ea6082f8e7b5b814d3f36dc51"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1678988321.387636, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "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"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__keyword_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.pinterest.pinterest_ads__advertiser_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__advertiser_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__advertiser_report.sql", "original_file_path": "models/pinterest_ads__advertiser_report.sql", "unique_id": "model.pinterest.pinterest_ads__advertiser_report", "fqn": ["pinterest", "pinterest_ads__advertiser_report"], "alias": "pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "c1636464f5742460c31c1f5e1c83fa0f21d4985eb7faae46b3fab94444f5c7d1"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1678988321.379594, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_pinterest_ads__advertiser_report"], ["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__advertiser_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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": []}, "model.pinterest.pinterest_ads__pin_promotion_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__pin_promotion_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/pinterest_ads__pin_promotion_report.sql", "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report", "fqn": ["pinterest", "pinterest_ads__pin_promotion_report"], "alias": "pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "2784c143da7bdc10c3f26c175533bf2a6b688624492925b0d95ebdded2a6c873"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1678988321.398043, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__pin_promotion_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\n), \n\npins as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.pinterest.pinterest_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest", "name": "pinterest_ads__ad_group_report", "resource_type": "model", "package_name": "pinterest", "path": "pinterest_ads__ad_group_report.sql", "original_file_path": "models/pinterest_ads__ad_group_report.sql", "unique_id": "model.pinterest.pinterest_ads__ad_group_report", "fqn": ["pinterest", "pinterest_ads__ad_group_report"], "alias": "pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "d1304e8b32bec7251d7873aae88ed9f0bdbd754eda4fb64133ad79c8124906f6"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest", "materialized": "table", "enabled": true}, "created_at": 1678988321.367244, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest/models/pinterest_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__ad_group_report`\n), \n\nadvertisers as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.reddit_ads_source.stg_reddit_ads__ad_group": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_group", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_group.sql", "original_file_path": "models/stg_reddit_ads__ad_group.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_group"], "alias": "stg_reddit_ads__ad_group", "checksum": {"name": "sha256", "checksum": "d40222148d3ca57cca6979f19a2ba903f8e0742fc83699039e9c7f26feb9c1fe"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record represents information about each ad group.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "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": []}, "bid_strategy": {"name": "bid_strategy", "description": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_value": {"name": "bid_value", "description": "The amount to pay in microcurrency per bidding event.", "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": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time_at": {"name": "end_time_at", "description": "When the entity will stop delivering.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expand_targeting": {"name": "expand_targeting", "description": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "goal_type": {"name": "goal_type", "description": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "goal_value": {"name": "goal_value", "description": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_name", "description": "Name of ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimization_strategy_type": {"name": "optimization_strategy_type", "description": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time_at": {"name": "start_time_at", "description": "When the entity will begin to deliver.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988321.605906, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_group_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_group_tmp')),\n staging_columns=get_ad_group_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n account_id,\n bid_strategy,\n bid_value,\n campaign_id,\n configured_status,\n effective_status,\n cast(end_time as {{ dbt.type_timestamp() }}) as end_time_at,\n expand_targeting,\n goal_type,\n goal_value,\n id as ad_group_id,\n is_processing,\n name as ad_group_name,\n optimization_strategy_type,\n cast(start_time as {{ dbt.type_timestamp() }}) as start_time_at\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_reddit_ads__ad_group_tmp"], ["stg_reddit_ads__ad_group_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp", "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_group.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n bid_strategy\n \n as \n \n bid_strategy\n \n, \n \n \n bid_value\n \n as \n \n bid_value\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n end_time\n \n as \n \n end_time\n \n, \n \n \n expand_targeting\n \n as \n \n expand_targeting\n \n, \n \n \n goal_type\n \n as \n \n goal_type\n \n, \n \n \n goal_value\n \n as \n \n goal_value\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n optimization_strategy_type\n \n as \n \n optimization_strategy_type\n \n, \n \n \n start_time\n \n as \n \n start_time\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n account_id,\n bid_strategy,\n bid_value,\n campaign_id,\n configured_status,\n effective_status,\n cast(end_time as TIMESTAMP) as end_time_at,\n expand_targeting,\n goal_type,\n goal_value,\n id as ad_group_id,\n is_processing,\n name as ad_group_name,\n optimization_strategy_type,\n cast(start_time as TIMESTAMP) as start_time_at\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__ad": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad.sql", "original_file_path": "models/stg_reddit_ads__ad.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad"], "alias": "stg_reddit_ads__ad", "checksum": {"name": "sha256", "checksum": "5caecd1e54c2c74dc284e635671e296ae5453eb903db934613213ae993997cf2"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record represents information about each ad.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the ad.", "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": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the 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": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_name": {"name": "ad_name", "description": "Name of ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rejection_reason": {"name": "rejection_reason", "description": "Reason why entity was rejected.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988321.594579, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_tmp')),\n staging_columns=get_ad_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n account_id,\n ad_group_id,\n campaign_id,\n click_url,\n configured_status,\n effective_status,\n id as ad_id,\n is_processing,\n name as ad_name,\n post_id,\n post_url,\n rejection_reason\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_reddit_ads__ad_tmp"], ["stg_reddit_ads__ad_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp", "model.reddit_ads_source.stg_reddit_ads__ad_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n click_url\n \n as \n \n click_url\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n post_id\n \n as \n \n post_id\n \n, \n \n \n post_url\n \n as \n \n post_url\n \n, \n \n \n rejection_reason\n \n as \n \n rejection_reason\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n account_id,\n ad_group_id,\n campaign_id,\n click_url,\n configured_status,\n effective_status,\n id as ad_id,\n is_processing,\n name as ad_name,\n post_id,\n post_url,\n rejection_reason\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__campaign_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__campaign_report.sql", "original_file_path": "models/stg_reddit_ads__campaign_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__campaign_report"], "alias": "stg_reddit_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "5991e879f403a9124ff106ab631a50a9fe75c0f17e9a70fa282510647ff84418"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record represents a summary of events for each given date and campaign.", "columns": {"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": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988321.617514, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__campaign_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__campaign_report_tmp')),\n staging_columns=get_campaign_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n account_id,\n campaign_id,\n clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__campaign_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_reddit_ads__campaign_report_tmp"], ["stg_reddit_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp", "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n campaign_id\n \n as \n \n campaign_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n \n \n `date`\n \n \n \n as date_day \n\n\n from base\n),\n\nfinal as (\n \n select \n account_id,\n campaign_id,\n clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__account": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__account", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__account.sql", "original_file_path": "models/stg_reddit_ads__account.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account", "fqn": ["reddit_ads_source", "stg_reddit_ads__account"], "alias": "stg_reddit_ads__account", "checksum": {"name": "sha256", "checksum": "188de870d0d6e4ed9b3969ce93b165b7902fd34fb53bd6ea5f80fe447ac1ab28"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record in this table represents information about an account.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_attribution_window": {"name": "click_attribution_window", "description": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "view_attribution_window": {"name": "view_attribution_window", "description": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988321.584689, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__account_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n attribution_type,\n click_attribution_window,\n cast(created_at as {{ dbt.type_timestamp() }}) as created_at,\n currency,\n id as account_id,\n status,\n time_zone_id,\n view_attribution_window\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_reddit_ads__account_tmp"], ["stg_reddit_ads__account_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_tmp", "model.reddit_ads_source.stg_reddit_ads__account_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__account.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n attribution_type\n \n as \n \n attribution_type\n \n, \n \n \n click_attribution_window\n \n as \n \n click_attribution_window\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n time_zone_id\n \n as \n \n time_zone_id\n \n, \n \n \n view_attribution_window\n \n as \n \n view_attribution_window\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n attribution_type,\n click_attribution_window,\n cast(created_at as TIMESTAMP) as created_at,\n currency,\n id as account_id,\n status,\n time_zone_id,\n view_attribution_window\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__account_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__account_report.sql", "original_file_path": "models/stg_reddit_ads__account_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__account_report"], "alias": "stg_reddit_ads__account_report", "checksum": {"name": "sha256", "checksum": "59c8532082272c5703b5fd50aa2222e315799710df33b89a837f9fa6d96f10e0"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record represents a summary of events for each given date and account.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988321.5884109, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__account_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__account_report_tmp')),\n staging_columns=get_account_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n account_id,\n clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__account_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_reddit_ads__account_report_tmp"], ["stg_reddit_ads__account_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_account_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp", "model.reddit_ads_source.stg_reddit_ads__account_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n \n \n `date`\n \n \n \n as date_day \n\n\n from base\n),\n\nfinal as (\n \n select \n account_id,\n clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_report.sql", "original_file_path": "models/stg_reddit_ads__ad_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_report"], "alias": "stg_reddit_ads__ad_report", "checksum": {"name": "sha256", "checksum": "74e3b9cb13233b8fccfd8481929f156c179d78ed6764e280651c959fe3533620"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record represents a summary of events for each given date and ad.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "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": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988321.59869, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_report_tmp')),\n staging_columns=get_ad_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n account_id,\n ad_id,\n clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_reddit_ads__ad_report_tmp"], ["stg_reddit_ads__ad_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp", "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_id\n \n as \n \n ad_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n \n \n `date`\n \n \n \n as date_day \n\n\n from base\n),\n\nfinal as (\n \n select\n account_id,\n ad_id,\n clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__campaign": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__campaign", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__campaign.sql", "original_file_path": "models/stg_reddit_ads__campaign.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign", "fqn": ["reddit_ads_source", "stg_reddit_ads__campaign"], "alias": "stg_reddit_ads__campaign", "checksum": {"name": "sha256", "checksum": "66b471962e2a59a217a9416aaf1b384cc5bb35a8b1415a22acd3845ea1099204"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record represents information about each 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 account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Campaign level funding instrument id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_name": {"name": "campaign_name", "description": "Name of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The objective type of a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988321.613825, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__campaign_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__campaign_tmp')),\n staging_columns=get_campaign_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n account_id,\n configured_status,\n effective_status,\n funding_instrument_id,\n id as campaign_id,\n is_processing,\n name as campaign_name,\n objective\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_reddit_ads__campaign_tmp"], ["stg_reddit_ads__campaign_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_campaign_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp", "model.reddit_ads_source.stg_reddit_ads__campaign_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__campaign.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n configured_status\n \n as \n \n configured_status\n \n, \n \n \n effective_status\n \n as \n \n effective_status\n \n, \n \n \n funding_instrument_id\n \n as \n \n funding_instrument_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n is_processing\n \n as \n \n is_processing\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n objective\n \n as \n \n objective\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n account_id,\n configured_status,\n effective_status,\n funding_instrument_id,\n id as campaign_id,\n is_processing,\n name as campaign_name,\n objective\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_group_report", "resource_type": "model", "package_name": "reddit_ads_source", "path": "stg_reddit_ads__ad_group_report.sql", "original_file_path": "models/stg_reddit_ads__ad_group_report.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "fqn": ["reddit_ads_source", "stg_reddit_ads__ad_group_report"], "alias": "stg_reddit_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "9363e88ead8c691d2ee0ea510faebafacab7f3b0de9f64c7d4dbe47c416c8892"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "Each record represents a summary of events for each given date and ad group.", "columns": {"account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "Spend converted out of microcurrency (so Spend/1,000,000)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "reddit_ads_source://models/stg_reddit_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988321.6095161, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_reddit_ads__ad_group_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_reddit_ads__ad_group_report_tmp')),\n staging_columns=get_ad_group_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n account_id,\n ad_group_id,\n clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n {{ fivetran_utils.fill_pass_through_columns('reddit_ads__ad_group_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_reddit_ads__ad_group_report_tmp"], ["stg_reddit_ads__ad_group_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.reddit_ads_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp", "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group_report_tmp`\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n ad_group_id\n \n as \n \n ad_group_id\n \n, \n \n \n clicks\n \n as \n \n clicks\n \n, \n \n \n date\n \n as \n \n date\n \n, \n \n \n impressions\n \n as \n \n impressions\n \n, \n \n \n region\n \n as \n \n region\n \n, \n \n \n spend\n \n as \n \n spend\n \n, \n \n \n \n \n `date`\n \n \n \n as date_day \n\n\n from base\n),\n\nfinal as (\n \n select \n account_id,\n ad_group_id,\n clicks,\n date as date_day,\n impressions,\n region,\n (spend/1000000) as spend\n \n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__campaign_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__campaign_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__campaign_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__campaign_tmp"], "alias": "stg_reddit_ads__campaign_tmp", "checksum": {"name": "sha256", "checksum": "0797be3f32b6adff9e9fbfcc337e2ea0fa96e8cc4baabc5f6e9b27262edee104"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988314.691529, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign') }}", "language": "sql", "refs": [], "sources": [["reddit_ads", "campaign"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.reddit_ads_source.reddit_ads.campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__campaign_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`reddit_ads`.`campaign`", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_group_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_group_report_tmp"], "alias": "stg_reddit_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "77f2b18ceaeb886a91db6f8daac187879d58d24c5a8110b8b2861e1ad40ee760"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988314.7035542, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('ad_group_report') }}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.reddit_ads_source.reddit_ads.ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`reddit_ads`.`ad_group_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__campaign_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__campaign_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__campaign_report_tmp"], "alias": "stg_reddit_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "f5151ddbf3e6df66937d9cc64dbb1c476e82267dacec1a3938970f1ea2b94d54"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988314.7151349, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('campaign_report') }}", "language": "sql", "refs": [], "sources": [["reddit_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.reddit_ads_source.reddit_ads.campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`reddit_ads`.`campaign_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__account_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__account_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__account_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__account_report_tmp"], "alias": "stg_reddit_ads__account_report_tmp", "checksum": {"name": "sha256", "checksum": "f96a62a995587628f9aba4a5d4bc135833159befcbadc8c27f263599da8f9d2c"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988314.727416, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('account_report') }}", "language": "sql", "refs": [], "sources": [["reddit_ads", "account_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.reddit_ads_source.reddit_ads.account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__account_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`reddit_ads`.`account_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__account_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__account_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__account_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__account_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__account_tmp"], "alias": "stg_reddit_ads__account_tmp", "checksum": {"name": "sha256", "checksum": "e0d473a0a0e0547b39d78f16b21b8f29259cefa6585603a4951f2802e832c315"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988314.739043, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('account') }}", "language": "sql", "refs": [], "sources": [["reddit_ads", "account"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.reddit_ads_source.reddit_ads.account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__account_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`reddit_ads`.`account`", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_group_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_group_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_group_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_group_tmp"], "alias": "stg_reddit_ads__ad_group_tmp", "checksum": {"name": "sha256", "checksum": "7958db08db00edbec36447313920cc678c4b7b46f920dc414416590f40c307be"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988314.7506602, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('ad_group') }}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_group"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.reddit_ads_source.reddit_ads.ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_group_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`reddit_ads`.`ad_group`", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_report_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_report_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_report_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_report_tmp"], "alias": "stg_reddit_ads__ad_report_tmp", "checksum": {"name": "sha256", "checksum": "35ce3e1cdf726c5397007d18a628931beb6afd08ae50605e277e715ee477c238"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988314.7619221, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('ad_report') }}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.reddit_ads_source.reddit_ads.ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`reddit_ads`.`ad_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.reddit_ads_source.stg_reddit_ads__ad_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_reddit_ads_source", "name": "stg_reddit_ads__ad_tmp", "resource_type": "model", "package_name": "reddit_ads_source", "path": "tmp/stg_reddit_ads__ad_tmp.sql", "original_file_path": "models/tmp/stg_reddit_ads__ad_tmp.sql", "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_tmp", "fqn": ["reddit_ads_source", "tmp", "stg_reddit_ads__ad_tmp"], "alias": "stg_reddit_ads__ad_tmp", "checksum": {"name": "sha256", "checksum": "83a7646528de6e96567b5072213a39dc1df0c06a002ee43479a08ee6fd62cdf2"}, "config": {"enabled": true, "alias": null, "schema": "reddit_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "reddit_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988314.7749372, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__reddit_ads_enabled', True)) }}\n\nselect *\nfrom {{ var('ad') }}", "language": "sql", "refs": [], "sources": [["reddit_ads", "ad"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.reddit_ads_source.reddit_ads.ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/tmp/stg_reddit_ads__ad_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`reddit_ads`.`ad`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads.google_ads__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads", "name": "google_ads__keyword_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__keyword_report.sql", "original_file_path": "models/google_ads__keyword_report.sql", "unique_id": "model.google_ads.google_ads__keyword_report", "fqn": ["google_ads", "google_ads__keyword_report"], "alias": "google_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "8afc77ec6f8a7e4348762f06892b32e48f7066973ff0344fa4e23ceae20cd77f"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level for keywords.", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": "Total cost of ad clicks.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.745727, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 stats.account_id,\n campaigns.campaign_name,\n stats.campaign_id,\n ad_groups.ad_group_name,\n stats.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 stats.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n left join accounts\n on stats.account_id = accounts.account_id\n {{ dbt_utils.group_by(12) }}\n)\n\nselect *\nfrom fields", "language": "sql", "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": [], "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"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__keyword_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 stats.account_id,\n campaigns.campaign_name,\n stats.campaign_id,\n ad_groups.ad_group_name,\n stats.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 stats.ad_group_id = ad_groups.ad_group_id\n left join campaigns\n on stats.campaign_id = campaigns.campaign_id\n left join accounts\n on stats.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": []}, "model.google_ads.google_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads", "name": "google_ads__campaign_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__campaign_report.sql", "original_file_path": "models/google_ads__campaign_report.sql", "unique_id": "model.google_ads.google_ads__campaign_report", "fqn": ["google_ads", "google_ads__campaign_report"], "alias": "google_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "b0bd1cd3691181888cba6ff2c8247dade9fad09a62b433ccb75f3b8854a7275c"}, "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": []}, "tags": [], "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": "YYYY-MM-DD formatted date", "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": "Total cost of ad clicks.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.737082, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_google_ads__campaign_stats"], ["stg_google_ads__account_history"], ["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__campaign_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.google_ads.google_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads", "name": "google_ads__url_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__url_report.sql", "original_file_path": "models/google_ads__url_report.sql", "unique_id": "model.google_ads.google_ads__url_report", "fqn": ["google_ads", "google_ads__url_report"], "alias": "google_ads__url_report", "checksum": {"name": "sha256", "checksum": "c0cd7ac20f5d6e744a3ab249e75f5a0facce6a833c9fe6bbb9efce90e78bd328"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance of URLs at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": "Total cost of ad clicks.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.708874, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where ads.source_final_urls is not null\n {% endif %}\n\n {{ dbt_utils.group_by(16) }}\n)\n\nselect *\nfrom fields", "language": "sql", "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": [], "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"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 \n where ads.source_final_urls is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads.google_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads", "name": "google_ads__ad_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__ad_report.sql", "original_file_path": "models/google_ads__ad_report.sql", "unique_id": "model.google_ads.google_ads__ad_report", "fqn": ["google_ads", "google_ads__ad_report"], "alias": "google_ads__ad_report", "checksum": {"name": "sha256", "checksum": "d37cc295aa04e6ad61dfac2a9a77267009ac200771988ed13937fe62f847301b"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": "Total cost of ad clicks.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.729772, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 stats.ad_id,\n ads.ad_name,\n ads.ad_status,\n ads.ad_type,\n ads.display_url,\n ads.source_final_urls,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions\n\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", "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": [], "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"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 stats.ad_id,\n ads.ad_name,\n ads.ad_status,\n ads.ad_type,\n ads.display_url,\n ads.source_final_urls,\n sum(stats.spend) as spend,\n sum(stats.clicks) as clicks,\n sum(stats.impressions) as impressions\n\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": []}, "model.google_ads.google_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads", "name": "google_ads__ad_group_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__ad_group_report.sql", "original_file_path": "models/google_ads__ad_group_report.sql", "unique_id": "model.google_ads.google_ads__ad_group_report", "fqn": ["google_ads", "google_ads__ad_group_report"], "alias": "google_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "7f608fbc1b314740591eb4acc64fb45bc8303cefd50c850a31caecc33a8fad23"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level.", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": "Total cost of ad clicks.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.721388, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "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"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_group_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.google_ads.google_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads", "name": "google_ads__account_report", "resource_type": "model", "package_name": "google_ads", "path": "google_ads__account_report.sql", "original_file_path": "models/google_ads__account_report.sql", "unique_id": "model.google_ads.google_ads__account_report", "fqn": ["google_ads", "google_ads__account_report"], "alias": "google_ads__account_report", "checksum": {"name": "sha256", "checksum": "e16fa20ded7cc2a36a0a1eabe5ad1b0bdb16503068002078b640704ec7cc8bef"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the account level.", "columns": {"date_day": {"name": "date_day", "description": "YYYY-MM-DD formatted date", "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": "Total cost of ad clicks.", "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads", "materialized": "table", "enabled": true}, "created_at": 1678988321.71437, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_google_ads__account_stats"], ["stg_google_ads__account_history"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/google_ads/models/google_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith stats as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__account_stats`\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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": []}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__campaign_level_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__campaign_level_report.sql", "original_file_path": "models/stg_amazon_ads__campaign_level_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__campaign_level_report"], "alias": "stg_amazon_ads__campaign_level_report", "checksum": {"name": "sha256", "checksum": "5ce672eafd208b1e9b7aa8bf32b50629a584366ac793d1d8efc1b4c22b754a93"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Campaign reports contain performance data broken down at the campaign level.", "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.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "description": "The ID associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "description": "The name associated to the active budget rule for a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "description": "The value of the rule-based budget for a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.8626182, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_level_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__campaign_level_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__campaign_level_report_tmp')),\n staging_columns=get_campaign_level_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n campaign_applicable_budget_rule_id,\n campaign_applicable_budget_rule_name,\n campaign_bidding_strategy,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n campaign_rule_based_budget_amount,\n clicks,\n cost,\n date as date_day,\n impressions\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__campaign_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__campaign_level_report_tmp"], ["stg_amazon_ads__campaign_level_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_campaign_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__campaign_level_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_level_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n campaign_applicable_budget_rule_id\n \n , \n cast(null as STRING) as \n \n campaign_applicable_budget_rule_name\n \n , \n cast(null as STRING) as \n \n campaign_bidding_strategy\n \n , \n cast(null as FLOAT64) as \n \n campaign_budget_amount\n \n , \n cast(null as STRING) as \n \n campaign_budget_currency_code\n \n , \n cast(null as STRING) as \n \n campaign_budget_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as FLOAT64) as \n \n campaign_rule_based_budget_amount\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as FLOAT64) as \n \n cost\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n campaign_applicable_budget_rule_id,\n campaign_applicable_budget_rule_name,\n campaign_bidding_strategy,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n campaign_rule_based_budget_amount,\n clicks,\n cost,\n date as date_day,\n impressions\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__ad_group_level_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__ad_group_level_report.sql", "original_file_path": "models/stg_amazon_ads__ad_group_level_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__ad_group_level_report"], "alias": "stg_amazon_ads__ad_group_level_report", "checksum": {"name": "sha256", "checksum": "35b1ce707ad6d7b38edddcd87412acfe91e8c4d5f6977c76f2a99b2ea60ebfa3"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record in this table represents the daily performance by Amazon ad group.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "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_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.8374588, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_level_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__ad_group_level_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__ad_group_level_report_tmp')),\n staging_columns=get_ad_group_level_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n campaign_bidding_strategy,\n clicks,\n cost,\n date as date_day,\n impressions\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__ad_group_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__ad_group_level_report_tmp"], ["stg_amazon_ads__ad_group_level_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_ad_group_level_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__ad_group_level_report.sql", "compiled": true, "compiled_code": "\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_level_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n campaign_bidding_strategy\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as FLOAT64) as \n \n cost\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n campaign_bidding_strategy,\n clicks,\n cost,\n date as date_day,\n impressions\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__advertised_product_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__advertised_product_report.sql", "original_file_path": "models/stg_amazon_ads__advertised_product_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__advertised_product_report"], "alias": "stg_amazon_ads__advertised_product_report", "checksum": {"name": "sha256", "checksum": "2baf384e65bf9a5c433907885435b20bc372447c8c569dbad8d3eb6b817658da"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Advertised product reports contain performance data for products that are advertised as part of your campaigns.", "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 AdGroup.", "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": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "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": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.845094, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__advertised_product_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__advertised_product_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__advertised_product_report_tmp')),\n staging_columns=get_advertised_product_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_id,\n advertised_asin,\n advertised_sku,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__advertised_product_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__advertised_product_report_tmp"], ["stg_amazon_ads__advertised_product_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_advertised_product_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__advertised_product_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__advertised_product_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as INT64) as \n \n ad_id\n \n , \n cast(null as STRING) as \n \n advertised_asin\n \n , \n cast(null as STRING) as \n \n advertised_sku\n \n , \n cast(null as FLOAT64) as \n \n campaign_budget_amount\n \n , \n cast(null as STRING) as \n \n campaign_budget_currency_code\n \n , \n cast(null as STRING) as \n \n campaign_budget_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as FLOAT64) as \n \n cost\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_id,\n advertised_asin,\n advertised_sku,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__portfolio_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__portfolio_history.sql", "original_file_path": "models/stg_amazon_ads__portfolio_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__portfolio_history"], "alias": "stg_amazon_ads__portfolio_history", "checksum": {"name": "sha256", "checksum": "dbb5664f227d1f730798be0a23d37be10111a421a76a6cf2e6bc18336fef266a"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record represents a portfolio in Amazon Ads.", "columns": {"portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.879477, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__portfolio_history`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__portfolio_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__portfolio_history_tmp')),\n staging_columns=get_portfolio_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n budget_amount,\n budget_currency_code,\n budget_end_date,\n budget_policy,\n budget_start_date,\n creation_date,\n id as portfolio_id,\n in_budget,\n last_updated_date,\n name as portfolio_name,\n profile_id,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__portfolio_history_tmp"], ["stg_amazon_ads__portfolio_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.amazon_ads_source.get_portfolio_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__portfolio_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__portfolio_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as FLOAT64) as \n \n budget_amount\n \n , \n cast(null as STRING) as \n \n budget_currency_code\n \n , \n cast(null as date) as \n \n budget_end_date\n \n , \n cast(null as STRING) as \n \n budget_policy\n \n , \n cast(null as date) as \n \n budget_start_date\n \n , \n cast(null as TIMESTAMP) as \n \n creation_date\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as boolean) as \n \n in_budget\n \n , \n cast(null as TIMESTAMP) as \n \n last_updated_date\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as INT64) as \n \n profile_id\n \n , \n cast(null as STRING) as \n \n serving_status\n \n , \n cast(null as STRING) as \n \n state\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n budget_amount,\n budget_currency_code,\n budget_end_date,\n budget_policy,\n budget_start_date,\n creation_date,\n id as portfolio_id,\n in_budget,\n last_updated_date,\n name as portfolio_name,\n profile_id,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__campaign_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__campaign_history.sql", "original_file_path": "models/stg_amazon_ads__campaign_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__campaign_history"], "alias": "stg_amazon_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "17353e4bb7480533cb8c24a7a24e992c737998607f7515ac648cc92053653257"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record represents a campaign in Amazon Ads.", "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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bidding_strategy": {"name": "bidding_strategy", "description": "The bidding strategy associated with a campaign (legacyForSales, autoForSales, or manual.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "The ad type related to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "The daily budget for the campaign as set by the advertiser.", "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": []}, "placement": {"name": "placement", "description": "The placement location where bid controls are used (placementTop or placementProductPage.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "premium_bid_adjustment": {"name": "premium_bid_adjustment", "description": "A boolean representing whether premium bid adjustment is turned on for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "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": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting_type": {"name": "targeting_type", "description": "The type of targeting used for the campaign, either manual or auto.", "meta": {}, "data_type": null, "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.855062, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__campaign_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n bidding_strategy,\n campaign_type,\n creation_date,\n daily_budget,\n end_date,\n id as campaign_id,\n last_updated_date,\n name as campaign_name,\n placement,\n portfolio_id,\n premium_bid_adjustment,\n profile_id,\n serving_status,\n start_date,\n state,\n targeting_type,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__campaign_history_tmp"], ["stg_amazon_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n bidding_strategy\n \n , \n cast(null as STRING) as \n \n campaign_type\n \n , \n cast(null as TIMESTAMP) as \n \n creation_date\n \n , \n cast(null as INT64) as \n \n daily_budget\n \n , \n cast(null as date) as \n \n end_date\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n last_updated_date\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n placement\n \n , \n cast(null as INT64) as \n \n portfolio_id\n \n , \n cast(null as boolean) as \n \n premium_bid_adjustment\n \n , \n cast(null as INT64) as \n \n profile_id\n \n , \n cast(null as STRING) as \n \n serving_status\n \n , \n cast(null as date) as \n \n start_date\n \n , \n cast(null as STRING) as \n \n state\n \n , \n cast(null as STRING) as \n \n targeting_type\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n bidding_strategy,\n campaign_type,\n creation_date,\n daily_budget,\n end_date,\n id as campaign_id,\n last_updated_date,\n name as campaign_name,\n placement,\n portfolio_id,\n premium_bid_adjustment,\n profile_id,\n serving_status,\n start_date,\n state,\n targeting_type,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__product_ad_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__product_ad_history.sql", "original_file_path": "models/stg_amazon_ads__product_ad_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__product_ad_history"], "alias": "stg_amazon_ads__product_ad_history", "checksum": {"name": "sha256", "checksum": "c37feb8ade64671464ffca13e9b884b218d0e8a20cd67464d17ff98922da87fd"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record represents a product in Amazon Ads.", "columns": {"ad_id": {"name": "ad_id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "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": []}, "asin": {"name": "asin", "description": "The ASIN associated with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sku": {"name": "sku", "description": "The product SKU associated with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.885751, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__product_ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__product_ad_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__product_ad_history_tmp')),\n staging_columns=get_product_ad_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n asin,\n campaign_id,\n creation_date,\n id as ad_id,\n last_updated_date,\n serving_status,\n sku,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__product_ad_history_tmp"], ["stg_amazon_ads__product_ad_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_product_ad_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__product_ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__product_ad_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n asin\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n creation_date\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n last_updated_date\n \n , \n cast(null as STRING) as \n \n serving_status\n \n , \n cast(null as STRING) as \n \n sku\n \n , \n cast(null as STRING) as \n \n state\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n asin,\n campaign_id,\n creation_date,\n id as ad_id,\n last_updated_date,\n serving_status,\n sku,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__targeting_keyword_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__targeting_keyword_report.sql", "original_file_path": "models/stg_amazon_ads__targeting_keyword_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__targeting_keyword_report"], "alias": "stg_amazon_ads__targeting_keyword_report", "checksum": {"name": "sha256", "checksum": "0b676271538c47839aaa7a6acae657599564b83c3017faed34dabf71db3f1a7a"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Targeting reports contain performance metrics broken down by both targeting expressions and keywords.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "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_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "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": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "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": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988322.033751, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__targeting_keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__targeting_keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__targeting_keyword_report_tmp')),\n staging_columns=get_targeting_keyword_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n keyword_id,\n keyword_type,\n match_type,\n targeting\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__targeting_keyword_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__targeting_keyword_report_tmp"], ["stg_amazon_ads__targeting_keyword_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_targeting_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__targeting_keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__targeting_keyword_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n ad_keyword_status\n \n , \n cast(null as FLOAT64) as \n \n campaign_budget_amount\n \n , \n cast(null as STRING) as \n \n campaign_budget_currency_code\n \n , \n cast(null as STRING) as \n \n campaign_budget_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as FLOAT64) as \n \n cost\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as FLOAT64) as \n \n keyword_bid\n \n , \n cast(null as INT64) as \n \n keyword_id\n \n , \n cast(null as STRING) as \n \n keyword_type\n \n , \n cast(null as STRING) as \n \n match_type\n \n , \n cast(null as STRING) as \n \n targeting\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n keyword_id,\n keyword_type,\n match_type,\n targeting\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__profile": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__profile", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__profile.sql", "original_file_path": "models/stg_amazon_ads__profile.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile", "fqn": ["amazon_ads_source", "stg_amazon_ads__profile"], "alias": "stg_amazon_ads__profile", "checksum": {"name": "sha256", "checksum": "77978f552619be228968f6c3fae4e2c6222783f8fa99885e4481a6d3e230f3ca"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record represents a profile. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_marketplace_string_id": {"name": "account_marketplace_string_id", "description": "The identifier of the marketplace to which the account is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account subtype.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "One of seller, vendor, or agency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_valid_payment_method": {"name": "account_valid_payment_method", "description": "For Vendors, this returns if the Advertiser has set up a valid payment method.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency used for all monetary values for entities under this profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget for Sponsored Product campaigns for seller type accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The time zone used for all date-based campaign management and reporting.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.893688, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__profile_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__profile_tmp')),\n staging_columns=get_profile_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n id as profile_id,\n account_id,\n account_marketplace_string_id,\n account_name,\n account_sub_type,\n account_type,\n account_valid_payment_method,\n country_code,\n currency_code,\n daily_budget,\n timezone,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__profile_tmp"], ["stg_amazon_ads__profile_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_profile_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp", "model.amazon_ads_source.stg_amazon_ads__profile_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__profile.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n account_id\n \n , \n cast(null as STRING) as \n \n account_marketplace_string_id\n \n , \n cast(null as STRING) as \n \n account_name\n \n , \n cast(null as STRING) as \n \n account_sub_type\n \n , \n cast(null as STRING) as \n \n account_type\n \n , \n cast(null as BOOLEAN) as \n \n account_valid_payment_method\n \n , \n cast(null as STRING) as \n \n country_code\n \n , \n cast(null as STRING) as \n \n currency_code\n \n , \n cast(null as INT64) as \n \n daily_budget\n \n , \n cast(null as STRING) as \n \n timezone\n \n , \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n id as profile_id,\n account_id,\n account_marketplace_string_id,\n account_name,\n account_sub_type,\n account_type,\n account_valid_payment_method,\n country_code,\n currency_code,\n daily_budget,\n timezone,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__keyword_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__keyword_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__keyword_history.sql", "original_file_path": "models/stg_amazon_ads__keyword_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__keyword_history"], "alias": "stg_amazon_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "bad9aeabb9eaba513e15d17f016799815ff7c0a4c2fe5b7970d29beaec9a02f5"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record represents a keyword in Amazon Ads.", "columns": {"keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "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": []}, "bid": {"name": "bid", "description": "Bid associated with this keyword.", "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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "One of (broad, exact, or phrase.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "native_language_keyword": {"name": "native_language_keyword", "description": "The unlocalized keyword text in the preferred locale of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.870889, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__keyword_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__keyword_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__keyword_history_tmp')),\n staging_columns=get_keyword_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n bid,\n campaign_id,\n creation_date,\n id as keyword_id,\n keyword_text,\n last_updated_date,\n match_type,\n native_language_keyword,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__keyword_history_tmp"], ["stg_amazon_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_keyword_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__keyword_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as FLOAT64) as \n \n bid\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n creation_date\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n keyword_text\n \n , \n cast(null as TIMESTAMP) as \n \n last_updated_date\n \n , \n cast(null as STRING) as \n \n match_type\n \n , \n cast(null as STRING) as \n \n native_language_keyword\n \n , \n cast(null as STRING) as \n \n serving_status\n \n , \n cast(null as STRING) as \n \n state\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n bid,\n campaign_id,\n creation_date,\n id as keyword_id,\n keyword_text,\n last_updated_date,\n match_type,\n native_language_keyword,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__ad_group_history", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__ad_group_history.sql", "original_file_path": "models/stg_amazon_ads__ad_group_history.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "fqn": ["amazon_ads_source", "stg_amazon_ads__ad_group_history"], "alias": "stg_amazon_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "89a99f9f72fd70bfbc51eca3088513648b319c478477f4f974b65bc7cb24e880"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record represents an ad group in Amazon Ads.", "columns": {"ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "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": []}, "campaign_id": {"name": "campaign_id", "description": "The ID of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "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": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988321.832114, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__ad_group_history_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n campaign_id,\n creation_date,\n default_bid,\n id as ad_group_id,\n last_updated_date,\n name as ad_group_name,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__ad_group_history_tmp"], ["stg_amazon_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n creation_date\n \n , \n cast(null as FLOAT64) as \n \n default_bid\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n last_updated_date\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n serving_status\n \n , \n cast(null as STRING) as \n \n state\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n campaign_id,\n creation_date,\n default_bid,\n id as ad_group_id,\n last_updated_date,\n name as ad_group_name,\n serving_status,\n state,\n row_number() over (partition by id order by last_updated_date desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__search_term_ad_keyword_report", "resource_type": "model", "package_name": "amazon_ads_source", "path": "stg_amazon_ads__search_term_ad_keyword_report.sql", "original_file_path": "models/stg_amazon_ads__search_term_ad_keyword_report.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "fqn": ["amazon_ads_source", "stg_amazon_ads__search_term_ad_keyword_report"], "alias": "stg_amazon_ads__search_term_ad_keyword_report", "checksum": {"name": "sha256", "checksum": "64c6289e258a9cad91edad9b189ca8f4c0259d49723aa0d4e9bfcaf6a3074281"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Search term reports contain search term performance metrics broken down by targeting expressions and keywords.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "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_keyword_status": {"name": "ad_keyword_status", "description": "Current status of a keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "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": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "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": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads_source://models/stg_amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988322.042969, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__search_term_ad_keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_amazon_ads__search_term_ad_keyword_report_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_amazon_ads__search_term_ad_keyword_report_tmp')),\n staging_columns=get_search_term_ad_keyword_report_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n keyword_id,\n search_term,\n targeting\n\n {{ fivetran_utils.fill_pass_through_columns('amazon_ads__search_term_ad_keyword_passthrough_metrics') }}\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_amazon_ads__search_term_ad_keyword_report_tmp"], ["stg_amazon_ads__search_term_ad_keyword_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.amazon_ads_source.get_search_term_ad_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads__search_term_ad_keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__search_term_ad_keyword_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n ad_keyword_status\n \n , \n cast(null as FLOAT64) as \n \n campaign_budget_amount\n \n , \n cast(null as STRING) as \n \n campaign_budget_currency_code\n \n , \n cast(null as STRING) as \n \n campaign_budget_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as FLOAT64) as \n \n cost\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as FLOAT64) as \n \n keyword_bid\n \n , \n cast(null as INT64) as \n \n keyword_id\n \n , \n cast(null as STRING) as \n \n search_term\n \n , \n cast(null as STRING) as \n \n targeting\n \n \n\n\n from base\n),\n\nfinal as (\n \n select \n ad_group_id,\n ad_keyword_status,\n campaign_budget_amount,\n campaign_budget_currency_code,\n campaign_budget_type,\n campaign_id,\n clicks,\n cost,\n date as date_day,\n impressions,\n keyword_bid,\n keyword_id,\n search_term,\n targeting\n\n \n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__keyword_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__keyword_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__keyword_history_tmp"], "alias": "stg_amazon_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "7ba2cd1f2f0abf685c4d5ceb2b0e753cc1aad50f6a722db0152a8d4c477f612a"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.324626, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__keyword_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('keyword_history') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`keyword_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__profile_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__profile_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__profile_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__profile_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__profile_tmp"], "alias": "stg_amazon_ads__profile_tmp", "checksum": {"name": "sha256", "checksum": "b7c0823e89ac3513c15ea916f4fa4c1a05a9ef8b5e08446c3812797c733870a3"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.334743, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('profile') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "profile"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.profile"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__profile_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`profile`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__search_term_ad_keyword_report_tmp"], "alias": "stg_amazon_ads__search_term_ad_keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "73d9f3ed1f49d3695cfb2266e7ad8ef6dd60f794bd767ae0dc7458eb4705a350"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.344064, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__search_term_ad_keyword_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('search_term_ad_keyword_report') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "search_term_ad_keyword_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__search_term_ad_keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`search_term_ad_keyword_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__product_ad_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__product_ad_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__product_ad_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__product_ad_history_tmp"], "alias": "stg_amazon_ads__product_ad_history_tmp", "checksum": {"name": "sha256", "checksum": "58aa82e3cba0533f9ea4bd0b8213b88f7596934bebb0939159b34955e7cf7016"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.3567958, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__product_ad_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('product_ad_history') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "product_ad_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__product_ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`product_ad_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__ad_group_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__ad_group_history_tmp"], "alias": "stg_amazon_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "0a0799551d10a2e0c0b5ea747e66aad1a55bf0091d318e902938f906ef53a5ef"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.369278, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_history') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`ad_group_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__campaign_level_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__campaign_level_report_tmp"], "alias": "stg_amazon_ads__campaign_level_report_tmp", "checksum": {"name": "sha256", "checksum": "f767f297f6f15fce324971641eca1f2c7c2b0a0d13f2aed1ac3c80425a816e4f"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.381432, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_level_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_level_report') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "campaign_level_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__campaign_level_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`campaign_level_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__targeting_keyword_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__targeting_keyword_report_tmp"], "alias": "stg_amazon_ads__targeting_keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "1411fae1c9263de0790201a68288f49218e686bd8888b5405923b4548fa40aef"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.3929548, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__targeting_keyword_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('targeting_keyword_report') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "targeting_keyword_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__targeting_keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`targeting_keyword_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__portfolio_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__portfolio_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__portfolio_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__portfolio_history_tmp"], "alias": "stg_amazon_ads__portfolio_history_tmp", "checksum": {"name": "sha256", "checksum": "652c00944c6643c4077189683c73cf52042ec68c3ffc50085d288c6d7c11fe48"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.406663, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__portfolio_history_tmp`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nselect * \nfrom {{ var('portfolio_history') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "portfolio_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["source.amazon_ads_source.amazon_ads.portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__portfolio_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`portfolio_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__campaign_history_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__campaign_history_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__campaign_history_tmp"], "alias": "stg_amazon_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "e3099ab2e93224097e46899d6f07b3db453c1fcfc65e1b0f2be7e5264b044e99"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.418675, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('campaign_history') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__ad_group_level_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__ad_group_level_report_tmp"], "alias": "stg_amazon_ads__ad_group_level_report_tmp", "checksum": {"name": "sha256", "checksum": "3adb9bbf019585b634b92ac775cd16e72b395be0691cbb2325da59ced157db6f"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.430463, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_level_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('ad_group_level_report') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "ad_group_level_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__ad_group_level_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`ad_group_level_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads_source", "name": "stg_amazon_ads__advertised_product_report_tmp", "resource_type": "model", "package_name": "amazon_ads_source", "path": "tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "original_file_path": "models/tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "fqn": ["amazon_ads_source", "tmp", "stg_amazon_ads__advertised_product_report_tmp"], "alias": "stg_amazon_ads__advertised_product_report_tmp", "checksum": {"name": "sha256", "checksum": "4a026b403c68336b435e4ae3c2169dfd1174085ed660f27b2ad5d2e3fbf8b0a7"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "amazon_ads_source", "enabled": true}, "created_at": 1678988315.442165, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__advertised_product_report_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nselect * \nfrom {{ var('advertised_product_report') }}", "language": "sql", "refs": [], "sources": [["amazon_ads", "advertised_product_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.amazon_ads_source.amazon_ads.advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/tmp/stg_amazon_ads__advertised_product_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`amazon_ads`.`advertised_product_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__creative_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__creative_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__creative_history.sql", "original_file_path": "models/stg_linkedin_ads__creative_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history", "fqn": ["linkedin_source", "stg_linkedin_ads__creative_history"], "alias": "stg_linkedin_ads__creative_history", "checksum": {"name": "sha256", "checksum": "d00cfaa4090be843e4157a73bf2e05ae970fe6fa654b234cd2d05b304c0c36e0"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988322.2784488, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__creative_history`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__creative_history_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__creative_history_tmp')),\n staging_columns=get_creative_history_columns()\n )\n }}\n 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.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.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.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", "refs": [["stg_linkedin_ads__creative_history_tmp"], ["stg_linkedin_ads__creative_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp", "macro.dbt.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"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__creative_history_tmp`\n\n), macro as (\n\n select \n \n cast(null as STRING) as \n \n call_to_action_label_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as STRING) as \n \n click_uri\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n last_modified_time\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as STRING) 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 TIMESTAMP) as last_modified_at,\n cast(created_time as TIMESTAMP) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n), 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 STRING)\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 STRING)\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": []}, "model.linkedin_source.stg_linkedin_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__campaign_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_history"], "alias": "stg_linkedin_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "12f98866db796269913da635f3597191300af87f91d3e018768b16c927e8f77f"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988322.28986, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__campaign_history_tmp') }}\n\n), macro as (\n\n select \n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n 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.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_linkedin_ads__campaign_history_tmp"], ["stg_linkedin_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__campaign_history_tmp`\n\n), macro as (\n\n select \n \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as boolean) as \n \n audience_expansion_enabled\n \n , \n cast(null as INT64) as \n \n campaign_group_id\n \n , \n cast(null as STRING) as \n \n cost_type\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as STRING) as \n \n creative_selection\n \n , \n cast(null as FLOAT64) as \n \n daily_budget_amount\n \n , \n cast(null as STRING) as \n \n daily_budget_currency_code\n \n , \n cast(null as STRING) as \n \n format\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n last_modified_time\n \n , \n cast(null as STRING) as \n \n locale_country\n \n , \n cast(null as STRING) as \n \n locale_language\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n objective_type\n \n , \n cast(null as boolean) as \n \n offsite_delivery_enabled\n \n , \n cast(null as STRING) as \n \n optimization_target_type\n \n , \n cast(null as TIMESTAMP) as \n \n run_schedule_end\n \n , \n cast(null as TIMESTAMP) as \n \n run_schedule_start\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as FLOAT64) as \n \n unit_cost_amount\n \n , \n cast(null as STRING) as \n \n unit_cost_currency_code\n \n , \n cast(null as STRING) 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 TIMESTAMP) as run_schedule_start_at,\n cast(run_schedule_end as TIMESTAMP) as run_schedule_end_at,\n cast(last_modified_time as TIMESTAMP) as last_modified_at,\n cast(created_time as TIMESTAMP) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_campaign", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_campaign.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_campaign"], "alias": "stg_linkedin_ads__ad_analytics_by_campaign", "checksum": {"name": "sha256", "checksum": "b0bf02e1776326897d77e8060a8f30689fa628b67e826fa86198aef533c31569"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988322.269942, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_linkedin_ads__ad_analytics_by_campaign_tmp') }}\n),\n\nmacro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__ad_analytics_by_campaign_tmp')),\n staging_columns=get_ad_analytics_by_campaign_columns()\n )\n }}\n from base\n),\n\nfields as (\n \n select \n {{ dbt.date_trunc('day', 'day') }} as date_day,\n campaign_id,\n clicks,\n impressions,\n {% if var('linkedin_ads__use_local_currency', false) %}\n cost_in_local_currency as cost\n {% else %}\n cost_in_usd as cost\n {% endif %}\n\n {{ fivetran_utils.fill_pass_through_columns('linkedin_ads__campaign_passthrough_metrics') }}\n\n from macro\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_linkedin_ads__ad_analytics_by_campaign_tmp"], ["stg_linkedin_ads__ad_analytics_by_campaign_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_campaign_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_campaign.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign_tmp`\n),\n\nmacro as (\n\n select\n \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as numeric) as \n \n cost_in_local_currency\n \n , \n cast(null as numeric) as \n \n cost_in_usd\n \n , \n cast(null as TIMESTAMP) as \n \n day\n \n , \n cast(null as INT64) 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": []}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_group_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__campaign_group_history.sql", "original_file_path": "models/stg_linkedin_ads__campaign_group_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "fqn": ["linkedin_source", "stg_linkedin_ads__campaign_group_history"], "alias": "stg_linkedin_ads__campaign_group_history", "checksum": {"name": "sha256", "checksum": "9e4b57accd4f0a428f53d1b953c3c9dc25d6b5fbf4255f3a224f071f35474b66"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988322.295938, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__campaign_group_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__campaign_group_history_tmp')),\n staging_columns=get_campaign_group_history_columns()\n )\n }}\n 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.type_timestamp() }}) as run_schedule_start_at,\n cast(run_schedule_end as {{ dbt.type_timestamp() }}) as run_schedule_end_at,\n cast(last_modified_time as {{ dbt.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.type_timestamp() }}) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_linkedin_ads__campaign_group_history_tmp"], ["stg_linkedin_ads__campaign_group_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_campaign_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__campaign_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history_tmp`\n\n), macro as (\n\n select\n \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as boolean) as \n \n backfilled\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n last_modified_time\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) as \n \n run_schedule_end\n \n , \n cast(null as TIMESTAMP) as \n \n run_schedule_start\n \n , \n cast(null as STRING) as \n \n status\n \n \n\n\n 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 TIMESTAMP) as run_schedule_start_at,\n cast(run_schedule_end as TIMESTAMP) as run_schedule_end_at,\n cast(last_modified_time as TIMESTAMP) as last_modified_at,\n cast(created_time as TIMESTAMP) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__account_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__account_history", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__account_history.sql", "original_file_path": "models/stg_linkedin_ads__account_history.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history", "fqn": ["linkedin_source", "stg_linkedin_ads__account_history"], "alias": "stg_linkedin_ads__account_history", "checksum": {"name": "sha256", "checksum": "60047b6cc68c2bee2b8c25f07872167514305c30028cb0a589f55d82721f8593"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988322.3008451, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__account_history`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__account_history_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__account_history_tmp')),\n staging_columns=get_account_history_columns()\n )\n }}\n 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.type_timestamp() }}) as last_modified_at,\n cast(created_time as {{ dbt.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", "refs": [["stg_linkedin_ads__account_history_tmp"], ["stg_linkedin_ads__account_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history_tmp", "model.linkedin_source.stg_linkedin_ads__account_history_tmp"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__account_history_tmp`\n\n), macro as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as STRING) as \n \n currency\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n last_modified_time\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as STRING) 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 TIMESTAMP) as last_modified_at,\n cast(created_time as TIMESTAMP) as created_at,\n row_number() over (partition by id order by last_modified_time desc) = 1 as is_latest_version\n\n from macro\n\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_creative", "resource_type": "model", "package_name": "linkedin_source", "path": "stg_linkedin_ads__ad_analytics_by_creative.sql", "original_file_path": "models/stg_linkedin_ads__ad_analytics_by_creative.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "fqn": ["linkedin_source", "stg_linkedin_ads__ad_analytics_by_creative"], "alias": "stg_linkedin_ads__ad_analytics_by_creative", "checksum": {"name": "sha256", "checksum": "b5f5b1df9cc38a98aa8438602b219af4468b1493711e5b3ee01fb8836c61d2de"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988322.26661, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_linkedin_ads__ad_analytics_by_creative_tmp') }}\n\n), macro as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_linkedin_ads__ad_analytics_by_creative_tmp')),\n staging_columns=get_ad_analytics_by_creative_columns()\n )\n }}\n from base\n\n), fields as (\n\n select\n {{ dbt.date_trunc('day', 'day') }} as date_day,\n creative_id,\n clicks, \n impressions,\n {% if var('linkedin_ads__use_local_currency', false) %}\n cost_in_local_currency as cost\n {% else %}\n cost_in_usd as cost\n {% endif %}\n\n {{ fivetran_utils.fill_pass_through_columns('linkedin_ads__creative_passthrough_metrics') }}\n\n from macro\n\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_linkedin_ads__ad_analytics_by_creative_tmp"], ["stg_linkedin_ads__ad_analytics_by_creative_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.linkedin_source.get_ad_analytics_by_creative_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin_ads__ad_analytics_by_creative.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative_tmp`\n\n), macro as (\n\n select\n \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as numeric) as \n \n cost_in_local_currency\n \n , \n cast(null as numeric) as \n \n cost_in_usd\n \n , \n cast(null as INT64) as \n \n creative_id\n \n , \n cast(null as TIMESTAMP) as \n \n day\n \n , \n cast(null as INT64) 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": []}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_creative_tmp"], "alias": "stg_linkedin_ads__ad_analytics_by_creative_tmp", "checksum": {"name": "sha256", "checksum": "b1140ca3ef37dcf51382d1d423a866f8e99ab568e995419aaa0d6cc46ba9e2c2"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988315.659062, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_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", "refs": [], "sources": [["linkedin", "ad_analytics_by_creative"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_creative_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`linkedin_ads`.`ad_analytics_by_creative`", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_history_tmp"], "alias": "stg_linkedin_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "cebe89ef38c2b2a3e4c78f3a30350598b00910af0597c348f07c9e2d29591441"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988315.6709719, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_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", "refs": [], "sources": [["linkedin", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`linkedin_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__account_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__account_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__account_history_tmp"], "alias": "stg_linkedin_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "d7ffa4b7ad250c8643b99abf7d1ee1099a1b01e847424247f469fb8b49bac5b9"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988315.683192, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_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", "refs": [], "sources": [["linkedin", "account_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`linkedin_ads`.`account_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__campaign_group_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__campaign_group_history_tmp"], "alias": "stg_linkedin_ads__campaign_group_history_tmp", "checksum": {"name": "sha256", "checksum": "704cfe15aec2c0f1de75b8c78a082b45ae6fa6a03198dc210d8eeacb8bd643b8"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988315.694039, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_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", "refs": [], "sources": [["linkedin", "campaign_group_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__campaign_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`linkedin_ads`.`campaign_group_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__creative_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__creative_history_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__creative_history_tmp"], "alias": "stg_linkedin_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "0b886b1ffe53a073e6123a79cc2dd4b0576178d82e38be84fddc1f70e8b3d0fc"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988315.705556, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_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", "refs": [], "sources": [["linkedin", "creative_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.creative_history"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`linkedin_ads`.`creative_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads_source", "name": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "resource_type": "model", "package_name": "linkedin_source", "path": "tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "original_file_path": "models/tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "unique_id": "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign_tmp", "fqn": ["linkedin_source", "tmp", "stg_linkedin_ads__ad_analytics_by_campaign_tmp"], "alias": "stg_linkedin_ads__ad_analytics_by_campaign_tmp", "checksum": {"name": "sha256", "checksum": "03a126189ee0a2fe1d514ff02883403a1c9e8d8f9fe928262c338b61246cd7ef"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "linkedin_ads_source", "enabled": true}, "created_at": 1678988315.717435, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads_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", "refs": [], "sources": [["linkedin", "ad_analytics_by_campaign"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.linkedin_source.linkedin.ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/tmp/stg_linkedin_ads__ad_analytics_by_campaign_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`linkedin_ads`.`ad_analytics_by_campaign`", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads.amazon_ads__portfolio_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads", "name": "amazon_ads__portfolio_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__portfolio_report.sql", "original_file_path": "models/amazon_ads__portfolio_report.sql", "unique_id": "model.amazon_ads.amazon_ads__portfolio_report", "fqn": ["amazon_ads", "amazon_ads__portfolio_report"], "alias": "amazon_ads__portfolio_report", "checksum": {"name": "sha256", "checksum": "cabdd1c6fd859f1ccd8a40429234ba4b38c71fb303fcb298ffd44e8e35367712"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the portfolio level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.503895, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__portfolio_report`", "raw_code": "{{ config(enabled=fivetran_utils.enabled_vars(['ad_reporting__amazon_ads_enabled','amazon_ads__portfolio_history_enabled'])) }}\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ var('portfolio_history') }}\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n portfolios.budget_amount,\n portfolios.budget_currency_code,\n portfolios.budget_start_date,\n portfolios.budget_end_date,\n portfolios.budget_policy,\n portfolios.in_budget,\n portfolios.serving_status,\n portfolios.state,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n --use campaign report since portfolio report not provided\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\n\n from portfolios\n\n left join campaigns\n on campaigns.portfolio_id = portfolios.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n left join report\n on report.campaign_id = campaigns.campaign_id\n\n {{ dbt_utils.group_by(15) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_amazon_ads__campaign_level_report"], ["stg_amazon_ads__profile"], ["stg_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__portfolio_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since portfolio report not provided\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_level_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__portfolio_history`\n where is_most_recent_record = True\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n portfolios.budget_amount,\n portfolios.budget_currency_code,\n portfolios.budget_start_date,\n portfolios.budget_end_date,\n portfolios.budget_policy,\n portfolios.in_budget,\n portfolios.serving_status,\n portfolios.state,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n --use campaign report since portfolio report not provided\n \n\n\n\n\n\n from portfolios\n\n left join campaigns\n on campaigns.portfolio_id = portfolios.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n left join report\n on report.campaign_id = campaigns.campaign_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads.amazon_ads__search_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads", "name": "amazon_ads__search_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__search_report.sql", "original_file_path": "models/amazon_ads__search_report.sql", "unique_id": "model.amazon_ads.amazon_ads__search_report", "fqn": ["amazon_ads", "amazon_ads__search_report"], "alias": "amazon_ads__search_report", "checksum": {"name": "sha256", "checksum": "d9ad83ecb9dd1081b6220d8ab0fdd3e192eeefe5bee5acb98af91c07e6bd04fd"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the search term level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "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_group_name": {"name": "ad_group_name", "description": "The name 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": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "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": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting": {"name": "targeting", "description": "A string representation of the expression object used in the targeting clause.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.5273468, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__search_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('search_term_ad_keyword_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.match_type,\n keywords.serving_status,\n keywords.state,\n report.search_term,\n report.targeting,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__search_term_ad_keyword_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(18) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_amazon_ads__search_term_ad_keyword_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"], ["stg_amazon_ads__ad_group_history"], ["stg_amazon_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__search_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__search_term_ad_keyword_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__keyword_history`\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.match_type,\n keywords.serving_status,\n keywords.state,\n report.search_term,\n report.targeting,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_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\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads.amazon_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads", "name": "amazon_ads__ad_group_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__ad_group_report.sql", "original_file_path": "models/amazon_ads__ad_group_report.sql", "unique_id": "model.amazon_ads.amazon_ads__ad_group_report", "fqn": ["amazon_ads", "amazon_ads__ad_group_report"], "alias": "amazon_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "e30ef8e1875095bb2f60e56a16c993c5578e51e3819ccbae8d577380c5e9e55f"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the ad group level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_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 Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a 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_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.471242, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('ad_group_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.serving_status,\n ad_groups.state,\n ad_groups.default_bid,\n report.campaign_bidding_strategy,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__ad_group_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = ad_groups.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(15) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_amazon_ads__ad_group_level_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"], ["stg_amazon_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_level_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n campaigns.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ad_groups.serving_status,\n ad_groups.state,\n ad_groups.default_bid,\n report.campaign_bidding_strategy,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = ad_groups.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads.amazon_ads__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads", "name": "amazon_ads__keyword_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__keyword_report.sql", "original_file_path": "models/amazon_ads__keyword_report.sql", "unique_id": "model.amazon_ads.amazon_ads__keyword_report", "fqn": ["amazon_ads", "amazon_ads__keyword_report"], "alias": "amazon_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "853d0f5a2efe33b0098beb4728854589e3e57387a1993c289277e0263624e32e"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the keyword level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "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_group_name": {"name": "ad_group_name", "description": "The name 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": []}, "campaign_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_bid": {"name": "keyword_bid", "description": "Bid associated with a keyword or targeting expression.", "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": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_type": {"name": "keyword_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.5159318, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__keyword_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('targeting_keyword_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from {{ var('keyword_history') }}\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.serving_status,\n keywords.state,\n report.keyword_bid,\n report.keyword_type,\n report.match_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__targeting_keyword_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(18) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_amazon_ads__targeting_keyword_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"], ["stg_amazon_ads__ad_group_history"], ["stg_amazon_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__targeting_keyword_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nkeywords as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__keyword_history`\n where is_most_recent_record = True\n), \n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.keyword_id,\n keywords.keyword_text,\n keywords.serving_status,\n keywords.state,\n report.keyword_bid,\n report.keyword_type,\n report.match_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n\n left join keywords\n on keywords.keyword_id = report.keyword_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_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\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads.amazon_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads", "name": "amazon_ads__campaign_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__campaign_report.sql", "original_file_path": "models/amazon_ads__campaign_report.sql", "unique_id": "model.amazon_ads.amazon_ads__campaign_report", "fqn": ["amazon_ads", "amazon_ads__campaign_report"], "alias": "amazon_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "58fad347379a7dce3b65a0032928042be589773051054f9a842e5b2794613b0e"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the campaign level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "description": "The bidding strategy associated with a campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "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": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.4931278, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n report.campaign_bidding_strategy,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(13) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_amazon_ads__campaign_level_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_level_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n report.campaign_bidding_strategy,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\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": []}, "model.amazon_ads.amazon_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads", "name": "amazon_ads__account_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__account_report.sql", "original_file_path": "models/amazon_ads__account_report.sql", "unique_id": "model.amazon_ads.amazon_ads__account_report", "fqn": ["amazon_ads", "amazon_ads__account_report"], "alias": "amazon_ads__account_report", "checksum": {"name": "sha256", "checksum": "0301d1001503ea32f7bff3358c9c625e14d371ff1a9a229caee3e5432a61a316"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the account level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.4611351, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from {{ var('campaign_level_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n --use campaign report since portfolio report not provided\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__campaign_passthrough_metrics', transform='sum') }}\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n \n\n {{ dbt_utils.group_by(5) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_amazon_ads__campaign_level_report"], ["stg_amazon_ads__profile"], ["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n --use campaign report since account report not provided\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_level_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\ncampaigns as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n --use campaign report since portfolio report not provided\n \n\n\n\n\n\n from report\n\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n \n\n group by 1,2,3,4,5\n)\n\nselect *\nfrom fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads.amazon_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads", "name": "amazon_ads__ad_report", "resource_type": "model", "package_name": "amazon_ads", "path": "amazon_ads__ad_report.sql", "original_file_path": "models/amazon_ads__ad_report.sql", "unique_id": "model.amazon_ads.amazon_ads__ad_report", "fqn": ["amazon_ads", "amazon_ads__ad_report"], "alias": "amazon_ads__ad_report", "checksum": {"name": "sha256", "checksum": "6e290fb18f0fd7e67d23f5f3421d14d468f89d31088e8245c2505b702b6e552d"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "Each record in this table represents the daily performance at the ad level.", "columns": {"date_day": {"name": "date_day", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "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": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_name": {"name": "ad_group_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_name": {"name": "campaign_name", "description": "The name of the Campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_name": {"name": "portfolio_name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertised_asin": {"name": "advertised_asin", "description": "The ASIN associated to an advertised product.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "advertised_sku": {"name": "advertised_sku", "description": "The SKU being advertised.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_amount": {"name": "campaign_budget_amount", "description": "Total budget allocated to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "description": "The currency code associated with the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_budget_type": {"name": "campaign_budget_type", "description": "One of: daily or lifetime.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "amazon_ads://models/amazon_ads.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.483752, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_report`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\nwith report as (\n select *\n from {{ var('advertised_product_report') }}\n), \n\naccount_info as (\n select *\n from {{ var('profile') }}\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from {{ ref('int_amazon_ads__portfolio_history') }}\n), \n\ncampaigns as (\n select *\n from {{ var('campaign_history') }}\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from {{ var('ad_group_history') }}\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from {{ var('product_ad_history') }}\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.ad_id,\n ads.serving_status,\n ads.state,\n report.advertised_asin,\n report.advertised_sku,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='amazon_ads__advertised_product_passthrough_metrics', transform='sum') }}\n\n from report\n \n left join ads\n on ads.ad_id = report.ad_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_id\n\n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom fields", "language": "sql", "refs": [["stg_amazon_ads__advertised_product_report"], ["stg_amazon_ads__profile"], ["int_amazon_ads__portfolio_history"], ["stg_amazon_ads__campaign_history"], ["stg_amazon_ads__ad_group_history"], ["stg_amazon_ads__product_ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__advertised_product_report`\n), \n\naccount_info as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`\n where _fivetran_deleted = False\n),\n\nportfolios as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`int_amazon_ads__portfolio_history`\n), \n\ncampaigns as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\n where is_most_recent_record = True\n),\n\nad_groups as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history`\n where is_most_recent_record = True\n), \n\nads as (\n select *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__product_ad_history`\n where is_most_recent_record = True\n),\n\nfields as (\n select\n report.date_day,\n account_info.account_name,\n account_info.account_id,\n account_info.country_code,\n account_info.profile_id,\n portfolios.portfolio_name,\n portfolios.portfolio_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.ad_id,\n ads.serving_status,\n ads.state,\n report.advertised_asin,\n report.advertised_sku,\n report.campaign_budget_amount,\n report.campaign_budget_currency_code,\n report.campaign_budget_type,\n sum(report.cost) as cost,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions \n\n \n\n\n\n\n\n from report\n \n left join ads\n on ads.ad_id = report.ad_id\n left join ad_groups\n on ad_groups.ad_group_id = report.ad_group_id\n left join campaigns\n on campaigns.campaign_id = report.campaign_id\n left join portfolios\n on portfolios.portfolio_id = campaigns.portfolio_id\n left join account_info\n on account_info.profile_id = campaigns.profile_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 fields", "extra_ctes_injected": true, "extra_ctes": []}, "model.amazon_ads.int_amazon_ads__portfolio_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_amazon_ads", "name": "int_amazon_ads__portfolio_history", "resource_type": "model", "package_name": "amazon_ads", "path": "intermediate/int_amazon_ads__portfolio_history.sql", "original_file_path": "models/intermediate/int_amazon_ads__portfolio_history.sql", "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history", "fqn": ["amazon_ads", "intermediate", "int_amazon_ads__portfolio_history"], "alias": "int_amazon_ads__portfolio_history", "checksum": {"name": "sha256", "checksum": "f16073f69f2861ff80a5f7ebf6c93e4ad665ec5f091717de9b52f1a985028bae"}, "config": {"enabled": true, "alias": null, "schema": "amazon_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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "amazon_ads", "materialized": "view", "enabled": true}, "created_at": 1678988315.8796842, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`int_amazon_ads__portfolio_history`", "raw_code": "{{ config(enabled=var('ad_reporting__amazon_ads_enabled', True)) }}\n\n{# This intermediate model creates a dummy portfolio table if the user does not use portfolios. \nIf they are using them, the normal portfolio_history will be used. #}\n\nwith portfolios as (\n select\n {% if var('amazon_ads__portfolio_history_enabled', True) %}\n *\n from {{ var('portfolio_history') }}\n where is_most_recent_record = True\n {% else %}\n {# uses the columns macro from the source package to populate column names #}\n {%- set columns = amazon_ads_source.get_portfolio_history_columns() -%}\n {% for column in columns %}\n {# set null for each column #}\n {%- if column['name'] == 'id' -%}\n cast(null as {{ dbt.type_bigint() }}) as portfolio_id\n {%- elif column['name'] == 'name' -%}\n null as portfolio_name\n {%- else -%}\n null as {{column['name']}}\n {%- endif -%}\n {# add comma if not the last column #}\n {%- if not loop.last -%} , {% endif -%}\n {% endfor %}\n {% endif %}\n)\n\nselect * \nfrom portfolios", "language": "sql", "refs": [["stg_amazon_ads__portfolio_history"]], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads/models/intermediate/int_amazon_ads__portfolio_history.sql", "compiled": true, "compiled_code": "\n\n\n\nwith portfolios as (\n select\n \n *\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__portfolio_history`\n where is_most_recent_record = True\n \n)\n\nselect * \nfrom portfolios", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads.facebook_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads", "name": "facebook_ads__url_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__url_report.sql", "original_file_path": "models/facebook_ads__url_report.sql", "unique_id": "model.facebook_ads.facebook_ads__url_report", "fqn": ["facebook_ads", "facebook_ads__url_report"], "alias": "facebook_ads__url_report", "checksum": {"name": "sha256", "checksum": "f70f450f715f519a00124348bc02f28ba3c9512aeb5f3ce0d57f01421e7a7f18"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.62304, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where creatives.url is not null\n {% endif %}\n \n {{ dbt_utils.group_by(19) }}\n)\n\nselect *\nfrom joined", "language": "sql", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads.int_facebook_ads__creative_history", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\ncreatives as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads`.`int_facebook_ads__creative_history`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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\n \n where creatives.url is not null\n \n \n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads.facebook_ads__url_tags": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads", "name": "facebook_ads__url_tags", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__url_tags.sql", "original_file_path": "models/facebook_ads__url_tags.sql", "unique_id": "model.facebook_ads.facebook_ads__url_tags", "fqn": ["facebook_ads", "facebook_ads__url_tags"], "alias": "facebook_ads__url_tags", "checksum": {"name": "sha256", "checksum": "94dcb7faf1441b289fcec62f3e81794a05a34cf10bf2955e8a8f8c18555f8ad2"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.6458292, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads.get_url_tags_query"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__url_tags.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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": []}, "model.facebook_ads.facebook_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads", "name": "facebook_ads__campaign_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__campaign_report.sql", "original_file_path": "models/facebook_ads__campaign_report.sql", "unique_id": "model.facebook_ads.facebook_ads__campaign_report", "fqn": ["facebook_ads", "facebook_ads__campaign_report"], "alias": "facebook_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "4bec447c9d29e7a26180ce14a68d0a1217d60f0d24bed7c89716b3520c053a75"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.6391869, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"], ["stg_facebook_ads__campaign_history"], ["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.facebook_ads.facebook_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads", "name": "facebook_ads__account_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__account_report.sql", "original_file_path": "models/facebook_ads__account_report.sql", "unique_id": "model.facebook_ads.facebook_ads__account_report", "fqn": ["facebook_ads", "facebook_ads__account_report"], "alias": "facebook_ads__account_report", "checksum": {"name": "sha256", "checksum": "845cdb5118e536d66d515c2e11eee71d380e406ba4f443bae4828ec70362841e"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.642501, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_facebook_ads__basic_ad"], ["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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": []}, "model.facebook_ads.facebook_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads", "name": "facebook_ads__ad_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__ad_report.sql", "original_file_path": "models/facebook_ads__ad_report.sql", "unique_id": "model.facebook_ads.facebook_ads__ad_report", "fqn": ["facebook_ads", "facebook_ads__ad_report"], "alias": "facebook_ads__ad_report", "checksum": {"name": "sha256", "checksum": "36088a9abc521347aacc7d9bf0f56fd712441e94a2bc66ef334f85ff8f4761ea"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.629406, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.facebook_ads.facebook_ads__ad_set_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads", "name": "facebook_ads__ad_set_report", "resource_type": "model", "package_name": "facebook_ads", "path": "facebook_ads__ad_set_report.sql", "original_file_path": "models/facebook_ads__ad_set_report.sql", "unique_id": "model.facebook_ads.facebook_ads__ad_set_report", "fqn": ["facebook_ads", "facebook_ads__ad_set_report"], "alias": "facebook_ads__ad_set_report", "checksum": {"name": "sha256", "checksum": "d1b0e28fe240e405fe8f746c38d4fad26a8d43e10dcd6f375617b78095f87e01"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.6348631, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__campaign_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook_ads__ad_set_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__basic_ad`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.facebook_ads.int_facebook_ads__creative_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads", "name": "int_facebook_ads__creative_history", "resource_type": "model", "package_name": "facebook_ads", "path": "intermediate/int_facebook_ads__creative_history.sql", "original_file_path": "models/intermediate/int_facebook_ads__creative_history.sql", "unique_id": "model.facebook_ads.int_facebook_ads__creative_history", "fqn": ["facebook_ads", "intermediate", "int_facebook_ads__creative_history"], "alias": "int_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "58070e7fbe67471ca464a7f8fdb011e4e8582d1651e7b42b966218bdaf1b4235"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads", "materialized": "view", "enabled": true}, "created_at": 1678988316.153779, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_facebook_ads__creative_history"], ["facebook_ads__url_tags"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.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"]}, "compiled_path": "target/compiled/facebook_ads/models/intermediate/int_facebook_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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 STRING)\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 STRING)\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": []}, "model.snapchat_ads.snapchat_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads", "name": "snapchat_ads__ad_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__ad_report.sql", "original_file_path": "models/snapchat_ads__ad_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__ad_report", "fqn": ["snapchat_ads", "snapchat_ads__ad_report"], "alias": "snapchat_ads__ad_report", "checksum": {"name": "sha256", "checksum": "883a24dba7248457561b24e845d2e8beec4fd361a2a8aef051b5cb01305f48fe"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.741236, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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 STRING)\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 STRING)\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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 STRING)\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 STRING)\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)"}]}, "model.snapchat_ads.snapchat_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads", "name": "snapchat_ads__url_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__url_report.sql", "original_file_path": "models/snapchat_ads__url_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__url_report", "fqn": ["snapchat_ads", "snapchat_ads__url_report"], "alias": "snapchat_ads__url_report", "checksum": {"name": "sha256", "checksum": "5ef679cec36298aa943c64d752fd4f730f71b1ab20127e5bbbd5d1ad952131f4"}, "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": []}, "tags": [], "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_squad_id": {"name": "ad_squad_id", "description": "The ID of the ad squad 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": []}, "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": []}, "ad_squad_name": {"name": "ad_squad_name", "description": "The name of the ad squad 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": []}, "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.7627368, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 ad_squads.ad_squad_id,\n ad_squads.ad_squad_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n account.currency,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend\n \n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='snapchat_ads__ad_hourly_passthrough_metrics', transform = 'sum') }}\n \n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n left join creatives\n on ads.creative_id = creatives.creative_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 creatives.ad_account_id = account.ad_account_id\n\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where creatives.url is not null\n {% endif %}\n\n {{ dbt_utils.group_by(18) }}\n\n)\n\nselect *\nfrom aggregated", "language": "sql", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__snapchat_ads__creative_history_prep as (\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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 STRING)\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 STRING)\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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 ad_squads.ad_squad_id,\n ad_squads.ad_squad_name,\n campaigns.campaign_id,\n campaigns.campaign_name,\n account.currency,\n creatives.base_url,\n creatives.url_host,\n creatives.url_path,\n creatives.utm_source,\n creatives.utm_medium,\n creatives.utm_campaign,\n creatives.utm_content,\n creatives.utm_term,\n sum(ad_hourly.swipes) as swipes,\n sum(ad_hourly.impressions) as impressions,\n round(sum(ad_hourly.spend),2) as spend\n \n \n\n\n\n\n \n from ad_hourly\n left join ads \n on ad_hourly.ad_id = ads.ad_id\n left join creatives\n on ads.creative_id = creatives.creative_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 creatives.ad_account_id = account.ad_account_id\n\n \n -- We only want utm ads to populate this report. Therefore, we filter where url ads are populated.\n where creatives.url is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18\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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 STRING)\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 STRING)\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)"}]}, "model.snapchat_ads.snapchat_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads", "name": "snapchat_ads__account_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__account_report.sql", "original_file_path": "models/snapchat_ads__account_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__account_report", "fqn": ["snapchat_ads", "snapchat_ads__account_report"], "alias": "snapchat_ads__account_report", "checksum": {"name": "sha256", "checksum": "712da861e6b20cf879f1f5c936329cbfaf3a0e98728c707d692405b5629df197"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.73651, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith ad_hourly as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.snapchat_ads.snapchat_ads__ad_squad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads", "name": "snapchat_ads__ad_squad_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__ad_squad_report.sql", "original_file_path": "models/snapchat_ads__ad_squad_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report", "fqn": ["snapchat_ads", "snapchat_ads__ad_squad_report"], "alias": "snapchat_ads__ad_squad_report", "checksum": {"name": "sha256", "checksum": "6d33fd85d1fc074fd8ba3f52b028d3b6f97d8e33c77bcd1fa5795527170a065a"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.752019, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__ad_squad_report.sql", "compiled": true, "compiled_code": "\n\nwith ad_squad_hourly as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.snapchat_ads.snapchat_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads", "name": "snapchat_ads__campaign_report", "resource_type": "model", "package_name": "snapchat_ads", "path": "snapchat_ads__campaign_report.sql", "original_file_path": "models/snapchat_ads__campaign_report.sql", "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report", "fqn": ["snapchat_ads", "snapchat_ads__campaign_report"], "alias": "snapchat_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "37a0ae79a3b9a6455f3c7f6d5c83ca1ab54ae0fc2b2c103c981a43e0744fdc88"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "table", "enabled": true}, "created_at": 1678988322.746031, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_snapchat_ads__campaign_hourly_report"], ["stg_snapchat_ads__ad_account_history"], ["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign_hourly as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\n\n), account as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.snapchat_ads.snapchat_ads__creative_history_prep": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads", "name": "snapchat_ads__creative_history_prep", "resource_type": "model", "package_name": "snapchat_ads", "path": "intermediate/snapchat_ads__creative_history_prep.sql", "original_file_path": "models/intermediate/snapchat_ads__creative_history_prep.sql", "unique_id": "model.snapchat_ads.snapchat_ads__creative_history_prep", "fqn": ["snapchat_ads", "intermediate", "snapchat_ads__creative_history_prep"], "alias": "snapchat_ads__creative_history_prep", "checksum": {"name": "sha256", "checksum": "96937fe8400a512c70ff7cf59a4f215276169b68df7c5bdd67b9a0c1234d86e8"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads", "materialized": "ephemeral", "enabled": true}, "created_at": 1678988316.33351, "relation_name": null, "raw_code": "{{ config(enabled=var('ad_reporting__snapchat_ads_enabled', true)) }}\nwith base as (\n\n select *\n from {{ var('creative_history') }}\n where is_most_recent_record = true\n\n), url_tags as (\n\n select *\n from {{ var('creative_url_tag_history') }}\n where is_most_recent_record = true\n\n), url_tags_pivoted as (\n\n select \n 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.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", "refs": [["stg_snapchat_ads__creative_history"], ["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.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"]}, "compiled_path": "target/compiled/snapchat_ads/models/intermediate/snapchat_ads__creative_history_prep.sql", "compiled": true, "compiled_code": "\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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 STRING)\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 STRING)\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": []}, "model.google_ads_source.stg_google_ads__ad_group_stats": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_group_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_stats.sql", "original_file_path": "models/stg_google_ads__ad_group_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats", "fqn": ["google_ads_source", "stg_google_ads__ad_group_stats"], "alias": "stg_google_ads__ad_group_stats", "checksum": {"name": "sha256", "checksum": "50112c5d48ed15989072dc56b8e1fc598778564b5fef97bcc538ca6927117713"}, "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": []}, "tags": [], "description": "Each record represents the daily performance of an ad group in Google Ads broken down to the ad network and device type.", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.8980212, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_google_ads__ad_group_stats_tmp"], ["stg_google_ads__ad_group_stats_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_group_stats_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_network_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as INT64) as \n \n cost_micros\n \n , \n cast(null as INT64) as \n \n customer_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n device\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as INT64) 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 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 \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__account_stats": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__account_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__account_stats.sql", "original_file_path": "models/stg_google_ads__account_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_stats", "fqn": ["google_ads_source", "stg_google_ads__account_stats"], "alias": "stg_google_ads__account_stats", "checksum": {"name": "sha256", "checksum": "ab5bb273d256a42be530160f2c20aa597ff974ad43e5fdbd20046f6f0699ef7f"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.9138088, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_google_ads__account_stats_tmp"], ["stg_google_ads__account_stats_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__account_stats_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_network_type\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as INT64) as \n \n cost_micros\n \n , \n cast(null as INT64) as \n \n customer_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n device\n \n , \n cast(null as INT64) 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": []}, "model.google_ads_source.stg_google_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_group_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_history.sql", "original_file_path": "models/stg_google_ads__ad_group_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history", "fqn": ["google_ads_source", "stg_google_ads__ad_group_history"], "alias": "stg_google_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "a74962ca2bca2e4507e3c647d9dd4ff276be310258c25d99c1228024b6e7e03c"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.86357, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_google_ads__ad_group_history_tmp"], ["stg_google_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_group_history_tmp`\n\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as STRING) as \n \n campaign_name\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as STRING) as ad_group_id,\n updated_at,\n type as ad_group_type, \n campaign_id, \n campaign_name, \n name as ad_group_name, \n status as ad_group_status,\n row_number() over (partition by 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": []}, "model.google_ads_source.stg_google_ads__ad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_history.sql", "original_file_path": "models/stg_google_ads__ad_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_history", "fqn": ["google_ads_source", "stg_google_ads__ad_history"], "alias": "stg_google_ads__ad_history", "checksum": {"name": "sha256", "checksum": "e0ff6b7aea218822442000bf423b307647e99e54c9bf48ed4bf411bcc6f00edb"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.873512, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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.split_part(string_text='final_urls', delimiter_text=\"','\", part_number=1) }} as final_url\n\n from final\n\n),\n\nurl_fields as (\n select \n *,\n {{ dbt.split_part('final_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('final_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('final_url') }} as url_path,\n {{ 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", "refs": [["stg_google_ads__ad_history_tmp"], ["stg_google_ads__ad_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_string", "macro.dbt.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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n display_url\n \n , \n cast(null as STRING) as \n \n final_urls\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as TIMESTAMP) 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 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 \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 STRING)\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 STRING)\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": []}, "model.google_ads_source.stg_google_ads__keyword_stats": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__keyword_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__keyword_stats.sql", "original_file_path": "models/stg_google_ads__keyword_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats", "fqn": ["google_ads_source", "stg_google_ads__keyword_stats"], "alias": "stg_google_ads__keyword_stats", "checksum": {"name": "sha256", "checksum": "ffc5f45c98b6b7a2824807980d55ad185258b67c2e8b3066844722616cdf4074"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.908654, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_google_ads__keyword_stats_tmp"], ["stg_google_ads__keyword_stats_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_keyword_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__keyword_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__keyword_stats_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as INT64) as \n \n ad_group_criterion_criterion_id\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n ad_network_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as INT64) as \n \n cost_micros\n \n , \n cast(null as INT64) as \n \n customer_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n device\n \n , \n cast(null as INT64) 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 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 \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__ad_stats": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_stats.sql", "original_file_path": "models/stg_google_ads__ad_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_stats", "fqn": ["google_ads_source", "stg_google_ads__ad_stats"], "alias": "stg_google_ads__ad_stats", "checksum": {"name": "sha256", "checksum": "be21b75b017ffad3f142c3d90ab9be8f9d99e9f16ea682acdf00217e6817fea2"}, "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": []}, "tags": [], "description": "Each record represents the daily performance of an ad in Google Ads broken down to the ad network, device type, and ad_group_id.", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.880126, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 in ('spark','databricks') %}\n coalesce(cast(ad_group_id as {{ dbt.type_string() }}), split(ad_group,'adGroups/')[1]) as ad_group_id,\n {% else %}\n coalesce(cast(ad_group_id as {{ dbt.type_string() }}), {{ dbt.split_part(string_text='ad_group', delimiter_text=\"'adGroups/'\", part_number=2) }}) as ad_group_id,\n {% endif %}\n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n 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", "refs": [["stg_google_ads__ad_stats_tmp"], ["stg_google_ads__ad_stats_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_stats_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_string", "macro.dbt.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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_stats_tmp`\n\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n ad_group\n \n , \n cast(null as STRING) as \n \n ad_group_id\n \n , \n cast(null as INT64) as \n \n ad_id\n \n , \n cast(null as STRING) as \n \n ad_network_type\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as INT64) as \n \n cost_micros\n \n , \n cast(null as INT64) as \n \n customer_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n device\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) 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 STRING), \n\n \n split(\n ad_group,\n 'adGroups/'\n )[safe_offset(1)]\n \n\n) as ad_group_id,\n \n keyword_ad_group_criterion,\n ad_network_type,\n device,\n ad_id, \n campaign_id, \n 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": []}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_group_criterion_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__ad_group_criterion_history.sql", "original_file_path": "models/stg_google_ads__ad_group_criterion_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "fqn": ["google_ads_source", "stg_google_ads__ad_group_criterion_history"], "alias": "stg_google_ads__ad_group_criterion_history", "checksum": {"name": "sha256", "checksum": "0f6a6882c94309772926b30b0b1d0ddf5f38fa9cdc8133ad6d771ead57c0a6a3"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.892854, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_google_ads__ad_group_criterion_history_tmp"], ["stg_google_ads__ad_group_criterion_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.google_ads_source.get_ad_group_criterion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__ad_group_criterion_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_group_criterion_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n id\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as INT64) as \n \n base_campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) as \n \n keyword_match_type\n \n , \n cast(null as STRING) 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 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", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__campaign_stats": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__campaign_stats", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__campaign_stats.sql", "original_file_path": "models/stg_google_ads__campaign_stats.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats", "fqn": ["google_ads_source", "stg_google_ads__campaign_stats"], "alias": "stg_google_ads__campaign_stats", "checksum": {"name": "sha256", "checksum": "4d8f1522db5e641f065131caf87cc3d4bb2895837d1da1adb9373e6f6e3187a3"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.903306, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_google_ads__campaign_stats_tmp"], ["stg_google_ads__campaign_stats_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_stats.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__campaign_stats_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_network_type\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as INT64) as \n \n cost_micros\n \n , \n cast(null as INT64) as \n \n customer_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as STRING) as \n \n device\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as INT64) 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": []}, "model.google_ads_source.stg_google_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__campaign_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__campaign_history.sql", "original_file_path": "models/stg_google_ads__campaign_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_history", "fqn": ["google_ads_source", "stg_google_ads__campaign_history"], "alias": "stg_google_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "48aacc738e5cbe391f544a5e16f40107b193fb5e84e3b7f1a3673cfe51e42bed"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.887338, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_google_ads__campaign_history_tmp"], ["stg_google_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__campaign_history_tmp`\n\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n advertising_channel_subtype\n \n , \n cast(null as STRING) as \n \n advertising_channel_type\n \n , \n cast(null as INT64) as \n \n customer_id\n \n , \n cast(null as STRING) as \n \n end_date\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n serving_status\n \n , \n cast(null as STRING) as \n \n start_date\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) as \n \n tracking_url_template\n \n , \n cast(null as TIMESTAMP) 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": []}, "model.google_ads_source.stg_google_ads__account_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__account_history", "resource_type": "model", "package_name": "google_ads_source", "path": "stg_google_ads__account_history.sql", "original_file_path": "models/stg_google_ads__account_history.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_history", "fqn": ["google_ads_source", "stg_google_ads__account_history"], "alias": "stg_google_ads__account_history", "checksum": {"name": "sha256", "checksum": "343005eab065e14bf0ee42e8efc615b9397add7d783d1e2e77158d2781f253bb"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988322.857746, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_google_ads__account_history_tmp"], ["stg_google_ads__account_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__account_history_tmp`\n\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as boolean) as \n \n auto_tagging_enabled\n \n , \n cast(null as STRING) as \n \n currency_code\n \n , \n cast(null as STRING) as \n \n descriptive_name\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n time_zone\n \n , \n cast(null as TIMESTAMP) 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": []}, "model.google_ads_source.stg_google_ads__account_stats_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__account_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__account_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_stats_tmp"], "alias": "stg_google_ads__account_stats_tmp", "checksum": {"name": "sha256", "checksum": "64986ed4826b8e88bc9cbc3bde6840448bc855e6084bc3d12da016addb34dafa"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.663647, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "account_stats"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_stats_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`account_stats`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_history_tmp"], "alias": "stg_google_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "663aad714cdf84b0a06475835364f36ffca4392b342ce434ea9ac3b38b96e548"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.6757278, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`ad_group_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__campaign_stats_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__campaign_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__campaign_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_stats_tmp"], "alias": "stg_google_ads__campaign_stats_tmp", "checksum": {"name": "sha256", "checksum": "ac4bf76095a969b6cc66bdfc6bf1e53e555be2fee1eb08c867e0489a910ab491"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.686869, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "campaign_stats"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_stats_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`campaign_stats`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__ad_stats_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_stats_tmp"], "alias": "stg_google_ads__ad_stats_tmp", "checksum": {"name": "sha256", "checksum": "69fac90225ad40ce593bc7a83bea96739e0018b2d4b90c4dd7be0555b980c316"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.6984022, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "ad_stats"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_stats_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`ad_stats`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__campaign_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__campaign_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__campaign_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__campaign_history_tmp"], "alias": "stg_google_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "1ca8c796342ffe6e1c664697a81bbe0787b3999df6e155e114aabb3f85df6ac6"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.711699, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_group_criterion_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_criterion_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_criterion_history_tmp"], "alias": "stg_google_ads__ad_group_criterion_history_tmp", "checksum": {"name": "sha256", "checksum": "82cd3b85a00f84d6433d30fb5a2c6b6882381c4200bdad44fd5a761219418b48"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.7236102, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "ad_group_criterion_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_criterion_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`ad_group_criterion_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__ad_group_stats_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_group_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_group_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_group_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_group_stats_tmp"], "alias": "stg_google_ads__ad_group_stats_tmp", "checksum": {"name": "sha256", "checksum": "df5f65c5bda3d22cada3c02ded54c4eb2a7e13ef2f1bc6169fed1f0c03fe761e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.734669, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "ad_group_stats"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_group_stats_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`ad_group_stats`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__keyword_stats_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__keyword_stats_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__keyword_stats_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__keyword_stats_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__keyword_stats_tmp"], "alias": "stg_google_ads__keyword_stats_tmp", "checksum": {"name": "sha256", "checksum": "4568538a6402c68eb5e94f0e9f17373b8473723218597ad8990553524dc31691"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.746237, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "keyword_stats"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__keyword_stats_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`keyword_stats`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__ad_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__ad_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__ad_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__ad_history_tmp"], "alias": "stg_google_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "237e4cca801b026f9d0aaeff2130bf3d2f3c9050e364406b5b59ba18db547166"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.759907, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`ad_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.google_ads_source.stg_google_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_google_ads_source", "name": "stg_google_ads__account_history_tmp", "resource_type": "model", "package_name": "google_ads_source", "path": "tmp/stg_google_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_google_ads__account_history_tmp.sql", "unique_id": "model.google_ads_source.stg_google_ads__account_history_tmp", "fqn": ["google_ads_source", "tmp", "stg_google_ads__account_history_tmp"], "alias": "stg_google_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "b5f8dd1b72ffdcf3bd32a1c0ab81a33aed0f43b042998b6d9cf57605a4226386"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "google_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988316.77119, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["google_ads", "account_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.google_ads_source.google_ads.account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/tmp/stg_google_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`google_ads`.`account_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads.apple_search_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads", "name": "apple_search_ads__ad_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__ad_report.sql", "original_file_path": "models/apple_search_ads__ad_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__ad_report", "fqn": ["apple_search_ads", "apple_search_ads__ad_report"], "alias": "apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "9be99b8581d2c85b4b11327ae3eef34d26121ed866e5762ff7f627b2c24b63a9"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1678988323.282681, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report", "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\n), \n\nad as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.apple_search_ads.apple_search_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads", "name": "apple_search_ads__ad_group_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__ad_group_report.sql", "original_file_path": "models/apple_search_ads__ad_group_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__ad_group_report", "fqn": ["apple_search_ads", "apple_search_ads__ad_group_report"], "alias": "apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "a1edd5d4e81de3dadca268c67fc1bee311cab1edc7efe48a494c7017c7acdc80"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1678988323.272371, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report`\n), \n\nad_group as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.apple_search_ads.apple_search_ads__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads", "name": "apple_search_ads__keyword_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__keyword_report.sql", "original_file_path": "models/apple_search_ads__keyword_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report", "fqn": ["apple_search_ads", "apple_search_ads__keyword_report"], "alias": "apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "91250ca8167dc8fee98582ff093d56a498b854e5c66a51325076191016bfb0e7"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1678988323.305293, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\n), \n\nkeyword as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.apple_search_ads.apple_search_ads__search_term_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads", "name": "apple_search_ads__search_term_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__search_term_report.sql", "original_file_path": "models/apple_search_ads__search_term_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__search_term_report", "fqn": ["apple_search_ads", "apple_search_ads__search_term_report"], "alias": "apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "4827d710dac6b2e632dcf3ba421a8166d719d1ae59e98128736b8689cf4039a1"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1678988323.3224819, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__search_term_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__search_term_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__search_term_report`\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.apple_search_ads.apple_search_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads", "name": "apple_search_ads__campaign_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__campaign_report.sql", "original_file_path": "models/apple_search_ads__campaign_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report", "fqn": ["apple_search_ads", "apple_search_ads__campaign_report"], "alias": "apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "d555ffbfe1f914afd50ba592ab961f1ebdb40a4d4315c0696f1c80738930080f"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1678988323.293453, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__campaign_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\n\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.apple_search_ads.apple_search_ads__organization_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads", "name": "apple_search_ads__organization_report", "resource_type": "model", "package_name": "apple_search_ads", "path": "apple_search_ads__organization_report.sql", "original_file_path": "models/apple_search_ads__organization_report.sql", "unique_id": "model.apple_search_ads.apple_search_ads__organization_report", "fqn": ["apple_search_ads", "apple_search_ads__organization_report"], "alias": "apple_search_ads__organization_report", "checksum": {"name": "sha256", "checksum": "47084fe8809edaeeda722e20590b19c6488687d05ad654b8fef4a0021088e0a2"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads", "materialized": "table", "enabled": true}, "created_at": 1678988323.3121438, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__campaign_report"], ["stg_apple_search_ads__campaign_history"], ["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads__organization_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n \n select *\n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\n), \n\ncampaign as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.ad_reporting.ad_reporting__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_ad_reporting", "name": "ad_reporting__campaign_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__campaign_report.sql", "original_file_path": "models/ad_reporting__campaign_report.sql", "unique_id": "model.ad_reporting.ad_reporting__campaign_report", "fqn": ["ad_reporting", "ad_reporting__campaign_report"], "alias": "ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "2483fb7d8542d9dea58ad86c4e2821501bf104c2f6802e7c4f74baea277ce39c"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1678988323.56586, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["int_ad_reporting__campaign_report"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__campaign_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__campaign_report as (\n\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__campaign_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__campaign_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__campaign_report\n),\n\naggregated as (\n \n select \n 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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__campaign_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__campaign_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}]}, "model.ad_reporting.ad_reporting__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_ad_reporting", "name": "ad_reporting__account_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__account_report.sql", "original_file_path": "models/ad_reporting__account_report.sql", "unique_id": "model.ad_reporting.ad_reporting__account_report", "fqn": ["ad_reporting", "ad_reporting__account_report"], "alias": "ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "7a5c7e7a4d03a8a074b5e23154de600f7dfa06931055665906e407e2eaad8a8a"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1678988323.548064, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["int_ad_reporting__account_report"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__account_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__account_report as (\n\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__account_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__account_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__account_report\n),\n\naggregated as (\n \n select \n 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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__account_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__account_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}]}, "model.ad_reporting.ad_reporting__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_ad_reporting", "name": "ad_reporting__ad_group_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__ad_group_report.sql", "original_file_path": "models/ad_reporting__ad_group_report.sql", "unique_id": "model.ad_reporting.ad_reporting__ad_group_report", "fqn": ["ad_reporting", "ad_reporting__ad_group_report"], "alias": "ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "fe93b1aa6e8cc66827b9b6ed209113e7af61fa090c025adc18a657278c4fc15b"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1678988323.5537531, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["int_ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_group_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__ad_group_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(ad_squad_id as STRING) as ad_group_id \n ,cast(ad_squad_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_group_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_group_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__ad_group_report\n),\n\naggregated as (\n \n select \n 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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(ad_squad_id as STRING) as ad_group_id \n ,cast(ad_squad_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_group_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_group_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}]}, "model.ad_reporting.ad_reporting__search_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_ad_reporting", "name": "ad_reporting__search_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__search_report.sql", "original_file_path": "models/ad_reporting__search_report.sql", "unique_id": "model.ad_reporting.ad_reporting__search_report", "fqn": ["ad_reporting", "ad_reporting__search_report"], "alias": "ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "6bc6ff01c66a8e32bcedc6a6f3f8429bc445c65f6bd18ed2ee4813ddb065fb2b"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1678988323.58013, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__search_report`", "raw_code": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['amazon_ads', 'apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', 'microsoft_ads'] %}\n{% endif %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__search_report') }}\n),\n\naggregated as (\n \n select \n 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", "refs": [["int_ad_reporting__search_report"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__search_report.sql", "compiled": true, "compiled_code": "\n \n\n\n\n\n\nwith __dbt__cte__int_ad_reporting__search_report as (\n\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_name as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_query as STRING) as search_query \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_term_text as STRING) as search_query \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_term as STRING) as search_query \n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__search_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__search_report\n),\n\naggregated as (\n \n select \n 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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_name as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_query as STRING) as search_query \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_term_text as STRING) as search_query \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_term as STRING) as search_query \n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__search_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}]}, "model.ad_reporting.ad_reporting__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_ad_reporting", "name": "ad_reporting__ad_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__ad_report.sql", "original_file_path": "models/ad_reporting__ad_report.sql", "unique_id": "model.ad_reporting.ad_reporting__ad_report", "fqn": ["ad_reporting", "ad_reporting__ad_report"], "alias": "ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "87a1850a3d333ed329ac0fe5fe08fe66b351da3b7eac0ed33af0b0737af6b057"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1678988323.560407, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["int_ad_reporting__ad_report"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__ad_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__ad_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(creative_id as STRING) as ad_id \n ,cast(null as STRING) as ad_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(pin_promotion_id as STRING) as ad_id \n ,cast(pin_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(null as STRING) as ad_group_id \n ,cast(null as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(null as STRING) as campaign_id \n ,cast(null as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(promoted_tweet_id as STRING) as ad_id \n ,cast(tweet_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(advertised_asin as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__ad_report\n),\n\naggregated as (\n \n select \n 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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(creative_id as STRING) as ad_id \n ,cast(null as STRING) as ad_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(pin_promotion_id as STRING) as ad_id \n ,cast(pin_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(null as STRING) as ad_group_id \n ,cast(null as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(null as STRING) as campaign_id \n ,cast(null as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(promoted_tweet_id as STRING) as ad_id \n ,cast(tweet_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(advertised_asin as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}]}, "model.ad_reporting.ad_reporting__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_ad_reporting", "name": "ad_reporting__url_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__url_report.sql", "original_file_path": "models/ad_reporting__url_report.sql", "unique_id": "model.ad_reporting.ad_reporting__url_report", "fqn": ["ad_reporting", "ad_reporting__url_report"], "alias": "ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "0df96babf636b0d123d5368bd60ec0f6447614786299fdc3705d5fabb6fb8686"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1678988323.5895832, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__url_report`", "raw_code": "{% set enabled_packages = get_enabled_packages(exclude=['amazon_ads', 'apple_search_ads']) %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith base as (\n\n select *\n from {{ ref('int_ad_reporting__url_report') }}\n),\n\naggregated as (\n \n select \n 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", "refs": [["int_ad_reporting__url_report"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__url_report.sql", "compiled": true, "compiled_code": "\n\n\nwith __dbt__cte__int_ad_reporting__url_report as (\n\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(ad_squad_id as STRING) as ad_group_id \n ,cast(ad_squad_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__url_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__url_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__url_report\n),\n\naggregated as (\n \n select \n 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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(ad_squad_id as STRING) as ad_group_id \n ,cast(ad_squad_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__url_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__url_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}]}, "model.ad_reporting.ad_reporting__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_ad_reporting", "name": "ad_reporting__keyword_report", "resource_type": "model", "package_name": "ad_reporting", "path": "ad_reporting__keyword_report.sql", "original_file_path": "models/ad_reporting__keyword_report.sql", "unique_id": "model.ad_reporting.ad_reporting__keyword_report", "fqn": ["ad_reporting", "ad_reporting__keyword_report"], "alias": "ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "19712b5731c1c125a6a6940b48c1b72255d30ad165ceb8be94d17e0af110c044"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "ad_reporting", "enabled": true}, "created_at": 1678988323.572774, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__keyword_report`", "raw_code": "{% if var('twitter_ads__using_keywords', True) %}\n {% set include_list = ['amazon_ads', 'apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', '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", "refs": [["int_ad_reporting__keyword_report"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting__keyword_report.sql", "compiled": true, "compiled_code": "\n \n\n\n\n\n\nwith __dbt__cte__int_ad_reporting__keyword_report as (\n\n \n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(criterion_id as STRING) as keyword_id \n ,cast(keyword_match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_name as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_value as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__keyword_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(null as STRING) as keyword_match_type \n ,cast(keyword as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__keyword_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__keyword_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n),base as (\n\n select *\n from __dbt__cte__int_ad_reporting__keyword_report\n),\n\naggregated as (\n \n select \n 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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(criterion_id as STRING) as keyword_id \n ,cast(keyword_match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_name as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_value as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__keyword_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(null as STRING) as keyword_match_type \n ,cast(keyword as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__keyword_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__keyword_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned\n)"}]}, "model.ad_reporting.int_ad_reporting__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_int_ad_reporting", "name": "int_ad_reporting__campaign_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__campaign_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__campaign_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__campaign_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__campaign_report"], "alias": "int_ad_reporting__campaign_report", "checksum": {"name": "sha256", "checksum": "fa96bcb55ec7c848acb1ee90f5026164682349b38262b9fa4b3b0f56803c0851"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1678988317.157554, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['twitter_ads', 'facebook_ads', 'google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='campaign',\n relation=ref(package ~ '__campaign_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps'\n },\n relation=ref('apple_search_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='campaign', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'spend': 'cost'\n },\n relation=ref('linkedin_ads__campaign_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('pinterest_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'clicks':'swipes'\n },\n relation=ref('snapchat_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='campaign', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('tiktok_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='campaign', \n field_mapping={\n 'spend': 'cost'\n },\n relation=ref('amazon_ads__campaign_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='campaign', \n field_mapping={\n 'account_name': 'null'\n },\n relation=ref('reddit_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [["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"], ["amazon_ads__campaign_report"], ["reddit_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report", "model.facebook_ads.facebook_ads__campaign_report", "model.google_ads.google_ads__campaign_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.pinterest.pinterest_ads__campaign_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.amazon_ads.amazon_ads__campaign_report", "model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__campaign_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__campaign_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__campaign_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__campaign_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": []}, "model.ad_reporting.int_ad_reporting__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_int_ad_reporting", "name": "int_ad_reporting__keyword_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__keyword_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__keyword_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__keyword_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__keyword_report"], "alias": "int_ad_reporting__keyword_report", "checksum": {"name": "sha256", "checksum": "29b788469d109e4a6a03f5c5ed31ad693712c1f0e4bae524c9ed3271924f133d"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1678988317.255507, "relation_name": null, "raw_code": "{% if var('twitter_ads__using_keywords', True) %}\n {% set include_list = ['amazon_ads', 'apple_search_ads', 'google_ads', 'microsoft_ads', 'pinterest_ads', 'twitter_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', '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': 'keyword_id',\n 'keyword_text': 'keyword',\n 'keyword_match_type': 'null'\n },\n relation=ref('twitter_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='keyword', \n field_mapping={\n 'spend': 'cost',\n 'keyword_match_type': 'match_type'\n },\n relation=ref('amazon_ads__keyword_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [["apple_search_ads__keyword_report"], ["google_ads__keyword_report"], ["microsoft_ads__keyword_report"], ["pinterest_ads__keyword_report"], ["twitter_ads__keyword_report"], ["amazon_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report", "model.google_ads.google_ads__keyword_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.pinterest.pinterest_ads__keyword_report", "model.twitter_ads.twitter_ads__keyword_report", "model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__keyword_report.sql", "compiled": true, "compiled_code": "\n \n\n\n\n\n\nwith\n\napple_search_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'apple_search_ads' as STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(criterion_id as STRING) as keyword_id \n ,cast(keyword_match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_name as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_value as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__keyword_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(null as STRING) as keyword_match_type \n ,cast(keyword as STRING) as keyword_text \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__keyword_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(match_type as STRING) as keyword_match_type \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__keyword_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from twitter_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": []}, "model.ad_reporting.int_ad_reporting__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_int_ad_reporting", "name": "int_ad_reporting__ad_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__ad_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__ad_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_report"], "alias": "int_ad_reporting__ad_report", "checksum": {"name": "sha256", "checksum": "540cec6af930e2a24dbf60c4d4114bf17e543797bc7fd909329e4be917d869a4"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1678988317.313341, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='ad',\n relation=ref(package ~ '__ad_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps'\n },\n relation=ref('apple_search_ads__ad_report')\n ) }}\n),\n{% endif %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='ad', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__ad_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='ad', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'ad_id': 'creative_id',\n 'ad_name': 'null',\n 'spend': 'cost'\n },\n relation=ref('linkedin_ads__creative_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name',\n 'ad_id': 'pin_promotion_id',\n 'ad_name': 'pin_name'\n },\n relation=ref('pinterest_ads__pin_promotion_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'campaign_id': 'null',\n 'campaign_name': 'null',\n 'ad_group_id': 'null',\n 'ad_group_name': 'null',\n 'clicks':'swipes'\n },\n relation=ref('snapchat_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='ad', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('tiktok_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='ad', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name',\n 'ad_id': 'promoted_tweet_id',\n 'ad_name': 'tweet_name'\n },\n relation=ref('twitter_ads__promoted_tweet_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='ad', \n field_mapping={\n 'spend': 'cost',\n 'ad_name': 'advertised_asin'\n },\n relation=ref('amazon_ads__ad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='ad', \n field_mapping={\n 'account_name': 'null'\n },\n relation=ref('reddit_ads__ad_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [["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"], ["amazon_ads__ad_report"], ["reddit_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__ad_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.facebook_ads.facebook_ads__ad_report", "model.linkedin.linkedin_ads__creative_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.amazon_ads.amazon_ads__ad_report", "model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(creative_id as STRING) as ad_id \n ,cast(null as STRING) as ad_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(pin_promotion_id as STRING) as ad_id \n ,cast(pin_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(null as STRING) as ad_group_id \n ,cast(null as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(null as STRING) as campaign_id \n ,cast(null as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(promoted_tweet_id as STRING) as ad_id \n ,cast(tweet_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__promoted_tweet_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(advertised_asin as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(ad_id as STRING) as ad_id \n ,cast(ad_name as STRING) as ad_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": []}, "model.ad_reporting.int_ad_reporting__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_int_ad_reporting", "name": "int_ad_reporting__account_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__account_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__account_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__account_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__account_report"], "alias": "int_ad_reporting__account_report", "checksum": {"name": "sha256", "checksum": "7c78606eeac98c9cb1f523e081c71330ef2d067c6c3d4ec8a9619bf6f1bb696c"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1678988317.3989398, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['twitter_ads', 'facebook_ads', 'google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='account',\n relation=ref(package ~ '__account_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps'\n },\n relation=ref('apple_search_ads__organization_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='account', \n field_mapping={\n 'spend': 'cost'\n },\n relation=ref('linkedin_ads__account_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('pinterest_ads__advertiser_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'clicks':'swipes'\n },\n relation=ref('snapchat_ads__account_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='account', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('tiktok_ads__advertiser_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='account', \n field_mapping={\n 'spend': 'cost'\n },\n relation=ref('amazon_ads__account_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='account', \n field_mapping={\n 'account_name': 'null'\n },\n relation=ref('reddit_ads__account_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [["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"], ["amazon_ads__account_report"], ["reddit_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.twitter_ads.twitter_ads__account_report", "model.facebook_ads.facebook_ads__account_report", "model.google_ads.google_ads__account_report", "model.microsoft_ads.microsoft_ads__account_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.linkedin.linkedin_ads__account_report", "model.pinterest.pinterest_ads__advertiser_report", "model.snapchat_ads.snapchat_ads__account_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.amazon_ads.amazon_ads__account_report", "model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__account_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ntwitter_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'twitter_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__advertiser_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__account_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__account_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": []}, "model.ad_reporting.int_ad_reporting__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_int_ad_reporting", "name": "int_ad_reporting__url_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__url_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__url_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__url_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__url_report"], "alias": "int_ad_reporting__url_report", "checksum": {"name": "sha256", "checksum": "e174558a546f62bc92e0c9395b4c1d6c99185a3192f4978110e47338674af6c0"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1678988317.457118, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages(exclude=['amazon_ads', 'apple_search_ads']) %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='url',\n relation=ref(package ~ '__url_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='url', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='url', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'spend': 'cost'\n },\n relation=ref('linkedin_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('pinterest_ads__url_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'ad_group_id': 'ad_squad_id',\n 'ad_group_name': 'ad_squad_name',\n 'clicks':'swipes'\n },\n relation=ref('snapchat_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='url', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('tiktok_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='url', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name'\n },\n relation=ref('twitter_ads__url_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='url', \n field_mapping={\n 'account_name': 'null'\n },\n relation=ref('reddit_ads__url_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [["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"], ["reddit_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__url_report", "model.microsoft_ads.microsoft_ads__url_report", "model.facebook_ads.facebook_ads__url_report", "model.linkedin.linkedin_ads__url_report", "model.pinterest.pinterest_ads__url_report", "model.snapchat_ads.snapchat_ads__url_report", "model.tiktok_ads.tiktok_ads__url_report", "model.twitter_ads.twitter_ads__url_report", "model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__url_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(ad_squad_id as STRING) as ad_group_id \n ,cast(ad_squad_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__url_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(base_url as STRING) as base_url \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n ,cast(url_host as STRING) as url_host \n ,cast(url_path as STRING) as url_path \n ,cast(utm_campaign as STRING) as utm_campaign \n ,cast(utm_content as STRING) as utm_content \n ,cast(utm_medium as STRING) as utm_medium \n ,cast(utm_source as STRING) as utm_source \n ,cast(utm_term as STRING) as utm_term \n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__url_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": []}, "model.ad_reporting.int_ad_reporting__search_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_int_ad_reporting", "name": "int_ad_reporting__search_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__search_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__search_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__search_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__search_report"], "alias": "int_ad_reporting__search_report", "checksum": {"name": "sha256", "checksum": "c54a943cafae9d0d7576cb97fdd93653f099b36133aa3a2ff454c1f0039d279c"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1678988317.550642, "relation_name": null, "raw_code": "{% if var('apple_search_ads__using_search_terms', True) %}\n {% set include_list = ['amazon_ads', 'apple_search_ads', 'microsoft_ads'] %}\n{% else %}\n {% set include_list = ['amazon_ads', 'microsoft_ads'] %}\n{% endif %}\n\n{% set enabled_packages = get_enabled_packages(include=include_list)%}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith \n{% if 'microsoft_ads' in enabled_packages %}\nmicrosoft_ads as (\n\n {{ get_query(\n platform='microsoft_ads', \n report_type='search', \n field_mapping={\n 'keyword_text': 'keyword_name',\n 'search_match_type': 'match_type'\n },\n relation=ref('microsoft_ads__search_report')\n ) }}\n), \n{% endif %}\n\n{% if 'apple_search_ads' in enabled_packages and var('apple_search_ads__using_search_terms', True) %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='search', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'search_match_type': 'match_type',\n 'search_query': 'search_term_text',\n 'clicks': 'taps'\n },\n relation=ref('apple_search_ads__search_term_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='search', \n field_mapping={\n 'spend': 'cost',\n 'search_match_type': 'match_type',\n 'search_query': 'search_term'\n },\n relation=ref('amazon_ads__search_report')\n ) }}\n), \n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [["microsoft_ads__search_report"], ["apple_search_ads__search_term_report"], ["amazon_ads__search_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report", "model.apple_search_ads.apple_search_ads__search_term_report", "model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__search_report.sql", "compiled": true, "compiled_code": "\n \n\n\n\n\n\nwith \n\nmicrosoft_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'microsoft_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_name as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_query as STRING) as search_query \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_term_text as STRING) as search_query \n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__search_term_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(keyword_id as STRING) as keyword_id \n ,cast(keyword_text as STRING) as keyword_text \n ,cast(match_type as STRING) as search_match_type \n ,cast(search_term as STRING) as search_query \n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__search_report`\n\n), \n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from microsoft_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": []}, "model.ad_reporting.int_ad_reporting__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_int_ad_reporting", "name": "int_ad_reporting__ad_group_report", "resource_type": "model", "package_name": "ad_reporting", "path": "intermediate/int_ad_reporting__ad_group_report.sql", "original_file_path": "models/intermediate/int_ad_reporting__ad_group_report.sql", "unique_id": "model.ad_reporting.int_ad_reporting__ad_group_report", "fqn": ["ad_reporting", "intermediate", "int_ad_reporting__ad_group_report"], "alias": "int_ad_reporting__ad_group_report", "checksum": {"name": "sha256", "checksum": "8020b2e69bd0f228a2f3c63c5e9aaa01116863ac9c1c1c89ef33f0a4df48606c"}, "config": {"enabled": true, "alias": null, "schema": "int_ad_reporting", "database": null, "tags": [], "meta": {}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "ephemeral", "schema": "int_ad_reporting", "enabled": true}, "created_at": 1678988317.581026, "relation_name": null, "raw_code": "{% set enabled_packages = get_enabled_packages() %}\n{{ config(enabled=is_enabled(enabled_packages)) }}\n\nwith\n{% for package in ['google_ads', 'microsoft_ads'] %}\n{% if package in enabled_packages %}\n{{ package }} as (\n {{ get_query(\n platform=package,\n report_type='ad_group',\n relation=ref(package ~ '__ad_group_report')\n ) }}\n),\n{% endif %}\n{% endfor %}\n\n{% if 'apple_search_ads' in enabled_packages %}\napple_search_ads as (\n\n {{ get_query(\n platform='apple_search_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'organization_id',\n 'account_name': 'organization_name',\n 'clicks': 'taps'\n },\n relation=ref('apple_search_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'linkedin_ads' in enabled_packages %}\nlinkedin_ads as (\n\n {{ get_query(\n platform='linkedin_ads', \n report_type='ad_group', \n field_mapping={\n 'campaign_id': 'campaign_group_id',\n 'campaign_name': 'campaign_group_name',\n 'ad_group_id': 'campaign_id',\n 'ad_group_name': 'campaign_name',\n 'spend': 'cost'\n },\n relation=ref('linkedin_ads__campaign_report')\n ) }}\n),\n{% endif %}\n\n{% if 'facebook_ads' in enabled_packages %}\nfacebook_ads as (\n\n {{ get_query(\n platform='facebook_ads', \n report_type='ad_group', \n field_mapping={\n 'ad_group_id': 'ad_set_id',\n 'ad_group_name': 'ad_set_name'\n },\n relation=ref('facebook_ads__ad_set_report')\n ) }}\n),\n{% endif %}\n\n{% if 'pinterest_ads' in enabled_packages %}\npinterest_ads as (\n\n {{ get_query(\n platform='pinterest_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('pinterest_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\n{% if 'snapchat_ads' in enabled_packages %}\nsnapchat_ads as (\n\n {{ get_query(\n platform='snapchat_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'ad_account_id',\n 'account_name': 'ad_account_name',\n 'ad_group_id': 'ad_squad_id',\n 'ad_group_name': 'ad_squad_name',\n 'clicks':'swipes'\n },\n relation=ref('snapchat_ads__ad_squad_report')\n ) }}\n), \n{% endif %}\n\n{% if 'tiktok_ads' in enabled_packages %}\ntiktok_ads as (\n\n {{ get_query(\n platform='tiktok_ads', \n report_type='ad_group', \n field_mapping={\n 'account_id': 'advertiser_id',\n 'account_name': 'advertiser_name'\n },\n relation=ref('tiktok_ads__ad_group_report')\n ) }}\n), \n{% endif %}\n\n{% if 'twitter_ads' in enabled_packages %}\ntwitter_ads as (\n\n {{ get_query(\n platform='twitter_ads', \n report_type='ad_group', \n field_mapping={\n 'ad_group_id': 'line_item_id',\n 'ad_group_name': 'line_item_name'\n },\n relation=ref('twitter_ads__line_item_report')\n ) }}\n), \n{% endif %}\n\n{% if 'amazon_ads' in enabled_packages %}\namazon_ads as (\n\n {{ get_query(\n platform='amazon_ads', \n report_type='ad_group', \n field_mapping={\n 'spend': 'cost'\n },\n relation=ref('amazon_ads__ad_group_report')\n ) }}\n), \n{% endif %}\n\n{% if 'reddit_ads' in enabled_packages %}\nreddit_ads as (\n\n {{ get_query(\n platform='reddit_ads', \n report_type='ad_group', \n field_mapping={\n 'account_name': 'null'\n },\n relation=ref('reddit_ads__ad_group_report')\n ) }}\n),\n{% endif %}\n\nunioned as (\n\n {{ union_ctes(ctes=enabled_packages)}}\n)\n\nselect *\nfrom unioned", "language": "sql", "refs": [["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"], ["amazon_ads__ad_group_report"], ["reddit_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.ad_reporting.get_enabled_packages", "macro.ad_reporting.is_enabled", "macro.ad_reporting.get_query", "macro.ad_reporting.union_ctes"], "nodes": ["model.google_ads.google_ads__ad_group_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.pinterest.pinterest_ads__ad_group_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.tiktok_ads.tiktok_ads__ad_group_report", "model.twitter_ads.twitter_ads__line_item_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/intermediate/int_ad_reporting__ad_group_report.sql", "compiled": true, "compiled_code": "\n\n\nwith\n\n\ngoogle_ads as (\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'google_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(organization_id as STRING) as account_id \n ,cast(organization_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(taps as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(campaign_id as STRING) as ad_group_id \n ,cast(campaign_name as STRING) as ad_group_name \n ,cast(campaign_group_id as STRING) as campaign_id \n ,cast(campaign_group_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_set_id as STRING) as ad_group_id \n ,cast(ad_set_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(ad_account_id as STRING) as account_id \n ,cast(ad_account_name as STRING) as account_name \n ,cast(ad_squad_id as STRING) as ad_group_id \n ,cast(ad_squad_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(swipes as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(advertiser_id as STRING) as account_id \n ,cast(advertiser_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_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 STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(line_item_id as STRING) as ad_group_id \n ,cast(line_item_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__line_item_report`\n\n), \n\n\n\namazon_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'amazon_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(account_name as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(cost as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_group_report`\n\n), \n\n\n\nreddit_ads as (\n\n select \n \n\n cast(date_day as date)\n\n as date_day,\n cast( 'reddit_ads' as STRING) as platform,\n\n cast(account_id as STRING) as account_id \n ,cast(null as STRING) as account_name \n ,cast(ad_group_id as STRING) as ad_group_id \n ,cast(ad_group_name as STRING) as ad_group_name \n ,cast(campaign_id as STRING) as campaign_id \n ,cast(campaign_name as STRING) as campaign_name \n ,cast(clicks as INT64) as clicks\n\n ,cast(impressions as INT64) as impressions\n\n ,cast(spend as FLOAT64) as spend\n\n \nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_group_report`\n\n),\n\n\nunioned as (\n\n \n\n\nselect * from amazon_ads\n\nunion all\n\nselect * from apple_search_ads\n\nunion all\n\nselect * from facebook_ads\n\nunion all\n\nselect * from google_ads\n\nunion all\n\nselect * from linkedin_ads\n\nunion all\n\nselect * from microsoft_ads\n\nunion all\n\nselect * from pinterest_ads\n\nunion all\n\nselect * from snapchat_ads\n\nunion all\n\nselect * from tiktok_ads\n\nunion all\n\nselect * from twitter_ads\n\nunion all\n\nselect * from reddit_ads\n\n\n\n\n)\n\nselect *\nfrom unioned", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__campaign_history.sql", "original_file_path": "models/stg_apple_search_ads__campaign_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_history"], "alias": "stg_apple_search_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "294e54bc10f47e44786be1c445e764b49464643d75c0bf7a4fc3a38f3868e0de"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.805053, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__campaign_history_tmp"], ["stg_apple_search_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n end_time\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n modification_time\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as INT64) as \n \n organization_id\n \n , \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as STRING) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_report.sql", "original_file_path": "models/stg_apple_search_ads__ad_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_report"], "alias": "stg_apple_search_ads__ad_report", "checksum": {"name": "sha256", "checksum": "45019dc2d949eecadbbd9d4a052049a60dca00c32f726da678972fa8bdadd1f6"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.7997131, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__ad_report_tmp"], ["stg_apple_search_ads__ad_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as INT64) as \n \n ad_id\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as numeric) as \n \n local_spend_amount\n \n , \n cast(null as STRING) as \n \n local_spend_currency\n \n , \n cast(null as INT64) as \n \n new_downloads\n \n , \n cast(null as INT64) as \n \n redownloads\n \n , \n cast(null as INT64) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__campaign_report.sql", "original_file_path": "models/stg_apple_search_ads__campaign_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__campaign_report"], "alias": "stg_apple_search_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "c4681d203c58d68501b9d2d3a84fc28598e9705eb4cc7f4496be52e3209768d3"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.810665, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__campaign_report_tmp"], ["stg_apple_search_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__campaign_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as numeric) as \n \n local_spend_amount\n \n , \n cast(null as STRING) as \n \n local_spend_currency\n \n , \n cast(null as INT64) as \n \n new_downloads\n \n , \n cast(null as INT64) as \n \n redownloads\n \n , \n cast(null as INT64) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__organization": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__organization", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__organization.sql", "original_file_path": "models/stg_apple_search_ads__organization.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__organization"], "alias": "stg_apple_search_ads__organization", "checksum": {"name": "sha256", "checksum": "24d3ee4e2d050e8ade0b3222ea535ed1837d2ea4265f00cf3f3b7b67a7a30dab"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.825548, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__organization_tmp"], ["stg_apple_search_ads__organization_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__organization.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__organization_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n currency\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n payment_model\n \n , \n cast(null as STRING) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__keyword_report.sql", "original_file_path": "models/stg_apple_search_ads__keyword_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_report"], "alias": "stg_apple_search_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "087cf73b201edc946f1b30c28096f4d513aca817fc3e510cac05f28dc781c665"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.822022, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__keyword_report_tmp"], ["stg_apple_search_ads__keyword_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__keyword_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as numeric) as \n \n local_spend_amount\n \n , \n cast(null as STRING) as \n \n local_spend_currency\n \n , \n cast(null as INT64) as \n \n new_downloads\n \n , \n cast(null as INT64) as \n \n redownloads\n \n , \n cast(null as INT64) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__keyword_history.sql", "original_file_path": "models/stg_apple_search_ads__keyword_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__keyword_history"], "alias": "stg_apple_search_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "5ee576e97a5fffaf97916376ca747fcb9389b6733d268f9b42308a8f244ade8e"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.816898, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__keyword_history_tmp"], ["stg_apple_search_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__keyword_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as numeric) as \n \n bid_amount\n \n , \n cast(null as STRING) as \n \n bid_currency\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n match_type\n \n , \n cast(null as TIMESTAMP) as \n \n modification_time\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as STRING) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__search_term_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__search_term_report.sql", "original_file_path": "models/stg_apple_search_ads__search_term_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__search_term_report"], "alias": "stg_apple_search_ads__search_term_report", "checksum": {"name": "sha256", "checksum": "6345a092b669f3283eb8b09b8590cdcf4e89da7ac486c18bb626315fac6db0e0"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.8375301, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__search_term_report_tmp"], ["stg_apple_search_ads__search_term_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.apple_search_ads_source.get_search_term_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__search_term_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__search_term_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n _fivetran_id\n \n , \n cast(null as boolean) as \n \n ad_group_deleted\n \n , \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n ad_group_name\n \n , \n cast(null as numeric) as \n \n bid_amount_amount\n \n , \n cast(null as STRING) as \n \n bid_amount_currency\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as boolean) as \n \n deleted\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n keyword\n \n , \n cast(null as STRING) as \n \n keyword_display_status\n \n , \n cast(null as INT64) as \n \n keyword_id\n \n , \n cast(null as numeric) as \n \n local_spend_amount\n \n , \n cast(null as STRING) as \n \n local_spend_currency\n \n , \n cast(null as STRING) as \n \n match_type\n \n , \n cast(null as INT64) as \n \n new_downloads\n \n , \n cast(null as INT64) as \n \n redownloads\n \n , \n cast(null as STRING) as \n \n search_term_source\n \n , \n cast(null as STRING) as \n \n search_term_text\n \n , \n cast(null as INT64) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_group_history.sql", "original_file_path": "models/stg_apple_search_ads__ad_group_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_history"], "alias": "stg_apple_search_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "b2081179706957545ca7818fd65e298a3948051372426039e2ecffd091fef371"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.782702, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__ad_group_history_tmp"], ["stg_apple_search_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_group_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n end_time\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n modification_time\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as INT64) as \n \n organization_id\n \n , \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as STRING) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__ad_history", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_history.sql", "original_file_path": "models/stg_apple_search_ads__ad_history.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_history"], "alias": "stg_apple_search_ads__ad_history", "checksum": {"name": "sha256", "checksum": "4abb76f80d87af32ba976747bb0accf3b1641854a41a3e9d8ebec94533405d23"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.793172, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__ad_history_tmp"], ["stg_apple_search_ads__ad_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n creation_time\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n modification_time\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as INT64) as \n \n org_id\n \n , \n cast(null as STRING) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_report", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "stg_apple_search_ads__ad_group_report.sql", "original_file_path": "models/stg_apple_search_ads__ad_group_report.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report", "fqn": ["apple_search_ads_source", "stg_apple_search_ads__ad_group_report"], "alias": "stg_apple_search_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "a6f8f1e79e88e2512acd90e2768436ef73939e82acd46b79c0775ba19865147d"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988323.78823, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_apple_search_ads__ad_group_report_tmp"], ["stg_apple_search_ads__ad_group_report_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_group_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n ad_group_id\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as numeric) as \n \n local_spend_amount\n \n , \n cast(null as STRING) as \n \n local_spend_currency\n \n , \n cast(null as INT64) as \n \n new_downloads\n \n , \n cast(null as INT64) as \n \n redownloads\n \n , \n cast(null as INT64) 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": []}, "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__search_term_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__search_term_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__search_term_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__search_term_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__search_term_report_tmp"], "alias": "stg_apple_search_ads__search_term_report_tmp", "checksum": {"name": "sha256", "checksum": "86f6e99ff5c0373cf5ec106d4011966278601cb5350d588466564e2dca2fa951"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.894352, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "search_term_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["source.apple_search_ads_source.apple_search_ads.search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__search_term_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`search_term_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__campaign_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_history_tmp"], "alias": "stg_apple_search_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "e23c062d3d75b890a717ab4047e5a0dccf7c098b3927935df02f76c17acb3ea7"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.906914, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__keyword_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_history_tmp"], "alias": "stg_apple_search_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "852fa9ece91c72dd36f654ce0d71f2af4a1707385c0fa00e3d68e206e4ac456b"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.918259, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`keyword_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_history_tmp"], "alias": "stg_apple_search_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "69317b26b7a3c109c0e5e61d7fdad053cb0549479a0dfdacd0d67ff0757cc97e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.930083, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`ad_group_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_group_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_group_report_tmp"], "alias": "stg_apple_search_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "91089253c95dee7d0aea3f9b8cc49cf343c2d06acf0de36641ebaef03e1d2b1b"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.941516, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`ad_group_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__ad_history_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_history_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_history_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_history_tmp"], "alias": "stg_apple_search_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "7b184af2299b7d42defa4606467cf9bf379e10cec768bf1e5825c040dbdfacb8"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.9538481, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`ad_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__campaign_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__campaign_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__campaign_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__campaign_report_tmp"], "alias": "stg_apple_search_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "ae8d95be0097305356d0ba251d324d35bbe367edcf342c958f69fea9f89625f2"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.965975, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`campaign_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__organization_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__organization_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__organization_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__organization_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__organization_tmp"], "alias": "stg_apple_search_ads__organization_tmp", "checksum": {"name": "sha256", "checksum": "4a62af784e819ec6034aa89fe16019f027c9994b192426e70bcf18bda3d117a9"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.977648, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "organization"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__organization_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`organization`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__keyword_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__keyword_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__keyword_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__keyword_report_tmp"], "alias": "stg_apple_search_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "5009b770850f4f2648d5498a78b1491e6a44250d9ac2d7c08c249e8624f517f2"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988317.989303, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "keyword_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`keyword_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_apple_search_ads_source", "name": "stg_apple_search_ads__ad_report_tmp", "resource_type": "model", "package_name": "apple_search_ads_source", "path": "tmp/stg_apple_search_ads__ad_report_tmp.sql", "original_file_path": "models/tmp/stg_apple_search_ads__ad_report_tmp.sql", "unique_id": "model.apple_search_ads_source.stg_apple_search_ads__ad_report_tmp", "fqn": ["apple_search_ads_source", "tmp", "stg_apple_search_ads__ad_report_tmp"], "alias": "stg_apple_search_ads__ad_report_tmp", "checksum": {"name": "sha256", "checksum": "1744a47e20045a53726079456f5aba358e0292dd8a14d670e6ab7b2c30ece7ee"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "apple_search_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.002662, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["apple_search_ads", "ad_level_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.apple_search_ads_source.apple_search_ads.ad_level_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/tmp/stg_apple_search_ads__ad_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`apple_search_ads`.`ad_level_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__pin_promotion_history.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_history"], "alias": "stg_pinterest_ads__pin_promotion_history", "checksum": {"name": "sha256", "checksum": "e24e7b799bab5b8e676d2cd221c948f13063c4ac00fe3a6bdfe459413bb1a404"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.149578, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_pinterest_ads__pin_promotion_history_tmp"], ["stg_pinterest_ads__pin_promotion_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__pin_promotion_history_tmp`\n), \n\nfields as (\n\n select\n\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n android_deep_link\n \n , \n cast(null as STRING) as \n \n click_tracking_url\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as STRING) as \n \n creative_type\n \n , \n cast(null as STRING) as \n \n destination_url\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n ios_deep_link\n \n , \n cast(null as boolean) as \n \n is_pin_deleted\n \n , \n cast(null as boolean) as \n \n is_removable\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n pin_id\n \n , \n cast(null as STRING) as \n \n review_status\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as TIMESTAMP) as \n \n updated_time\n \n , \n cast(null as STRING) as \n \n view_tracking_url\n \n \n\n\n 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 STRING)\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 STRING)\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": []}, "model.pinterest_source.stg_pinterest_ads__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__keyword_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__keyword_report.sql", "original_file_path": "models/stg_pinterest_ads__keyword_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_report"], "alias": "stg_pinterest_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "041972aec2c8e0b6e3655d0c2c13ff2d06dd8569a75a835ea881824a3c07dcca"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.189104, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n keyword_id,\n pin_promotion_id,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__keyword_report_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_pinterest_ads__keyword_report_tmp"], ["stg_pinterest_ads__keyword_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_keyword_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__keyword_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n ad_group_name\n \n , \n cast(null as STRING) as \n \n ad_group_status\n \n , \n cast(null as STRING) as \n \n advertiser_id\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clickthrough_1\n \n , \n cast(null as INT64) as \n \n clickthrough_2\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impression_1\n \n , \n cast(null as INT64) as \n \n impression_2\n \n , \n cast(null as STRING) as \n \n keyword_id\n \n , \n cast(null as STRING) as \n \n pin_promotion_id\n \n , \n cast(null as INT64) 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": []}, "model.pinterest_source.stg_pinterest_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__ad_group_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__ad_group_report.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_report"], "alias": "stg_pinterest_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "9617b510c122f03795bf8c8e2978d343fd8ea7a3bc11d4d687c91869e309143f"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.160201, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n ad_group_id,\n ad_group_name,\n ad_group_status,\n campaign_id,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__ad_group_report_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_pinterest_ads__ad_group_report_tmp"], ["stg_pinterest_ads__ad_group_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_ad_group_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__ad_group_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n ad_group_name\n \n , \n cast(null as STRING) as \n \n ad_group_status\n \n , \n cast(null as STRING) as \n \n advertiser_id\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clickthrough_1\n \n , \n cast(null as INT64) as \n \n clickthrough_2\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impression_1\n \n , \n cast(null as INT64) as \n \n impression_2\n \n , \n cast(null as INT64) 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": []}, "model.pinterest_source.stg_pinterest_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__campaign_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__campaign_history.sql", "original_file_path": "models/stg_pinterest_ads__campaign_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_history"], "alias": "stg_pinterest_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "945f535a560d134e94225647469d1cfbe295ed547b84be7af6575b9d86d4baa0"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.139076, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_pinterest_ads__campaign_history_tmp"], ["stg_pinterest_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__campaign_history_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n advertiser_id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) 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": []}, "model.pinterest_source.stg_pinterest_ads__advertiser_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__advertiser_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__advertiser_report.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_report"], "alias": "stg_pinterest_ads__advertiser_report", "checksum": {"name": "sha256", "checksum": "870b2eac0c7dc5686b5b7cc39c6d07f31f8d6f9d6cbc84ae0ee4cf6c2f5b20b8"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.170468, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__advertiser_report_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_pinterest_ads__advertiser_report_tmp"], ["stg_pinterest_ads__advertiser_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_advertiser_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__advertiser_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n advertiser_id\n \n , \n cast(null as INT64) as \n \n clickthrough_1\n \n , \n cast(null as INT64) as \n \n clickthrough_2\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impression_1\n \n , \n cast(null as INT64) as \n \n impression_2\n \n , \n cast(null as INT64) 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": []}, "model.pinterest_source.stg_pinterest_ads__advertiser_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__advertiser_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__advertiser_history.sql", "original_file_path": "models/stg_pinterest_ads__advertiser_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history", "fqn": ["pinterest_source", "stg_pinterest_ads__advertiser_history"], "alias": "stg_pinterest_ads__advertiser_history", "checksum": {"name": "sha256", "checksum": "c373922dcac412d7b7290ec100cdf341ca19176968c29f240be32e7acd0ca7d9"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.16727, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_pinterest_ads__advertiser_history_tmp"], ["stg_pinterest_ads__advertiser_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__advertiser_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__advertiser_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n billing_profile_status\n \n , \n cast(null as STRING) as \n \n billing_type\n \n , \n cast(null as STRING) as \n \n country\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as STRING) as \n \n currency\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n merchant_id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n owner_user_id\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as TIMESTAMP) 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": []}, "model.pinterest_source.stg_pinterest_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__campaign_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__campaign_report.sql", "original_file_path": "models/stg_pinterest_ads__campaign_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report", "fqn": ["pinterest_source", "stg_pinterest_ads__campaign_report"], "alias": "stg_pinterest_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "d329a85922efac69ec814a21b6650f97f0c4658550fb9d345d38c7ba5bfa69bc"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.174827, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n campaign_id,\n campaign_name,\n campaign_status,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__campaign_report_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_pinterest_ads__campaign_report_tmp"], ["stg_pinterest_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__campaign_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n advertiser_id\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as STRING) as \n \n campaign_name\n \n , \n cast(null as STRING) as \n \n campaign_status\n \n , \n cast(null as INT64) as \n \n clickthrough_1\n \n , \n cast(null as INT64) as \n \n clickthrough_2\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impression_1\n \n , \n cast(null as INT64) as \n \n impression_2\n \n , \n cast(null as INT64) 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": []}, "model.pinterest_source.stg_pinterest_ads__keyword_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__keyword_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__keyword_history.sql", "original_file_path": "models/stg_pinterest_ads__keyword_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history", "fqn": ["pinterest_source", "stg_pinterest_ads__keyword_history"], "alias": "stg_pinterest_ads__keyword_history", "checksum": {"name": "sha256", "checksum": "8b3313f6551f5e5a8929436411869bcd40e86fdcf8093d1158ac4ccbb75a063d"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.182587, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_pinterest_ads__keyword_history_tmp"], ["stg_pinterest_ads__keyword_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__keyword_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__keyword_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n advertiser_id\n \n , \n cast(null as boolean) as \n \n archived\n \n , \n cast(null as INT64) as \n \n bid\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n match_type\n \n , \n cast(null as STRING) as \n \n parent_type\n \n , \n cast(null as STRING) 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": []}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__pin_promotion_report.sql", "original_file_path": "models/stg_pinterest_ads__pin_promotion_report.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report", "fqn": ["pinterest_source", "stg_pinterest_ads__pin_promotion_report"], "alias": "stg_pinterest_ads__pin_promotion_report", "checksum": {"name": "sha256", "checksum": "8399848dccc00c25a8bc40f817330fe92ac295b3afdb9742d663200a25a0fdc0"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.154458, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n pin_promotion_id,\n ad_group_id,\n campaign_id,\n advertiser_id,\n coalesce(impression_1,0) + coalesce(impression_2,0) as impressions,\n coalesce(clickthrough_1,0) + coalesce(clickthrough_2,0) as clicks,\n spend_in_micro_dollar / 1000000.0 as spend\n\n {{ fivetran_utils.fill_pass_through_columns('pinterest__pin_promotion_report_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_pinterest_ads__pin_promotion_report_tmp"], ["stg_pinterest_ads__pin_promotion_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.pinterest_source.get_pin_promotion_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__pin_promotion_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__pin_promotion_report_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_group_id\n \n , \n cast(null as STRING) as \n \n advertiser_id\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as numeric) as \n \n clickthrough_1\n \n , \n cast(null as numeric) as \n \n clickthrough_2\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as numeric) as \n \n impression_1\n \n , \n cast(null as numeric) as \n \n impression_2\n \n , \n cast(null as STRING) as \n \n pin_promotion_id\n \n , \n cast(null as numeric) 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": []}, "model.pinterest_source.stg_pinterest_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__ad_group_history", "resource_type": "model", "package_name": "pinterest_source", "path": "stg_pinterest_ads__ad_group_history.sql", "original_file_path": "models/stg_pinterest_ads__ad_group_history.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history", "fqn": ["pinterest_source", "stg_pinterest_ads__ad_group_history"], "alias": "stg_pinterest_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "3fc611eb025a550beebacb144b8fd5b95070cc7d212cdc73029b5e2132272902"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.134324, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_pinterest_ads__ad_group_history_tmp"], ["stg_pinterest_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__ad_group_history_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as TIMESTAMP) as \n \n end_time\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as STRING) 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": []}, "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__advertiser_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_history_tmp"], "alias": "stg_pinterest_ads__advertiser_history_tmp", "checksum": {"name": "sha256", "checksum": "30228e737c74f3502de539edf195e6ac0f1bc20d81b4625f2a7d38b7b444e025"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.411408, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "advertiser_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`pinterest_ads`.`advertiser_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_report_tmp"], "alias": "stg_pinterest_ads__pin_promotion_report_tmp", "checksum": {"name": "sha256", "checksum": "055e6b22a0ebf3ae5ebc592a2d59fde23e9c4aa97307e7bc9d07fdd564d29318"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.421325, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "pin_promotion_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`pinterest_ads`.`pin_promotion_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__campaign_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_report_tmp"], "alias": "stg_pinterest_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "297b62832ce1e1cf4ec432c98f64696ae82b6d5461ba9a6991f9143d8680600e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.4306931, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`pinterest_ads`.`campaign_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__advertiser_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__advertiser_report_tmp"], "alias": "stg_pinterest_ads__advertiser_report_tmp", "checksum": {"name": "sha256", "checksum": "51f6279568da2b328c230e1141b82a8d4cf23f0db1d71797da244ba0f850f80c"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.441834, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "advertiser_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__advertiser_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`pinterest_ads`.`advertiser_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__keyword_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_report_tmp"], "alias": "stg_pinterest_ads__keyword_report_tmp", "checksum": {"name": "sha256", "checksum": "8d5de2659df4d8c7f106988e098aad658de1e0df637686bc39641dbfd58528ab"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.451678, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "keyword_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`pinterest_ads`.`keyword_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__ad_group_report_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_report_tmp"], "alias": "stg_pinterest_ads__ad_group_report_tmp", "checksum": {"name": "sha256", "checksum": "416b2ba76c7422ae9d0cc9027cfda76b1461ead0158a8cc3d7bcec5765fa7fa4"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.460973, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "ad_group_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`pinterest_ads`.`ad_group_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__keyword_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__keyword_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__keyword_history_tmp"], "alias": "stg_pinterest_ads__keyword_history_tmp", "checksum": {"name": "sha256", "checksum": "7fbf43157af6c11490590879cc6abd74a981291eaa179873d44ee6517d058272"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.487073, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "keyword_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__keyword_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`pinterest_ads`.`keyword_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__campaign_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__campaign_history_tmp"], "alias": "stg_pinterest_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "6b6e9567363f5912e8f6c2f8547e79e160a7e998dbfb2ac6fe193c73949b9163"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.5014641, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`pinterest_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__ad_group_history_tmp"], "alias": "stg_pinterest_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "781c3dac60c7fc9e9f08f8ad4fce2e5fec42b09036486e24814e717cec4b4ce3"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.512937, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "ad_group_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`pinterest_ads`.`ad_group_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_pinterest_source", "name": "stg_pinterest_ads__pin_promotion_history_tmp", "resource_type": "model", "package_name": "pinterest_source", "path": "tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "original_file_path": "models/tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history_tmp", "fqn": ["pinterest_source", "tmp", "stg_pinterest_ads__pin_promotion_history_tmp"], "alias": "stg_pinterest_ads__pin_promotion_history_tmp", "checksum": {"name": "sha256", "checksum": "268ac897534336c397f3c313861c98d0a47f3022d3fc2aefcc201fb3d1db81b9"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "pinterest_source", "materialized": "view", "enabled": true}, "created_at": 1678988318.5366552, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["pinterest_ads", "pin_promotion_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.pinterest_source.pinterest_ads.pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/tmp/stg_pinterest_ads__pin_promotion_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`pinterest_ads`.`pin_promotion_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__campaign_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__campaign_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_report_hourly"], "alias": "stg_tiktok_ads__campaign_report_hourly", "checksum": {"name": "sha256", "checksum": "4a1fb091732e5edc0b035accbe4bf8d5485868129b8e52e6573cc9b06bca582e"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988324.623486, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__campaign_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__campaign_report_hourly_tmp')),\n staging_columns=get_campaign_report_hourly_columns()\n )\n }}\n from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour,\n cpc, \n cpm,\n ctr,\n impressions,\n clicks,\n spend,\n reach,\n conversion,\n cost_per_conversion,\n conversion_rate,\n likes,\n comments,\n shares,\n profile_visits,\n follows,\n video_play_actions,\n video_watched_2_s,\n video_watched_6_s,\n video_views_p_25,\n video_views_p_50,\n video_views_p_75,\n average_video_play,\n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__campaign_hourly_passthrough_metrics') }}\n \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_tiktok_ads__campaign_report_hourly_tmp"], ["stg_tiktok_ads__campaign_report_hourly_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as numeric) as \n \n campaign_id\n \n , \n cast(null as FLOAT64) as \n \n average_video_play\n \n , \n cast(null as FLOAT64) as \n \n average_video_play_per_user\n \n , \n cast(null as numeric) as \n \n clicks\n \n , \n cast(null as numeric) as \n \n comments\n \n , \n cast(null as numeric) as \n \n conversion\n \n , \n cast(null as FLOAT64) as \n \n conversion_rate\n \n , \n cast(null as FLOAT64) as \n \n cost_per_conversion\n \n , \n cast(null as FLOAT64) as \n \n cpc\n \n , \n cast(null as FLOAT64) as \n \n cpm\n \n , \n cast(null as FLOAT64) as \n \n ctr\n \n , \n cast(null as numeric) as \n \n follows\n \n , \n cast(null as numeric) as \n \n impressions\n \n , \n cast(null as numeric) as \n \n likes\n \n , \n cast(null as numeric) as \n \n profile_visits\n \n , \n cast(null as numeric) as \n \n reach\n \n , \n cast(null as numeric) as \n \n shares\n \n , \n cast(null as numeric) as \n \n spend\n \n , \n cast(null as TIMESTAMP) as \n \n stat_time_hour\n \n , \n cast(null as numeric) as \n \n video_play_actions\n \n , \n cast(null as numeric) as \n \n video_views_p_25\n \n , \n cast(null as numeric) as \n \n video_views_p_50\n \n , \n cast(null as numeric) as \n \n video_views_p_75\n \n , \n cast(null as numeric) as \n \n video_watched_2_s\n \n , \n cast(null as numeric) 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 TIMESTAMP) as stat_time_hour,\n cpc, \n cpm,\n ctr,\n impressions,\n clicks,\n spend,\n reach,\n conversion,\n cost_per_conversion,\n conversion_rate,\n likes,\n comments,\n shares,\n profile_visits,\n follows,\n video_play_actions,\n video_watched_2_s,\n video_watched_6_s,\n video_views_p_25,\n video_views_p_50,\n video_views_p_75,\n average_video_play,\n average_video_play_per_user\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_report_hourly"], "alias": "stg_tiktok_ads__ad_group_report_hourly", "checksum": {"name": "sha256", "checksum": "e6aa8625ed40497e25ec5f7f5dd5a02febf003e50002aad7d5fa11bc5cd353b8"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988324.607418, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_group_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_group_report_hourly_tmp')),\n staging_columns=get_ad_group_report_hourly_columns()\n )\n }}\n from base\n), \n\nfinal as (\n\n select \n adgroup_id as ad_group_id,\n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__ad_group_hourly_passthrough_metrics') }}\n\n from fields\n) \n\nselect *\nfrom final", "language": "sql", "refs": [["stg_tiktok_ads__ad_group_report_hourly_tmp"], ["stg_tiktok_ads__ad_group_report_hourly_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_report_hourly_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as numeric) as \n \n adgroup_id\n \n , \n cast(null as FLOAT64) as \n \n average_video_play\n \n , \n cast(null as FLOAT64) as \n \n average_video_play_per_user\n \n , \n cast(null as numeric) as \n \n clicks\n \n , \n cast(null as numeric) as \n \n comments\n \n , \n cast(null as numeric) as \n \n conversion\n \n , \n cast(null as FLOAT64) as \n \n conversion_rate\n \n , \n cast(null as FLOAT64) as \n \n cost_per_conversion\n \n , \n cast(null as FLOAT64) as \n \n cpc\n \n , \n cast(null as FLOAT64) as \n \n cpm\n \n , \n cast(null as FLOAT64) as \n \n ctr\n \n , \n cast(null as numeric) as \n \n follows\n \n , \n cast(null as numeric) as \n \n impressions\n \n , \n cast(null as numeric) as \n \n likes\n \n , \n cast(null as numeric) as \n \n profile_visits\n \n , \n cast(null as numeric) as \n \n reach\n \n , \n cast(null as numeric) as \n \n shares\n \n , \n cast(null as numeric) as \n \n spend\n \n , \n cast(null as TIMESTAMP) as \n \n stat_time_hour\n \n , \n cast(null as numeric) as \n \n video_play_actions\n \n , \n cast(null as numeric) as \n \n video_views_p_25\n \n , \n cast(null as numeric) as \n \n video_views_p_50\n \n , \n cast(null as numeric) as \n \n video_views_p_75\n \n , \n cast(null as numeric) as \n \n video_watched_2_s\n \n , \n cast(null as numeric) 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 TIMESTAMP) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n \n\n\n\n\n\n from fields\n) \n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_group_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_group_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_group_history"], "alias": "stg_tiktok_ads__ad_group_history", "checksum": {"name": "sha256", "checksum": "293ad5bd25638965207578b5a55376e173cb199e24c62f0e3fd643c9db913a5a"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988324.5598102, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_group_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_group_history_tmp')),\n staging_columns=get_ad_group_history_columns()\n )\n }}\n\n from base\n), \n\nfinal as (\n\n select\n adgroup_id as ad_group_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_id,\n action_days,\n action_categories,\n adgroup_name as ad_group_name,\n age,\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", "refs": [["stg_tiktok_ads__ad_group_history_tmp"], ["stg_tiktok_ads__ad_group_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_group_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_group_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as numeric) as \n \n action_days\n \n , \n cast(null as numeric) as \n \n adgroup_id\n \n , \n cast(null as STRING) as \n \n adgroup_name\n \n , \n cast(null as numeric) as \n \n advertiser_id\n \n , \n cast(null as STRING) as \n \n audience_type\n \n , \n cast(null as FLOAT64) as \n \n budget\n \n , \n cast(null as numeric) as \n \n campaign_id\n \n , \n cast(null as numeric) as \n \n category\n \n , \n cast(null as STRING) as \n \n display_name\n \n , \n cast(null as numeric) as \n \n frequency\n \n , \n cast(null as numeric) as \n \n frequency_schedule\n \n , \n cast(null as STRING) as \n \n gender\n \n , \n cast(null as STRING) as \n \n landing_page_url\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as STRING) as \n \n interest_category_v_2\n \n , \n cast(null as STRING) as \n \n action_categories\n \n , \n cast(null as STRING) as \n \n age\n \n , \n cast(null as STRING) 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 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", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_report_hourly", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_report_hourly.sql", "original_file_path": "models/stg_tiktok_ads__ad_report_hourly.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_report_hourly"], "alias": "stg_tiktok_ads__ad_report_hourly", "checksum": {"name": "sha256", "checksum": "6da656ea12d8f458960301cdc683b06b0556eb112a4d553491d9b9267ff78776"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988324.591208, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_report_hourly_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_report_hourly_tmp')),\n staging_columns=get_ad_report_hourly_columns()\n )\n }}\n from base\n), \n\nfinal as (\n\n select \n ad_id, \n cast(stat_time_hour as {{ dbt.type_timestamp() }}) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n {{ fivetran_utils.fill_pass_through_columns('tiktok_ads__ad_hourly_passthrough_metrics') }}\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [["stg_tiktok_ads__ad_report_hourly_tmp"], ["stg_tiktok_ads__ad_report_hourly_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_report_hourly_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_report_hourly.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as numeric) as \n \n ad_id\n \n , \n cast(null as FLOAT64) as \n \n average_video_play\n \n , \n cast(null as FLOAT64) as \n \n average_video_play_per_user\n \n , \n cast(null as numeric) as \n \n clicks\n \n , \n cast(null as numeric) as \n \n comments\n \n , \n cast(null as numeric) as \n \n conversion\n \n , \n cast(null as FLOAT64) as \n \n conversion_rate\n \n , \n cast(null as FLOAT64) as \n \n cost_per_conversion\n \n , \n cast(null as FLOAT64) as \n \n cpc\n \n , \n cast(null as FLOAT64) as \n \n cpm\n \n , \n cast(null as FLOAT64) as \n \n ctr\n \n , \n cast(null as numeric) as \n \n follows\n \n , \n cast(null as numeric) as \n \n impressions\n \n , \n cast(null as numeric) as \n \n likes\n \n , \n cast(null as numeric) as \n \n profile_visits\n \n , \n cast(null as numeric) as \n \n reach\n \n , \n cast(null as numeric) as \n \n shares\n \n , \n cast(null as numeric) as \n \n spend\n \n , \n cast(null as TIMESTAMP) as \n \n stat_time_hour\n \n , \n cast(null as numeric) as \n \n video_play_actions\n \n , \n cast(null as numeric) as \n \n video_views_p_25\n \n , \n cast(null as numeric) as \n \n video_views_p_50\n \n , \n cast(null as numeric) as \n \n video_views_p_75\n \n , \n cast(null as numeric) as \n \n video_watched_2_s\n \n , \n cast(null as numeric) 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 TIMESTAMP) as stat_time_hour, \n cpc, \n cpm, \n ctr, \n impressions, \n clicks, \n spend, \n reach, \n conversion, \n cost_per_conversion, \n conversion_rate, \n likes, \n comments, \n shares, \n profile_visits,\n follows, \n video_play_actions, \n video_watched_2_s, \n video_watched_6_s, \n video_views_p_25, \n video_views_p_50,\n video_views_p_75, \n average_video_play, \n average_video_play_per_user\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__advertiser", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__advertiser.sql", "original_file_path": "models/stg_tiktok_ads__advertiser.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__advertiser"], "alias": "stg_tiktok_ads__advertiser", "checksum": {"name": "sha256", "checksum": "759a97a786242ecdb350f1852e0861bbeae8218dc19a4047fee98c96ea0ba8be"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988324.5487502, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__advertiser_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__advertiser_tmp')),\n staging_columns=get_advertiser_columns()\n )\n }}\n\n 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", "refs": [["stg_tiktok_ads__advertiser_tmp"], ["stg_tiktok_ads__advertiser_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__advertiser.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__advertiser_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n address\n \n , \n cast(null as FLOAT64) as \n \n balance\n \n , \n cast(null as STRING) as \n \n company\n \n , \n cast(null as STRING) as \n \n contacter\n \n , \n cast(null as STRING) as \n \n country\n \n , \n cast(null as STRING) as \n \n currency\n \n , \n cast(null as STRING) as \n \n description\n \n , \n cast(null as STRING) as \n \n email\n \n , \n cast(null as numeric) as \n \n id\n \n , \n cast(null as STRING) as \n \n industry\n \n , \n cast(null as STRING) as \n \n language\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n phone_number\n \n , \n cast(null as STRING) as \n \n telephone\n \n , \n cast(null as STRING) 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": []}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__ad_history.sql", "original_file_path": "models/stg_tiktok_ads__ad_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__ad_history"], "alias": "stg_tiktok_ads__ad_history", "checksum": {"name": "sha256", "checksum": "04ee4bd6f5c670fa46d8c3d6846d21da350c898d5287ee8cca7a8db9518f5b5e"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988324.571149, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__ad_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__ad_history_tmp')),\n staging_columns=get_ad_history_columns()\n )\n }}\n\n from base\n), \n\nfinal as (\n\n select \n ad_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n {{ dbt.split_part('landing_page_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('landing_page_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('landing_page_url') }} as url_path,\n {{ 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", "refs": [["stg_tiktok_ads__ad_history_tmp"], ["stg_tiktok_ads__ad_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp", "macro.dbt.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"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_history_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as numeric) as \n \n ad_id\n \n , \n cast(null as STRING) as \n \n ad_name\n \n , \n cast(null as numeric) as \n \n adgroup_id\n \n , \n cast(null as numeric) as \n \n advertiser_id\n \n , \n cast(null as STRING) as \n \n call_to_action\n \n , \n cast(null as numeric) as \n \n campaign_id\n \n , \n cast(null as STRING) as \n \n click_tracking_url\n \n , \n cast(null as STRING) as \n \n impression_tracking_url\n \n , \n cast(null as STRING) as \n \n landing_page_url\n \n , \n cast(null as TIMESTAMP) 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 TIMESTAMP) as updated_at,\n adgroup_id as ad_group_id,\n advertiser_id,\n campaign_id,\n ad_name,\n call_to_action,\n click_tracking_url,\n impression_tracking_url,\n \n\n \n split(\n landing_page_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n landing_page_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as STRING)\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 STRING)\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": []}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_history", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "stg_tiktok_ads__campaign_history.sql", "original_file_path": "models/stg_tiktok_ads__campaign_history.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history", "fqn": ["tiktok_ads_source", "stg_tiktok_ads__campaign_history"], "alias": "stg_tiktok_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "cee0a9b6849129be52b0512780a02bfc3ced5461a128c9a7006cfaf5230673c9"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988324.575797, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_tiktok_ads__campaign_history_tmp') }}\n), \n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_tiktok_ads__campaign_history_tmp')),\n staging_columns=get_campaign_history_columns()\n )\n }}\n from base\n), \n\nfinal as (\n\n select \n campaign_id,\n cast(updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n advertiser_id,\n campaign_name,\n campaign_type,\n split_test_variable,\n row_number() over (partition by campaign_id order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_tiktok_ads__campaign_history_tmp"], ["stg_tiktok_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.tiktok_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history_tmp`\n), \n\nfields as (\n\n select\n \n cast(null as numeric) as \n \n advertiser_id\n \n , \n cast(null as numeric) as \n \n campaign_id\n \n , \n cast(null as STRING) as \n \n campaign_name\n \n , \n cast(null as STRING) as \n \n campaign_type\n \n , \n cast(null as STRING) as \n \n split_test_variable\n \n , \n cast(null as TIMESTAMP) 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 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", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_report_hourly_tmp"], "alias": "stg_tiktok_ads__ad_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "30949b79355e85af66a3df6de9ef124c666c0bf8ecc911ad673eb56cf3124b7e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988318.790762, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`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", "refs": [], "sources": [["tiktok_ads", "ad_report_hourly"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`tiktok_ads`.`ad_report_hourly`", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_history_tmp"], "alias": "stg_tiktok_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "70d0e01a26a5250c141b3a67fd3b1ffcfceea35645e82096257852badea2b9d2"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988318.801974, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`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", "refs": [], "sources": [["tiktok_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`tiktok_ads`.`ad_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_history_tmp"], "alias": "stg_tiktok_ads__ad_group_history_tmp", "checksum": {"name": "sha256", "checksum": "656a88662bd5fe65b7e782c1d24ecfc5459e7541ec41b4418f4472f3633aa347"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988318.813139, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`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", "refs": [], "sources": [["tiktok_ads", "adgroup_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`tiktok_ads`.`adgroup_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_report_hourly_tmp"], "alias": "stg_tiktok_ads__campaign_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "3a734b2b71b67ce84e5c0fadfff18429e2aa52abcae9f16aa3832a7c5e94c25e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988318.823788, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`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", "refs": [], "sources": [["tiktok_ads", "campaign_report_hourly"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`tiktok_ads`.`campaign_report_hourly`", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__ad_group_report_hourly_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__ad_group_report_hourly_tmp"], "alias": "stg_tiktok_ads__ad_group_report_hourly_tmp", "checksum": {"name": "sha256", "checksum": "5e607a6ea02a4f66c2d50b092e2d37d6b07d0de03b0490dddde773197364937e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988318.8350122, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`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", "refs": [], "sources": [["tiktok_ads", "adgroup_report_hourly"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__ad_group_report_hourly_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`tiktok_ads`.`adgroup_report_hourly`", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__campaign_history_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__campaign_history_tmp"], "alias": "stg_tiktok_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "1c8e0405cc5ddf7b7748f613590108b0b3f786b44a35ac4382079c19072febe5"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988318.8443289, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`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", "refs": [], "sources": [["tiktok_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`tiktok_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_tiktok_ads", "name": "stg_tiktok_ads__advertiser_tmp", "resource_type": "model", "package_name": "tiktok_ads_source", "path": "tmp/stg_tiktok_ads__advertiser_tmp.sql", "original_file_path": "models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp", "fqn": ["tiktok_ads_source", "tmp", "stg_tiktok_ads__advertiser_tmp"], "alias": "stg_tiktok_ads__advertiser_tmp", "checksum": {"name": "sha256", "checksum": "43da3da14719af2f23e901aa756fc51b3bd807b1172a7776a811541ee26e8688"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "stg_tiktok_ads", "enabled": true}, "created_at": 1678988318.85301, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__advertiser_tmp`", "raw_code": "{{ config(enabled=var('ad_reporting__tiktok_ads_enabled', true)) }}\n\nselect *\nfrom {{ var('advertiser') }}", "language": "sql", "refs": [], "sources": [["tiktok_ads", "advertiser"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.tiktok_ads_source.tiktok_ads.advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/tmp/stg_tiktok_ads__advertiser_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`tiktok_ads`.`advertiser`", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads_source.stg_facebook_ads__basic_ad": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__basic_ad", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__basic_ad.sql", "original_file_path": "models/stg_facebook_ads__basic_ad.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad", "fqn": ["facebook_ads_source", "stg_facebook_ads__basic_ad"], "alias": "stg_facebook_ads__basic_ad", "checksum": {"name": "sha256", "checksum": "2034249ba6885eae9434fc88a91b108e34b667b7e29c83711b29498b85da644a"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.770446, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_bigint() }}) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend,\n 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", "refs": [["stg_facebook_ads__basic_ad_tmp"], ["stg_facebook_ads__basic_ad_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_basic_ad_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__basic_ad.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__basic_ad_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n ad_id\n \n , \n cast(null as STRING) as \n \n ad_name\n \n , \n cast(null as STRING) as \n \n adset_name\n \n , \n cast(null as date) as \n \n date\n \n , \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as INT64) as \n \n inline_link_clicks\n \n , \n cast(null as FLOAT64) as \n \n spend\n \n , \n cast(null as INT64) as \n \n reach\n \n , \n cast(null as FLOAT64) as \n \n frequency\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(ad_id as bigint) as ad_id,\n ad_name,\n adset_name as ad_set_name,\n date as date_day,\n cast(account_id as bigint) as account_id,\n impressions,\n coalesce(inline_link_clicks,0) as clicks,\n spend,\n reach,\n frequency\n\n \n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads_source.stg_facebook_ads__creative_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__creative_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__creative_history.sql", "original_file_path": "models/stg_facebook_ads__creative_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__creative_history"], "alias": "stg_facebook_ads__creative_history", "checksum": {"name": "sha256", "checksum": "b881fe7a6d7f0ec06355c9073495a4e1f89529eceffc1771ca48044e6f401309"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.7640269, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_bigint() }}) as creative_id,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n name as creative_name,\n page_link,\n template_page_link,\n url_tags,\n asset_feed_spec_link_urls,\n object_story_link_data_child_attachments,\n object_story_link_data_caption, \n object_story_link_data_description, \n object_story_link_data_link, \n object_story_link_data_message,\n template_app_link_spec_ios,\n template_app_link_spec_ipad,\n template_app_link_spec_android,\n template_app_link_spec_iphone,\n 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", "refs": [["stg_facebook_ads__creative_history_tmp"], ["stg_facebook_ads__creative_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__creative_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n page_link\n \n , \n cast(null as STRING) as \n \n template_page_link\n \n , \n cast(null as STRING) as \n \n url_tags\n \n , \n cast(null as STRING) as \n \n asset_feed_spec_link_urls\n \n , \n cast(null as STRING) as \n \n object_story_link_data_child_attachments\n \n , \n cast(null as STRING) as \n \n object_story_link_data_caption\n \n , \n cast(null as STRING) as \n \n object_story_link_data_description\n \n , \n cast(null as STRING) as \n \n object_story_link_data_link\n \n , \n cast(null as STRING) as \n \n object_story_link_data_message\n \n , \n cast(null as STRING) as \n \n template_app_link_spec_android\n \n , \n cast(null as STRING) as \n \n template_app_link_spec_ios\n \n , \n cast(null as STRING) as \n \n template_app_link_spec_ipad\n \n , \n cast(null as STRING) as \n \n template_app_link_spec_iphone\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n cast(id as bigint) as creative_id,\n cast(account_id as bigint) as account_id,\n name as creative_name,\n page_link,\n template_page_link,\n url_tags,\n asset_feed_spec_link_urls,\n object_story_link_data_child_attachments,\n object_story_link_data_caption, \n object_story_link_data_description, \n object_story_link_data_link, \n object_story_link_data_message,\n template_app_link_spec_ios,\n template_app_link_spec_ipad,\n template_app_link_spec_android,\n template_app_link_spec_iphone,\n 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": []}, "model.facebook_ads_source.stg_facebook_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__campaign_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__campaign_history.sql", "original_file_path": "models/stg_facebook_ads__campaign_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__campaign_history"], "alias": "stg_facebook_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "d536771ac164bc64d15f6a8f03f6c06626d76f344c02de8d04bf97b978ed60d7"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.752358, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_bigint() }}) as account_id,\n cast(id as {{ dbt.type_bigint() }}) as campaign_id,\n name as campaign_name,\n start_time as start_at,\n stop_time as end_at,\n status,\n daily_budget,\n lifetime_budget,\n budget_remaining,\n 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", "refs": [["stg_facebook_ads__campaign_history_tmp"], ["stg_facebook_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n updated_time\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as TIMESTAMP) as \n \n stop_time\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as INT64) as \n \n daily_budget\n \n , \n cast(null as INT64) as \n \n lifetime_budget\n \n , \n cast(null as FLOAT64) as \n \n budget_remaining\n \n \n\n\n \n 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 bigint) as account_id,\n cast(id as bigint) as campaign_id,\n name as campaign_name,\n start_time as start_at,\n stop_time as end_at,\n status,\n daily_budget,\n lifetime_budget,\n budget_remaining,\n 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": []}, "model.facebook_ads_source.stg_facebook_ads__account_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__account_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__account_history.sql", "original_file_path": "models/stg_facebook_ads__account_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__account_history"], "alias": "stg_facebook_ads__account_history", "checksum": {"name": "sha256", "checksum": "db38aeeedb4c0b457605036f2452543a77d1e65f0d7d13287fac1b705c1d1407"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.732369, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_facebook_ads__account_history_tmp"], ["stg_facebook_ads__account_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "model.facebook_ads_source.stg_facebook_ads__account_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__account_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n account_status\n \n , \n cast(null as STRING) as \n \n business_country_code\n \n , \n cast(null as TIMESTAMP) as \n \n created_time\n \n , \n cast(null as STRING) as \n \n currency\n \n , \n cast(null as STRING) as \n \n timezone_name\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as bigint) as account_id,\n _fivetran_synced,\n name as account_name,\n account_status,\n business_country_code,\n created_time as created_at,\n currency,\n timezone_name,\n 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": []}, "model.facebook_ads_source.stg_facebook_ads__ad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__ad_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__ad_history.sql", "original_file_path": "models/stg_facebook_ads__ad_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_history"], "alias": "stg_facebook_ads__ad_history", "checksum": {"name": "sha256", "checksum": "19719ef45773ae189aeec4da0c5467b45bc6a253bbaf2a13ee271d63723e64da"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.737961, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_bigint() }}) as ad_id,\n name as ad_name,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(ad_set_id as {{ dbt.type_bigint() }}) as ad_set_id, \n cast(campaign_id as {{ dbt.type_bigint() }}) as campaign_id,\n cast(creative_id as {{ dbt.type_bigint() }}) as creative_id,\n 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", "refs": [["stg_facebook_ads__ad_history_tmp"], ["stg_facebook_ads__ad_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_bigint"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n updated_time\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n ad_set_id\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as INT64) 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 bigint) as ad_id,\n name as ad_name,\n cast(account_id as bigint) as account_id,\n cast(ad_set_id as bigint) as ad_set_id, \n cast(campaign_id as bigint) as campaign_id,\n cast(creative_id as bigint) as creative_id,\n 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": []}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__ad_set_history", "resource_type": "model", "package_name": "facebook_ads_source", "path": "stg_facebook_ads__ad_set_history.sql", "original_file_path": "models/stg_facebook_ads__ad_set_history.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "fqn": ["facebook_ads_source", "stg_facebook_ads__ad_set_history"], "alias": "stg_facebook_ads__ad_set_history", "checksum": {"name": "sha256", "checksum": "32c6ae0ef94b4f88261a0dd4dda62e6e92de99a56ffbe8ae1360c6469052e212"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988324.745006, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_bigint() }}) as ad_set_id,\n name as ad_set_name,\n cast(account_id as {{ dbt.type_bigint() }}) as account_id,\n cast(campaign_id as {{ dbt.type_bigint() }}) as campaign_id,\n start_time as start_at,\n end_time as end_at,\n bid_strategy,\n daily_budget,\n budget_remaining,\n status,\n 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", "refs": [["stg_facebook_ads__ad_set_history_tmp"], ["stg_facebook_ads__ad_set_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.facebook_ads_source.get_ad_set_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads__ad_set_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__ad_set_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n updated_time\n \n , \n cast(null as INT64) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as INT64) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as TIMESTAMP) as \n \n end_time\n \n , \n cast(null as STRING) as \n \n bid_strategy\n \n , \n cast(null as INT64) as \n \n daily_budget\n \n , \n cast(null as INT64) as \n \n budget_remaining\n \n , \n cast(null as STRING) as \n \n status\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n updated_time as updated_at,\n cast(id as bigint) as ad_set_id,\n name as ad_set_name,\n cast(account_id as bigint) as account_id,\n cast(campaign_id as bigint) as campaign_id,\n start_time as start_at,\n end_time as end_at,\n bid_strategy,\n daily_budget,\n budget_remaining,\n status,\n 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": []}, "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__ad_set_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__ad_set_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__ad_set_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_set_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_set_history_tmp"], "alias": "stg_facebook_ads__ad_set_history_tmp", "checksum": {"name": "sha256", "checksum": "dad1782db9e8232b2613b5b9959963ad0d0ff99b7462524fc223610cd3e14442"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.034423, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["facebook_ads", "ad_set_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_set_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`facebook_ads`.`ad_set_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__basic_ad_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__basic_ad_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__basic_ad_tmp"], "alias": "stg_facebook_ads__basic_ad_tmp", "checksum": {"name": "sha256", "checksum": "46e4ec682f4ed2b33b3123c24ae2b20d9d9bce50ed7ef83b547dd83b57339f89"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.044275, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["facebook_ads", "basic_ad"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__basic_ad_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`facebook_ads`.`basic_ad`", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__ad_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__ad_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__ad_history_tmp"], "alias": "stg_facebook_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "438f57c6bd1ce2a8c4a73600c1e12878efc0a091f42b3a43ed0334067779eace"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.054184, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["facebook_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`facebook_ads`.`ad_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__campaign_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__campaign_history_tmp"], "alias": "stg_facebook_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "617b7e683421a5712cc129d02e07eeb0f5876b7fdeb680429b4d6069b4dcdfc1"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.063502, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["facebook_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`facebook_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__creative_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__creative_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__creative_history_tmp"], "alias": "stg_facebook_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "9cf5ffb0bc31c525388d169c90fb8b6150e5141777b14337c0fee0730faeecd9"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.074185, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["facebook_ads", "creative_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`facebook_ads`.`creative_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.facebook_ads_source.stg_facebook_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_facebook_ads_source", "name": "stg_facebook_ads__account_history_tmp", "resource_type": "model", "package_name": "facebook_ads_source", "path": "tmp/stg_facebook_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_facebook_ads__account_history_tmp.sql", "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history_tmp", "fqn": ["facebook_ads_source", "tmp", "stg_facebook_ads__account_history_tmp"], "alias": "stg_facebook_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "caa1f4a119ca187458bff00bd8682eabffdba914962ff8ae7d4cfe55f25833ff"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "facebook_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.083711, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["facebook_ads", "account_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.facebook_ads_source.facebook_ads.account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/tmp/stg_facebook_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`facebook_ads`.`account_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_hourly_report"], "alias": "stg_snapchat_ads__ad_squad_hourly_report", "checksum": {"name": "sha256", "checksum": "aad7890ff2546a5611d55ff7393a3580ffae73d4f1036f158589bd8c20dd36e7"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.038743, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__ad_squad_hourly_passthrough_metrics') }}\n \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_snapchat_ads__ad_squad_hourly_report_tmp"], ["stg_snapchat_ads__ad_squad_hourly_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n ad_squad_id\n \n , \n cast(null as INT64) as \n \n attachment_quartile_1\n \n , \n cast(null as INT64) as \n \n attachment_quartile_2\n \n , \n cast(null as INT64) as \n \n attachment_quartile_3\n \n , \n cast(null as INT64) as \n \n attachment_total_view_time_millis\n \n , \n cast(null as INT64) as \n \n attachment_view_completion\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as INT64) as \n \n quartile_1\n \n , \n cast(null as INT64) as \n \n quartile_2\n \n , \n cast(null as INT64) as \n \n quartile_3\n \n , \n cast(null as INT64) as \n \n saves\n \n , \n cast(null as INT64) as \n \n screen_time_millis\n \n , \n cast(null as INT64) as \n \n shares\n \n , \n cast(null as INT64) as \n \n spend\n \n , \n cast(null as INT64) as \n \n swipes\n \n , \n cast(null as INT64) as \n \n video_views\n \n , \n cast(null as INT64) as \n \n view_completion\n \n , \n cast(null as INT64) 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 TIMESTAMP) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_history"], "alias": "stg_snapchat_ads__ad_history", "checksum": {"name": "sha256", "checksum": "b9f87bec0fe3fe17b30ccd2de99f8cb85d764a3867d0c7d1876f60a91b717445"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.010679, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_timestamp() }}) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [["stg_snapchat_ads__ad_history_tmp"], ["stg_snapchat_ads__ad_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_squad_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as STRING) as \n \n creative_id\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) 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 TIMESTAMP) as created_at,\n ad_squad_id,\n creative_id,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_squad_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_squad_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_squad_history"], "alias": "stg_snapchat_ads__ad_squad_history", "checksum": {"name": "sha256", "checksum": "b78ca2d715716a88b33e55219ef00243ae62fa062be779ccbd0e4ace8351e903"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.027609, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_timestamp() }}) as created_at,\n campaign_id,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [["stg_snapchat_ads__ad_squad_history_tmp"], ["stg_snapchat_ads__ad_squad_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_squad_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_squad_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) 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 TIMESTAMP) as created_at,\n campaign_id,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__ad_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_hourly_report"], "alias": "stg_snapchat_ads__ad_hourly_report", "checksum": {"name": "sha256", "checksum": "ce7ad13fe4751d9607130fc2995b208171cfd944ac7fbd8a499209ae6a75aba2"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.0226922, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__ad_hourly_passthrough_metrics') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [["stg_snapchat_ads__ad_hourly_report_tmp"], ["stg_snapchat_ads__ad_hourly_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n ad_id\n \n , \n cast(null as numeric) as \n \n attachment_quartile_1\n \n , \n cast(null as numeric) as \n \n attachment_quartile_2\n \n , \n cast(null as numeric) as \n \n attachment_quartile_3\n \n , \n cast(null as numeric) as \n \n attachment_total_view_time_millis\n \n , \n cast(null as numeric) as \n \n attachment_view_completion\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as numeric) as \n \n impressions\n \n , \n cast(null as numeric) as \n \n quartile_1\n \n , \n cast(null as numeric) as \n \n quartile_2\n \n , \n cast(null as numeric) as \n \n quartile_3\n \n , \n cast(null as numeric) as \n \n saves\n \n , \n cast(null as numeric) as \n \n screen_time_millis\n \n , \n cast(null as numeric) as \n \n shares\n \n , \n cast(null as numeric) as \n \n spend\n \n , \n cast(null as numeric) as \n \n swipes\n \n , \n cast(null as numeric) as \n \n video_views\n \n , \n cast(null as numeric) as \n \n view_completion\n \n , \n cast(null as numeric) as \n \n view_time_millis\n \n \n\n \n from base\n),\n\nfinal as (\n \n select \n ad_id,\n cast (date as TIMESTAMP) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__creative_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__creative_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_history"], "alias": "stg_snapchat_ads__creative_history", "checksum": {"name": "sha256", "checksum": "52f2479f057f755f7fca3153351bb4bbda4767ca96ed9379a2fa1ec30df6fb52"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.059121, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_timestamp() }}) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) =1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [["stg_snapchat_ads__creative_history_tmp"], ["stg_snapchat_ads__creative_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__creative_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_account_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as STRING) 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 TIMESTAMP) as created_at,\n ad_account_id,\n name as creative_name,\n web_view_url as url,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": []}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__creative_url_tag_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__creative_url_tag_history.sql", "original_file_path": "models/stg_snapchat_ads__creative_url_tag_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__creative_url_tag_history"], "alias": "stg_snapchat_ads__creative_url_tag_history", "checksum": {"name": "sha256", "checksum": "ed5cc64860273e4d9198143e337401240d61e563e41e587369e82184ee3254f5"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.063029, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_snapchat_ads__creative_url_tag_history_tmp"], ["stg_snapchat_ads__creative_url_tag_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_creative_url_tag_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__creative_url_tag_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history_tmp`\n\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n creative_id\n \n , \n cast(null as STRING) as \n \n key\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n , \n cast(null as STRING) 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 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", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_account_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__ad_account_history.sql", "original_file_path": "models/stg_snapchat_ads__ad_account_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__ad_account_history"], "alias": "stg_snapchat_ads__ad_account_history", "checksum": {"name": "sha256", "checksum": "b3c1ecb6e139e06bd3242b0ae35973de841a51fc916e32db5ee62a61c69da760"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.0058649, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_timestamp() }}) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [["stg_snapchat_ads__ad_account_history_tmp"], ["stg_snapchat_ads__ad_account_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_ad_account_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__ad_account_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n advertiser\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as STRING) as \n \n currency\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n timezone\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as TIMESTAMP) as \n \n updated_at\n \n \n\n\n 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 TIMESTAMP) as created_at,\n advertiser, \n currency,\n timezone,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": []}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_hourly_report", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__campaign_hourly_report.sql", "original_file_path": "models/stg_snapchat_ads__campaign_hourly_report.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_hourly_report"], "alias": "stg_snapchat_ads__campaign_hourly_report", "checksum": {"name": "sha256", "checksum": "b8abf4f1e0b0aa8d163a63e275f064d72d58b1f1ccb72b6c0a28d90dca2ecf38"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.0542872, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_timestamp() }}) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n {{ fivetran_utils.fill_pass_through_columns('snapchat_ads__campaign_hourly_report_passthrough_metrics') }}\n \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_snapchat_ads__campaign_hourly_report_tmp"], ["stg_snapchat_ads__campaign_hourly_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_hourly_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_hourly_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as INT64) as \n \n attachment_quartile_1\n \n , \n cast(null as INT64) as \n \n attachment_quartile_2\n \n , \n cast(null as INT64) as \n \n attachment_quartile_3\n \n , \n cast(null as INT64) as \n \n attachment_total_view_time_millis\n \n , \n cast(null as INT64) as \n \n attachment_view_completion\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as INT64) as \n \n quartile_1\n \n , \n cast(null as INT64) as \n \n quartile_2\n \n , \n cast(null as INT64) as \n \n quartile_3\n \n , \n cast(null as INT64) as \n \n saves\n \n , \n cast(null as INT64) as \n \n screen_time_millis\n \n , \n cast(null as INT64) as \n \n shares\n \n , \n cast(null as INT64) as \n \n spend\n \n , \n cast(null as INT64) as \n \n swipes\n \n , \n cast(null as INT64) as \n \n video_views\n \n , \n cast(null as INT64) as \n \n view_completion\n \n , \n cast(null as INT64) 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 TIMESTAMP) as date_hour,\n attachment_quartile_1,\n attachment_quartile_2,\n attachment_quartile_3,\n (attachment_total_view_time_millis / 1000000.0) as attachment_total_view_time,\n attachment_view_completion,\n quartile_1,\n quartile_2,\n quartile_3,\n saves,\n shares,\n (screen_time_millis / 1000000.0) as screen_time,\n video_views,\n view_completion,\n (view_time_millis / 1000000.0) as view_time,\n impressions,\n (spend / 1000000.0) as spend,\n swipes\n\n \n\n\n\n\n \n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_history", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "stg_snapchat_ads__campaign_history.sql", "original_file_path": "models/stg_snapchat_ads__campaign_history.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "fqn": ["snapchat_ads_source", "stg_snapchat_ads__campaign_history"], "alias": "stg_snapchat_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "a8a584b7e724b5a0d6b89278795b3d2a9cfc45aa83be000333e2acb288da179d"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "table", "enabled": true}, "created_at": 1678988325.0431302, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.type_timestamp() }}) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as {{ dbt.type_timestamp() }}) as _fivetran_synced,\n cast (updated_at as {{ dbt.type_timestamp() }}) as updated_at,\n row_number() over (partition by id order by _fivetran_synced desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "refs": [["stg_snapchat_ads__campaign_history_tmp"], ["stg_snapchat_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.snapchat_ads_source.get_campaign_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.type_timestamp"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__campaign_history_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ad_account_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as TIMESTAMP) 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 TIMESTAMP) as created_at,\n name as campaign_name,\n cast (_fivetran_synced as TIMESTAMP) as _fivetran_synced,\n cast (updated_at as TIMESTAMP) as updated_at,\n row_number() over (partition by 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": []}, "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__creative_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__creative_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_history_tmp"], "alias": "stg_snapchat_ads__creative_history_tmp", "checksum": {"name": "sha256", "checksum": "97f2460634e450cdce998385dac55f4754305b6c9ea9c8756b1d8cd6ef961e4d"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.453859, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "creative_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`creative_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_account_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_account_history_tmp"], "alias": "stg_snapchat_ads__ad_account_history_tmp", "checksum": {"name": "sha256", "checksum": "92091ce537ab3d626fde67bcce6f168cb41ab6ee9975afa0551603e42cc5d78a"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.4650922, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "ad_account_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_account_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`ad_account_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_hourly_report_tmp"], "alias": "stg_snapchat_ads__ad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "c1fd36fe859740eae7e8c35022731b4090dd0e6a0cc598f8ce7275134e500fe0"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.4768791, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "ad_hourly_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`ad_hourly_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__creative_url_tag_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__creative_url_tag_history_tmp"], "alias": "stg_snapchat_ads__creative_url_tag_history_tmp", "checksum": {"name": "sha256", "checksum": "65d5edd0f0e93654debad17d56afa3f77abd57601fa4e296320dec000d272056"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.488033, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "creative_url_tag_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__creative_url_tag_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`creative_url_tag_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_hourly_report_tmp"], "alias": "stg_snapchat_ads__ad_squad_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "aa1aa691bef011ccfd98f91b4b82a8838fab485131f0e17f53799f7c21bb09f3"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.501316, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "ad_squad_hourly_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`ad_squad_hourly_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_history_tmp"], "alias": "stg_snapchat_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "8ba400ddeeb2cf5c0cb71d6361ee8455d1a5272936dce07eaade1606a596cfdb"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.5121589, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_history_tmp"], "alias": "stg_snapchat_ads__ad_history_tmp", "checksum": {"name": "sha256", "checksum": "3cbc363ef9fe699bcc42261d8eda6184c55f2574efa083ca7091aa5ddedd42e9"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.523335, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "ad_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`ad_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__ad_squad_history_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__ad_squad_history_tmp"], "alias": "stg_snapchat_ads__ad_squad_history_tmp", "checksum": {"name": "sha256", "checksum": "20be450378d3826688fd5d75226187b30b17782d6ea922076111a4d6440598f9"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.535611, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "ad_squad_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__ad_squad_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`ad_squad_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_snapchat_ads_source", "name": "stg_snapchat_ads__campaign_hourly_report_tmp", "resource_type": "model", "package_name": "snapchat_ads_source", "path": "tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "original_file_path": "models/tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report_tmp", "fqn": ["snapchat_ads_source", "tmp", "stg_snapchat_ads__campaign_hourly_report_tmp"], "alias": "stg_snapchat_ads__campaign_hourly_report_tmp", "checksum": {"name": "sha256", "checksum": "b18dc4fa023f874afa53107adf3b50bf02fa4ac757d01f176279822b37a3c1ee"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "snapchat_ads_source", "materialized": "view", "enabled": true}, "created_at": 1678988319.548754, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["snapchat_ads", "campaign_hourly_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.snapchat_ads_source.snapchat_ads.campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/tmp/stg_snapchat_ads__campaign_hourly_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`snapchat_ads`.`campaign_hourly_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads.microsoft_ads__ad_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads", "name": "microsoft_ads__ad_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__ad_report.sql", "original_file_path": "models/microsoft_ads__ad_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__ad_report", "fqn": ["microsoft_ads", "microsoft_ads__ad_report"], "alias": "microsoft_ads__ad_report", "checksum": {"name": "sha256", "checksum": "934fc75d0e83e5d37bb42d7e6d12bcbabd93de634135fcdd7d865735d2d3393a"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad, ad group, campaign, account, ad type, device os, device type, network and currency code.\n", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1678988325.23919, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n ads.type as ad_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__ad_passthrough_metrics', transform = 'sum') }}\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\n\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n ads.type as ad_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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": []}, "model.microsoft_ads.microsoft_ads__ad_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads", "name": "microsoft_ads__ad_group_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__ad_group_report.sql", "original_file_path": "models/microsoft_ads__ad_group_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report", "fqn": ["microsoft_ads", "microsoft_ads__ad_group_report"], "alias": "microsoft_ads__ad_group_report", "checksum": {"name": "sha256", "checksum": "82d1cfaf1da6109ebe37a96d610aef7b6618cf1b3aa14978ec1466c290db1a39"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad group, campaign, account, device os, device type, network and currency code.\n", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1678988325.2289028, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__ad_group_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_group_daily_report`\n\n), \n\nad_groups as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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": []}, "model.microsoft_ads.microsoft_ads__keyword_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads", "name": "microsoft_ads__keyword_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__keyword_report.sql", "original_file_path": "models/microsoft_ads__keyword_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report", "fqn": ["microsoft_ads", "microsoft_ads__keyword_report"], "alias": "microsoft_ads__keyword_report", "checksum": {"name": "sha256", "checksum": "d68019c66e2ec76c9e4b63d44639606aaefdb559b7e82220549a206332762798"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by keyword, ad, ad group, campaign, account, device os, device type, network and currency code.\n", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1678988325.2591271, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n keywords.keyword_name,\n report.keyword_id,\n keywords.match_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__keyword_passthrough_metrics', transform = 'sum') }}\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__keyword_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\n\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n keywords.keyword_name,\n report.keyword_id,\n keywords.match_type,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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": []}, "model.microsoft_ads.microsoft_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads", "name": "microsoft_ads__url_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__url_report.sql", "original_file_path": "models/microsoft_ads__url_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__url_report", "fqn": ["microsoft_ads", "microsoft_ads__url_report"], "alias": "microsoft_ads__url_report", "checksum": {"name": "sha256", "checksum": "568188d83446e2332ec4fc7053bb17ed95bf0cd1a878ab8fec2835f82035a2cb"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by ad, ad group, campaign, account, ad type, device os, device type, network, currency code, url and utm parameters.\n", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1678988325.2846022, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n {{ dbt.split_part('ads.final_url', \"'?'\", 1) }} as base_url,\n {{ dbt_utils.get_url_host('ads.final_url') }} as url_host,\n '/' || {{ dbt_utils.get_url_path('ads.final_url') }} as url_path,\n\n {% if var('microsoft_ads_auto_tagging_enabled', false) %}\n\n coalesce( {{ 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\n {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where base_url is not null\n {% endif %}\n)\n\nselect *\nfrom filtered", "language": "sql", "refs": [["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": [], "depends_on": {"macros": ["macro.dbt.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"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\n\n), \n\nads as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n \n\n \n split(\n ads.final_url,\n '?'\n )[safe_offset(0)]\n \n\n as base_url,\n \n safe_cast(\n\n \n split(\n \n\n \n split(\n \n\n replace(\n \n\n replace(\n \n\n replace(\n ads.final_url,\n 'android-app://',\n ''\n )\n\n\n,\n 'http://',\n ''\n )\n\n\n,\n 'https://',\n ''\n )\n\n\n,\n '/'\n )[safe_offset(0)]\n \n\n,\n '?'\n )[safe_offset(0)]\n \n\n as STRING)\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 STRING)\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\n \n where base_url is not null\n \n)\n\nselect *\nfrom filtered", "extra_ctes_injected": true, "extra_ctes": []}, "model.microsoft_ads.microsoft_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads", "name": "microsoft_ads__account_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__account_report.sql", "original_file_path": "models/microsoft_ads__account_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__account_report", "fqn": ["microsoft_ads", "microsoft_ads__account_report"], "alias": "microsoft_ads__account_report", "checksum": {"name": "sha256", "checksum": "33fcae2d635e30598310a5da35782efce11b976c89c69da690ff50160271cc8f"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by account, account timezone, device os, device type, network and currency code.\n", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1678988325.219281, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 report.account_id,\n accounts.time_zone as account_timezone,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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", "refs": [["stg_microsoft_ads__account_daily_report"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`\n\n), \n\naccounts as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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 report.account_id,\n accounts.time_zone as account_timezone,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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": []}, "model.microsoft_ads.microsoft_ads__search_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads", "name": "microsoft_ads__search_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__search_report.sql", "original_file_path": "models/microsoft_ads__search_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__search_report", "fqn": ["microsoft_ads", "microsoft_ads__search_report"], "alias": "microsoft_ads__search_report", "checksum": {"name": "sha256", "checksum": "6eebba936b78f5793b3d0dc2cd72916637af31cbd2a94ee628b7b1561019511d"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by search query, keyword, ad, ad group, campaign, account, device os, device type and network.\n", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1678988325.270874, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.keyword_id,\n keywords.keyword_name,\n coalesce(report.delivered_match_type, report.bid_match_type) as match_type,\n report.search_query,\n report.device_os,\n report.device_type,\n report.network,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n {{ fivetran_utils.persist_pass_through_columns(pass_through_variable='microsoft_ads__search_passthrough_metrics', transform = 'sum') }}\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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", "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": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__keyword_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_history", "model.microsoft_ads_source.stg_microsoft_ads__ad_group_history", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__search_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`\n\n), \n\nkeywords as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n ad_groups.ad_group_name,\n report.ad_group_id,\n ads.ad_name,\n report.ad_id,\n report.keyword_id,\n keywords.keyword_name,\n coalesce(report.delivered_match_type, report.bid_match_type) as match_type,\n report.search_query,\n report.device_os,\n report.device_type,\n report.network,\n sum(report.clicks) as clicks,\n sum(report.impressions) as impressions,\n sum(report.spend) as spend\n\n \n\n\n\n\n from report\n left join ads\n on report.ad_id = ads.ad_id\n 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": []}, "model.microsoft_ads.microsoft_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_microsoft_ads", "name": "microsoft_ads__campaign_report", "resource_type": "model", "package_name": "microsoft_ads", "path": "microsoft_ads__campaign_report.sql", "original_file_path": "models/microsoft_ads__campaign_report.sql", "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report", "fqn": ["microsoft_ads", "microsoft_ads__campaign_report"], "alias": "microsoft_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "67405deb1cc6d60f53c6743998081fa4ea77b67191d8a84a423ac68f2051396e"}, "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": []}, "tags": [], "description": "Each record in this table represents the daily clicks, impressions, spend (and if applicable other passthrough metrics) of ads by campaign, account, campaign type, campaign timezone, campaign status, device os, device type, network and currency code.\n", "columns": {"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", "build_path": null, "deferred": false, "unrendered_config": {"schema": "microsoft_ads", "materialized": "table", "enabled": true}, "created_at": 1678988325.24818, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.type as campaign_type,\n campaigns.time_zone as campaign_timezone,\n campaigns.status as campaign_status,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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", "refs": [["stg_microsoft_ads__campaign_daily_report"], ["stg_microsoft_ads__campaign_history"], ["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.group_by"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report", "model.microsoft_ads_source.stg_microsoft_ads__campaign_history", "model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith report as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`\n\n), \n\ncampaigns as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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 report.account_id,\n campaigns.campaign_name,\n report.campaign_id,\n campaigns.type as campaign_type,\n campaigns.time_zone as campaign_timezone,\n campaigns.status as campaign_status,\n report.device_os,\n report.device_type,\n report.network,\n report.currency_code,\n sum(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": []}, "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__line_item_keywords_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_keywords_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_keywords_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_keywords_report"], "alias": "stg_twitter_ads__line_item_keywords_report", "checksum": {"name": "sha256", "checksum": "b980b624c4483406f75c6c3f69c6ad4579616881539ba383f96f6e1b001df09a"}, "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": []}, "tags": [], "description": "Each record represents the performance of a line item (ad group) and keyword combination on a given day, for its placement in Twitter.", "columns": {"keyword_id": {"name": "keyword_id", "description": "Unique key of the table built from the combination of 'account_id', 'line_item_id','segment', and 'placement' fields.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.544317, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n {{ dbt_utils.generate_surrogate_key(['account_id', 'line_item_id','segment','placement']) }} as keyword_id,\n account_id,\n line_item_id,\n segment as keyword,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n {{ fivetran_utils.fill_pass_through_columns('twitter_ads__line_item_keywords_report_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_twitter_ads__line_item_keywords_report_tmp"], ["stg_twitter_ads__line_item_keywords_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars", "macro.twitter_ads_source.get_line_item_keywords_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.date_trunc", "macro.dbt_utils.generate_surrogate_key", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp", "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_keywords_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_keywords_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n billed_charge_local_micro\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n line_item_id\n \n , \n cast(null as STRING) as \n \n placement\n \n , \n cast(null as STRING) as \n \n segment\n \n , \n cast(null as INT64) 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 \n \nto_hex(md5(cast(coalesce(cast(account_id as STRING), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(line_item_id as STRING), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(segment as STRING), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(placement as STRING), '_dbt_utils_surrogate_key_null_') as STRING))) as keyword_id,\n account_id,\n line_item_id,\n segment as keyword,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n \n\n\n\n\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__campaign_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__campaign_report.sql", "original_file_path": "models/stg_twitter_ads__campaign_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_report"], "alias": "stg_twitter_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "f81071b6cdbc860c2ae2316870f010fe0f0fc2c8166fc3b2d5eeea729f6defcd"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.534058, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n account_id,\n campaign_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n {{ fivetran_utils.fill_pass_through_columns('twitter_ads__campaign_report_passthrough_metrics') }}\n \n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_twitter_ads__campaign_report_tmp"], ["stg_twitter_ads__campaign_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_campaign_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__campaign_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n billed_charge_local_micro\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n placement\n \n , \n cast(null as INT64) 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": []}, "model.twitter_ads_source.stg_twitter_ads__line_item_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__line_item_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_history.sql", "original_file_path": "models/stg_twitter_ads__line_item_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_history"], "alias": "stg_twitter_ads__line_item_history", "checksum": {"name": "sha256", "checksum": "46a8268335b747ca45d70e2b6f3c9a426b26a655d751cdc0843b4a3d41af8598"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.5113118, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_twitter_ads__line_item_history_tmp"], ["stg_twitter_ads__line_item_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n cast(null as STRING) as \n \n advertiser_domain\n \n , \n cast(null as INT64) as \n \n advertiser_user_id\n \n , \n cast(null as boolean) as \n \n automatically_select_bid\n \n , \n cast(null as INT64) as \n \n bid_amount_local_micro\n \n , \n cast(null as STRING) as \n \n bid_type\n \n , \n cast(null as STRING) as \n \n bid_unit\n \n , \n cast(null as STRING) as \n \n campaign_id\n \n , \n cast(null as STRING) as \n \n charge_by\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as STRING) as \n \n creative_source\n \n , \n cast(null as STRING) as \n \n currency\n \n , \n cast(null as boolean) as \n \n deleted\n \n , \n cast(null as TIMESTAMP) as \n \n end_time\n \n , \n cast(null as STRING) as \n \n entity_status\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n objective\n \n , \n cast(null as STRING) as \n \n optimization\n \n , \n cast(null as STRING) as \n \n primary_web_event_tag\n \n , \n cast(null as STRING) as \n \n product_type\n \n , \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as INT64) as \n \n target_cpa_local_micro\n \n , \n cast(null as INT64) as \n \n total_budget_amount_local_micro\n \n , \n cast(null as TIMESTAMP) 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": []}, "model.twitter_ads_source.stg_twitter_ads__line_item_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__line_item_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__line_item_report.sql", "original_file_path": "models/stg_twitter_ads__line_item_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__line_item_report"], "alias": "stg_twitter_ads__line_item_report", "checksum": {"name": "sha256", "checksum": "3e4a99488dfe650a4fbdcd7a60b982d2044c2c2b3ad1be7479fc35c4b929d343"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.5388842, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n account_id,\n line_item_id,\n placement,\n clicks,\n impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks\n\n {{ fivetran_utils.fill_pass_through_columns('twitter_ads__line_item_report_passthrough_metrics') }}\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "refs": [["stg_twitter_ads__line_item_report_tmp"], ["stg_twitter_ads__line_item_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_line_item_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__line_item_report.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_report_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n billed_charge_local_micro\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n line_item_id\n \n , \n cast(null as STRING) as \n \n placement\n \n , \n cast(null as INT64) 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": []}, "model.twitter_ads_source.stg_twitter_ads__campaign_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__campaign_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__campaign_history.sql", "original_file_path": "models/stg_twitter_ads__campaign_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__campaign_history"], "alias": "stg_twitter_ads__campaign_history", "checksum": {"name": "sha256", "checksum": "774d386e9ad64cc31bc4067ef71444c35b0dd5b24e7635905ca4f774d6996934"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.498612, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_twitter_ads__campaign_history_tmp"], ["stg_twitter_ads__campaign_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__campaign_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__campaign_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n cast(null as STRING) as \n \n account_id\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as STRING) as \n \n currency\n \n , \n cast(null as INT64) as \n \n daily_budget_amount_local_micro\n \n , \n cast(null as boolean) as \n \n deleted\n \n , \n cast(null as INT64) as \n \n duration_in_days\n \n , \n cast(null as TIMESTAMP) as \n \n end_time\n \n , \n cast(null as STRING) as \n \n entity_status\n \n , \n cast(null as INT64) as \n \n frequency_cap\n \n , \n cast(null as STRING) as \n \n funding_instrument_id\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as boolean) as \n \n servable\n \n , \n cast(null as boolean) as \n \n standard_delivery\n \n , \n cast(null as TIMESTAMP) as \n \n start_time\n \n , \n cast(null as INT64) as \n \n total_budget_amount_local_micro\n \n , \n cast(null as TIMESTAMP) 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": []}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_report", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_report.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_report.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_report"], "alias": "stg_twitter_ads__promoted_tweet_report", "checksum": {"name": "sha256", "checksum": "90aa40996baaf0ab4455ec96ddd1bb6e9fabee419da4496f9b534e0d866ac36d"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.520965, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.date_trunc('day', 'date') }} as date_day,\n account_id,\n promoted_tweet_id,\n placement,\n clicks as clicks,\n impressions as impressions,\n billed_charge_local_micro as spend_micro,\n round(billed_charge_local_micro / 1000000.0,2) as spend,\n url_clicks as url_clicks\n\n {{ fivetran_utils.fill_pass_through_columns('twitter_ads__promoted_tweet_report_passthrough_metrics') }}\n \n from renamed\n\n)\n\nselect * from spend_calc", "language": "sql", "refs": [["stg_twitter_ads__promoted_tweet_report_tmp"], ["stg_twitter_ads__promoted_tweet_report_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_promoted_tweet_report_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_report.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report_tmp`\n\n),\n\nrenamed as (\n\n select\n \n \n cast(null as STRING) as \n \n account_id\n \n , \n cast(null as INT64) as \n \n billed_charge_local_micro\n \n , \n cast(null as INT64) as \n \n clicks\n \n , \n cast(null as TIMESTAMP) as \n \n date\n \n , \n cast(null as INT64) as \n \n impressions\n \n , \n cast(null as STRING) as \n \n placement\n \n , \n cast(null as STRING) as \n \n promoted_tweet_id\n \n , \n cast(null as INT64) 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": []}, "model.twitter_ads_source.stg_twitter_ads__tweet": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__tweet", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__tweet.sql", "original_file_path": "models/stg_twitter_ads__tweet.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet"], "alias": "stg_twitter_ads__tweet", "checksum": {"name": "sha256", "checksum": "495071fcb565d9bcb5f607119259a6a0db5f562833a4c5b4e6b415947b763e21"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.5476859, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_twitter_ads__tweet_tmp"], ["stg_twitter_ads__tweet_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__tweet_tmp`\n),\n\nfields as (\n\n select\n \n cast(null as STRING) as \n \n account_id\n \n , \n cast(null as STRING) as \n \n full_text\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n lang\n \n , \n cast(null as STRING) 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": []}, "model.twitter_ads_source.stg_twitter_ads__account_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__account_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__account_history.sql", "original_file_path": "models/stg_twitter_ads__account_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__account_history"], "alias": "stg_twitter_ads__account_history", "checksum": {"name": "sha256", "checksum": "9ac9bf89b2163524505de7f16c38d7103b3af267458bf5190428238b25b87bd4"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.488739, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_twitter_ads__account_history_tmp"], ["stg_twitter_ads__account_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__account_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__account_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n cast(null as STRING) as \n \n approval_status\n \n , \n cast(null as STRING) as \n \n business_id\n \n , \n cast(null as STRING) as \n \n business_name\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as boolean) as \n \n deleted\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n industry_type\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n salt\n \n , \n cast(null as STRING) as \n \n timezone\n \n , \n cast(null as TIMESTAMP) as \n \n timezone_switch_at\n \n , \n cast(null as TIMESTAMP) 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": []}, "model.twitter_ads_source.stg_twitter_ads__tweet_url": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__tweet_url", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__tweet_url.sql", "original_file_path": "models/stg_twitter_ads__tweet_url.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url", "fqn": ["twitter_ads_source", "stg_twitter_ads__tweet_url"], "alias": "stg_twitter_ads__tweet_url", "checksum": {"name": "sha256", "checksum": "96ff5a0344a66484694df8a7eff61312f4b5e5dd177f81470447d7a4698ee2d1"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.5287418, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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.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", "refs": [["stg_twitter_ads__tweet_url_tmp"], ["stg_twitter_ads__tweet_url_tmp"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.twitter_ads_source.get_tweet_url_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt.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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__tweet_url.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__tweet_url_tmp`\n\n),\n\nfields as (\n\n select\n \n \n cast(null as STRING) as \n \n display_url\n \n , \n cast(null as STRING) as \n \n expanded_url\n \n , \n cast(null as INT64) as \n \n index\n \n , \n cast(null as STRING) as \n \n indices\n \n , \n cast(null as STRING) as \n \n tweet_id\n \n , \n cast(null as STRING) 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 STRING)\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 STRING)\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": []}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_history", "resource_type": "model", "package_name": "twitter_ads_source", "path": "stg_twitter_ads__promoted_tweet_history.sql", "original_file_path": "models/stg_twitter_ads__promoted_tweet_history.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history", "fqn": ["twitter_ads_source", "stg_twitter_ads__promoted_tweet_history"], "alias": "stg_twitter_ads__promoted_tweet_history", "checksum": {"name": "sha256", "checksum": "c80a0cb29ef10133607a7a85d12f01b4a3dfe4100939746893a2ac56d17dd03b"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988325.516022, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [["stg_twitter_ads__promoted_tweet_history_tmp"], ["stg_twitter_ads__promoted_tweet_history_tmp"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads__promoted_tweet_history.sql", "compiled": true, "compiled_code": "\n\nwith source as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history_tmp`\n\n),\n\nfields as (\n\n select\n \n \n cast(null as STRING) as \n \n approval_status\n \n , \n cast(null as TIMESTAMP) as \n \n created_at\n \n , \n cast(null as boolean) as \n \n deleted\n \n , \n cast(null as STRING) as \n \n entity_status\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n line_item_id\n \n , \n cast(null as STRING) as \n \n tweet_id\n \n , \n cast(null as TIMESTAMP) 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": []}, "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__tweet_url_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_url_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_url_tmp"], "alias": "stg_twitter_ads__tweet_url_tmp", "checksum": {"name": "sha256", "checksum": "9a7338e00449b6c913d5f3c059679ed5be9c64d82f22bb155f6b807124089552"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.0344582, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "tweet_url"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_url_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`twitter_ads`.`tweet_url`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__tweet_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__tweet_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__tweet_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__tweet_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__tweet_tmp"], "alias": "stg_twitter_ads__tweet_tmp", "checksum": {"name": "sha256", "checksum": "ed6397b8a2245ad4f4e79b75ed4ed8de08fdc4049d651c49e3849db6c073cafd"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.046037, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "tweet"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__tweet_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`twitter_ads`.`tweet`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_report_tmp"], "alias": "stg_twitter_ads__promoted_tweet_report_tmp", "checksum": {"name": "sha256", "checksum": "6bf2743294837bc2b2316127f2df7a40126f942a226653c2f7668e78d972856a"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.058073, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "promoted_tweet_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`twitter_ads`.`promoted_tweet_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__line_item_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_history_tmp"], "alias": "stg_twitter_ads__line_item_history_tmp", "checksum": {"name": "sha256", "checksum": "d796be56366271bfcc2f2d4d23b50372472b0e47a1ba5d62f09ea7218d842b07"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.069938, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "line_item_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`twitter_ads`.`line_item_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__campaign_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_report_tmp"], "alias": "stg_twitter_ads__campaign_report_tmp", "checksum": {"name": "sha256", "checksum": "cde4096c85a4069b4865fe37600bed81c625f2ec5e1cb91863d50888a217f562"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.082315, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "campaign_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`twitter_ads`.`campaign_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__campaign_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__campaign_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__campaign_history_tmp"], "alias": "stg_twitter_ads__campaign_history_tmp", "checksum": {"name": "sha256", "checksum": "343754878288e6e847d9af5524d0dd1b09edffac90a7e83f0f8dbd610c028837"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.093962, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "campaign_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__campaign_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`twitter_ads`.`campaign_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__line_item_keywords_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_keywords_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_keywords_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_keywords_report_tmp"], "alias": "stg_twitter_ads__line_item_keywords_report_tmp", "checksum": {"name": "sha256", "checksum": "114060cd4737b070ccbc5aef04da886811de6b4bec7e6246e7e36df4f115d55e"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.1068969, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "line_item_keywords_report"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.enabled_vars"], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_keywords_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_keywords_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`twitter_ads`.`line_item_keywords_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__line_item_report_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__line_item_report_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__line_item_report_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__line_item_report_tmp"], "alias": "stg_twitter_ads__line_item_report_tmp", "checksum": {"name": "sha256", "checksum": "9e053b03293d2511468496eb5fafd60ca8a3883594d2b2a24bb61862fb53c552"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.1189172, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "line_item_report"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__line_item_report_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom `dbt-package-testing`.`twitter_ads`.`line_item_report`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__account_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__account_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__account_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__account_history_tmp"], "alias": "stg_twitter_ads__account_history_tmp", "checksum": {"name": "sha256", "checksum": "76ca411a663d62ed96988cf38c0ea000cb691006c8a9f4a6c326f357d874a7fc"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.130526, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "account_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__account_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`twitter_ads`.`account_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_twitter_ads_source", "name": "stg_twitter_ads__promoted_tweet_history_tmp", "resource_type": "model", "package_name": "twitter_ads_source", "path": "tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "original_file_path": "models/tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "unique_id": "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp", "fqn": ["twitter_ads_source", "tmp", "stg_twitter_ads__promoted_tweet_history_tmp"], "alias": "stg_twitter_ads__promoted_tweet_history_tmp", "checksum": {"name": "sha256", "checksum": "b528c88b68e5a01988e4fb4467e2298ac2be47cfe74ba3ac840044fd214f59da"}, "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": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "twitter_ads_source", "enabled": true}, "created_at": 1678988320.142015, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_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", "refs": [], "sources": [["twitter_ads", "promoted_tweet_history"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.twitter_ads_source.twitter_ads.promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/tmp/stg_twitter_ads__promoted_tweet_history_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom `dbt-package-testing`.`twitter_ads`.`promoted_tweet_history`", "extra_ctes_injected": true, "extra_ctes": []}, "model.linkedin.linkedin_ads__campaign_group_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads", "name": "linkedin_ads__campaign_group_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__campaign_group_report.sql", "original_file_path": "models/linkedin_ads__campaign_group_report.sql", "unique_id": "model.linkedin.linkedin_ads__campaign_group_report", "fqn": ["linkedin", "linkedin_ads__campaign_group_report"], "alias": "linkedin_ads__campaign_group_report", "checksum": {"name": "sha256", "checksum": "bc4b9b9b612d1fbbecffc8059005e832e333df998e1b9aad50a3a2dc71125885"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1678988325.727371, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__campaign_group_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith campaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *\n 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", "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": [], "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"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_group_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign_group as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.linkedin.linkedin_ads__creative_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads", "name": "linkedin_ads__creative_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__creative_report.sql", "original_file_path": "models/linkedin_ads__creative_report.sql", "unique_id": "model.linkedin.linkedin_ads__creative_report", "fqn": ["linkedin", "linkedin_ads__creative_report"], "alias": "linkedin_ads__creative_report", "checksum": {"name": "sha256", "checksum": "ad0eb0c1b25863f9e362dc4aa0d568a06f4a12bed2bd47cfb6bb4cb51ac658d3"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1678988325.7373178, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__creative_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith creative as (\n\n select *\n from {{ var('creative_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *\n 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", "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": [], "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"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__creative_report.sql", "compiled": true, "compiled_code": "\n\nwith creative as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.linkedin.linkedin_ads__campaign_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads", "name": "linkedin_ads__campaign_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__campaign_report.sql", "original_file_path": "models/linkedin_ads__campaign_report.sql", "unique_id": "model.linkedin.linkedin_ads__campaign_report", "fqn": ["linkedin", "linkedin_ads__campaign_report"], "alias": "linkedin_ads__campaign_report", "checksum": {"name": "sha256", "checksum": "1c31aeced5e5a136b419b285d15509067f2556a279da032a1002b4a3fa18879c"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1678988325.718108, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__campaign_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith campaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *\n 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", "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": [], "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"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__campaign_report.sql", "compiled": true, "compiled_code": "\n\nwith campaign as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.linkedin.linkedin_ads__account_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads", "name": "linkedin_ads__account_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__account_report.sql", "original_file_path": "models/linkedin_ads__account_report.sql", "unique_id": "model.linkedin.linkedin_ads__account_report", "fqn": ["linkedin", "linkedin_ads__account_report"], "alias": "linkedin_ads__account_report", "checksum": {"name": "sha256", "checksum": "081d8687fbed2359f5893891308f9b3a0f25a7982a8b206f416f1a60d5c1aa6f"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1678988325.7012212, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__account_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith account as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *\n 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", "refs": [["stg_linkedin_ads__account_history"], ["stg_linkedin_ads__campaign_history"], ["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__account_report.sql", "compiled": true, "compiled_code": "\n\nwith account as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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": []}, "model.linkedin.linkedin_ads__url_report": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_linkedin_ads", "name": "linkedin_ads__url_report", "resource_type": "model", "package_name": "linkedin", "path": "linkedin_ads__url_report.sql", "original_file_path": "models/linkedin_ads__url_report.sql", "unique_id": "model.linkedin.linkedin_ads__url_report", "fqn": ["linkedin", "linkedin_ads__url_report"], "alias": "linkedin_ads__url_report", "checksum": {"name": "sha256", "checksum": "f27d55e979f8fb3ef7e216f896b7ae0875426ffa511baa0d19606b3ddc54737f"}, "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": []}, "tags": [], "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", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "linkedin_ads", "enabled": true}, "created_at": 1678988325.7475898, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__url_report`", "raw_code": "{{ config(enabled=var('ad_reporting__linkedin_ads_enabled', True)) }}\n\nwith creative as (\n\n select *\n from {{ var('creative_history') }}\n where is_latest_version\n),\n\ncampaign as (\n\n select *\n from {{ var('campaign_history') }}\n where is_latest_version\n),\n\ncampaign_group as (\n\n select *\n from {{ var('campaign_group_history') }}\n where is_latest_version\n),\n\naccount as (\n\n select *\n from {{ var('account_history') }}\n where is_latest_version\n),\n\nreport as (\n\n select *\n 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 {% if var('ad_reporting__url_report__using_null_filter', True) %}\n where creative.click_uri is not null\n {% endif %}\n\n {{ dbt_utils.group_by(n=19) }}\n\n)\n\nselect *\nfrom final", "language": "sql", "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": [], "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"]}, "compiled_path": "target/compiled/linkedin/models/linkedin_ads__url_report.sql", "compiled": true, "compiled_code": "\n\nwith creative as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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`.`zz_dbt_renee_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 \n where creative.click_uri is not null\n \n\n group by 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19\n\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": []}, "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__account_history_account_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_history_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_history_account_id"], "alias": "not_null_stg_microsoft_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.638102, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_account_id__modified_at.5975327479", "fqn": ["microsoft_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7"}, "created_at": 1678988320.641275, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7\") }}", "language": "sql", "refs": [["stg_microsoft_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_11cb28b23f58e7c1362184b4fa6c2fe7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, modified_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__account_daily_report_account_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_daily_report_account_id.b17f45fe79", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__account_daily_report_account_id"], "alias": "not_null_stg_microsoft_ads__account_daily_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.6624022, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__account_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__account_daily_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__account_daily_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_daily_report_date_day__account_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other.85ae65d69a", "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"], "alias": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3"}, "created_at": 1678988320.665465, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3\") }}", "language": "sql", "refs": [["stg_microsoft_ads__account_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__account_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_cc3a3d15707b6220c07fd845626d47d3.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_history_ad_group_id.c8353342b7", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_microsoft_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.678943, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_history_ad_group_id__modified_at.12004c9de0", "fqn": ["microsoft_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb"}, "created_at": 1678988320.6822588, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb\") }}", "language": "sql", "refs": [["stg_microsoft_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_29c954196a0dc02a0d6371d1a73027bb.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.3e03e6eff7", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id"], "alias": "not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.69053, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__ad_group_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_group_daily_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_group_daily_report_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", "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"], "alias": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016"}, "created_at": 1678988320.694002, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016\") }}", "language": "sql", "refs": [["stg_microsoft_ads__ad_group_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_group_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_3da4052d148940c4b772fa07b9cd0016.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_history_ad_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_history_ad_id.6d02c26574", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_history_ad_id"], "alias": "not_null_stg_microsoft_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.7085152, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_history_ad_id__modified_at.1f05b4ee6f", "fqn": ["microsoft_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb"}, "created_at": 1678988320.711863, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb\") }}", "language": "sql", "refs": [["stg_microsoft_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_dccf83ffe0fa59cf437b9dc8e3b754cb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, modified_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__ad_daily_report_ad_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__ad_daily_report_ad_id.1ed6689aa8", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__ad_daily_report_ad_id"], "alias": "not_null_stg_microsoft_ads__ad_daily_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.721493, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__ad_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__ad_daily_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__ad_daily_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__ad_daily_report_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", "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"], "alias": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269"}, "created_at": 1678988320.725088, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269\") }}", "language": "sql", "refs": [["stg_microsoft_ads__ad_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__ad_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_29e31bfeb4535a5db2d2c94e28201269.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_history_campaign_id.ee080a2122", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_history_campaign_id"], "alias": "not_null_stg_microsoft_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.739927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_history_campaign_id__modified_at.d2a9279427", "fqn": ["microsoft_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0"}, "created_at": 1678988320.742964, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0\") }}", "language": "sql", "refs": [["stg_microsoft_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_9884c7b093c29b10bef342a8424fc7e0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, modified_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.8ac0418e84", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id"], "alias": "not_null_stg_microsoft_ads__campaign_daily_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.752363, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__campaign_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__campaign_daily_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__campaign_daily_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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__budget_association_status.6f2312e762": {"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", "budget_association_status"], "model": "{{ get_where_subquery(ref('stg_microsoft_ads__campaign_daily_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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__budget_association_status", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__campaign_daily_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code__ad_distribution__bid_match_type__delivered_match_type__top_vs_other__budget_association_status.6f2312e762", "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__budget_association_status"], "alias": "dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27"}, "created_at": 1678988320.755463, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27\") }}", "language": "sql", "refs": [["stg_microsoft_ads__campaign_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__campaign_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_3d58d273ca86ec068f90d76d9e472d27.sql", "compiled": true, "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, budget_association_status\n from `dbt-package-testing`.`zz_dbt_renee_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, budget_association_status\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_history_keyword_id.19164a6209", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_history_keyword_id"], "alias": "not_null_stg_microsoft_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.769336, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_history_keyword_id__modified_at.e1c525286c", "fqn": ["microsoft_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67"}, "created_at": 1678988320.772429, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67\") }}", "language": "sql", "refs": [["stg_microsoft_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_history"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_92d3a0a582798627a8df5ec246b5ec67.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, modified_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.e16b8c5047", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id"], "alias": "not_null_stg_microsoft_ads__keyword_daily_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.781116, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__keyword_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__keyword_daily_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__keyword_daily_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__keyword_daily_report_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", "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"], "alias": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7"}, "created_at": 1678988320.784209, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7\") }}", "language": "sql", "refs": [["stg_microsoft_ads__keyword_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__keyword_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_9a7282cfedb49cdf2e4d14422bce0ed7.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_microsoft_ads__search_daily_report_search_query", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.not_null_stg_microsoft_ads__search_daily_report_search_query.57f687adcc", "fqn": ["microsoft_ads_source", "not_null_stg_microsoft_ads__search_daily_report_search_query"], "alias": "not_null_stg_microsoft_ads__search_daily_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.799937, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_microsoft_ads__search_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/not_null_stg_microsoft_ads__search_daily_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads_source`.`stg_microsoft_ads__search_daily_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads_source", "path": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379.sql", "original_file_path": "models/stg_microsoft_ads.yml", "unique_id": "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__search_daily_report_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", "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"], "alias": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379"}, "created_at": 1678988320.803274, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379\") }}", "language": "sql", "refs": [["stg_microsoft_ads__search_daily_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads_source.stg_microsoft_ads__search_daily_report"]}, "compiled_path": "target/compiled/microsoft_ads_source/models/stg_microsoft_ads.yml/dbt_utils_unique_combination_o_b05df3e2693998bbea08961dfab31379.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_date_day.1276998c99", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_date_day"], "alias": "not_null_tiktok_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.914559, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__advertiser_report_advertiser_id.f956c568ce", "fqn": ["tiktok_ads", "not_null_tiktok_ads__advertiser_report_advertiser_id"], "alias": "not_null_tiktok_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.9174242, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__advertiser_report_advertiser_id__date_day.d298bb3cf9", "fqn": ["tiktok_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89"}, "created_at": 1678988320.9201431, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89\") }}", "language": "sql", "refs": [["tiktok_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__advertiser_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_64e56e18897a7d7395bde426b0634f89.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n advertiser_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__ad_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_date_day.d61ee4a5ed", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_date_day"], "alias": "not_null_tiktok_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.928285, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__ad_report_ad_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_report_ad_id.2d8166e707", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_report_ad_id"], "alias": "not_null_tiktok_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.931189, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85.sql", "original_file_path": "models/tiktok_ads.yml", "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", "fqn": ["tiktok_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85"}, "created_at": 1678988320.9343412, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85\") }}", "language": "sql", "refs": [["tiktok_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_ef4585527dd6080f5f2e4d7aa8408c85.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_date_day.e39164964e", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_date_day"], "alias": "not_null_tiktok_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.944688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__ad_group_report_ad_group_id.17fb8710f4", "fqn": ["tiktok_ads", "not_null_tiktok_ads__ad_group_report_ad_group_id"], "alias": "not_null_tiktok_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.9479191, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__ad_group_report_ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0.sql", "original_file_path": "models/tiktok_ads.yml", "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", "fqn": ["tiktok_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0"}, "created_at": 1678988320.950799, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0\") }}", "language": "sql", "refs": [["tiktok_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__ad_group_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_61fb67766378fce3f732a5c7a2a8cec0.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__campaign_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_date_day.3807b0e836", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_date_day"], "alias": "not_null_tiktok_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.960031, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__campaign_report_campaign_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__campaign_report_campaign_id.8a2b0c8ef8", "fqn": ["tiktok_ads", "not_null_tiktok_ads__campaign_report_campaign_id"], "alias": "not_null_tiktok_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.962785, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_campaign_id__advertiser_id__date_day.03c4f86b19", "fqn": ["tiktok_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645"}, "created_at": 1678988320.965724, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645\") }}", "language": "sql", "refs": [["tiktok_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__campaign_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_65ff4fe3d3440b03aa9c35fc3e4bc645.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_date_day.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_date_day"], "alias": "not_null_tiktok_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.974263, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_ad_id", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_ad_id.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_ad_id.6c41067bd0", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_ad_id"], "alias": "not_null_tiktok_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988320.976854, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.tiktok_ads__url_report"}, "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('tiktok_ads__url_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_tiktok_ads__url_report_base_url", "resource_type": "test", "package_name": "tiktok_ads", "path": "not_null_tiktok_ads__url_report_base_url.sql", "original_file_path": "models/tiktok_ads.yml", "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b", "fqn": ["tiktok_ads", "not_null_tiktok_ads__url_report_base_url"], "alias": "not_null_tiktok_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988320.979965, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/not_null_tiktok_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`zz_dbt_renee_tiktok_ads`.`tiktok_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "base_url", "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_ad_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "tiktok_ads", "path": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50.sql", "original_file_path": "models/tiktok_ads.yml", "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", "fqn": ["tiktok_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50"}, "created_at": 1678988320.983348, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50\") }}", "language": "sql", "refs": [["tiktok_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads.tiktok_ads__url_report"]}, "compiled_path": "target/compiled/tiktok_ads/models/tiktok_ads.yml/dbt_utils_unique_combination_o_1cddc99c1bc045b4142e991924c5fa50.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_campaign_id.03b1c451b8", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_campaign_id"], "alias": "not_null_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.079235, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_date_day.2b30b279b0", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_date_day"], "alias": "not_null_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.082227, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__campaign_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__campaign_report_placement.c66d252e82", "fqn": ["twitter_ads", "not_null_twitter_ads__campaign_report_placement"], "alias": "not_null_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.085355, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__campaign_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__campaign_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__campaign_report_date_day__campaign_id__placement__account_id.2b09fa5421", "fqn": ["twitter_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63"}, "created_at": 1678988321.0882509, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63\") }}", "language": "sql", "refs": [["twitter_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_f0c2d7aacdea4290554fab175e962a63.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_date_day.86c934e8ce", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_date_day"], "alias": "not_null_twitter_ads__line_item_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.0978339, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__line_item_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_line_item_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_line_item_id.0462d58211", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_line_item_id"], "alias": "not_null_twitter_ads__line_item_report_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.100787, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__line_item_report`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__line_item_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__line_item_report_placement.f103369312", "fqn": ["twitter_ads", "not_null_twitter_ads__line_item_report_placement"], "alias": "not_null_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.103991, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__line_item_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__line_item_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__line_item_report_date_day__line_item_id__placement__campaign_id__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168.sql", "original_file_path": "models/twitter.yml", "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", "fqn": ["twitter_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168"}, "created_at": 1678988321.107114, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168\") }}", "language": "sql", "refs": [["twitter_ads__line_item_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_fe15946b61e393e614a50ba3e361c168.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__account_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_date_day.84896c5846", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_date_day"], "alias": "not_null_twitter_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.116846, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__account_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_placement.157dcb6194", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_placement"], "alias": "not_null_twitter_ads__account_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.119659, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__account_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__account_report_account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__account_report_account_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__account_report_account_id.90d5808908", "fqn": ["twitter_ads", "not_null_twitter_ads__account_report_account_id"], "alias": "not_null_twitter_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.12291, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__account_report_date_day__account_id__placement.a29cf85a4f", "fqn": ["twitter_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f"}, "created_at": 1678988321.126198, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f\") }}", "language": "sql", "refs": [["twitter_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__account_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_75283810b353bfd3176c68c506c1da2f.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__keyword_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__keyword_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_date_day"], "alias": "not_null_twitter_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.1349409, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__keyword_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "date_day", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__keyword_report_keyword_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538", "fqn": ["twitter_ads", "not_null_twitter_ads__keyword_report_keyword_id"], "alias": "not_null_twitter_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.13798, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__keyword_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "keyword_id", "file_key_name": "models.twitter_ads__keyword_report"}, "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_id", "campaign_id"], "model": "{{ get_where_subquery(ref('twitter_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39", "fqn": ["twitter_ads", "dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id"], "alias": "dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1"}, "created_at": 1678988321.140843, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1\") }}", "language": "sql", "refs": [["twitter_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__keyword_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_5dd02ea4aea03fbc902c8987427642b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, keyword_id, campaign_id\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__keyword_report`\n group by date_day, keyword_id, campaign_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__promoted_tweet_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_placement"], "alias": "not_null_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.1501372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__promoted_tweet_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e", "fqn": ["twitter_ads", "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "alias": "not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.15329, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__promoted_tweet_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1.sql", "original_file_path": "models/twitter.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1"}, "created_at": 1678988321.1562848, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1\") }}", "language": "sql", "refs": [["twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_b6b8c6a3d568e7fb95f74b1851950fe1.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__url_report_date_day", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_date_day.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_date_day"], "alias": "not_null_twitter_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.1668632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__url_report_placement", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_placement.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_placement"], "alias": "not_null_twitter_ads__url_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.1707242, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__url_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__url_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_promoted_tweet_id.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_promoted_tweet_id"], "alias": "not_null_twitter_ads__url_report_promoted_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.173877, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_promoted_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__url_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "promoted_tweet_id", "file_key_name": "models.twitter_ads__url_report"}, "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('twitter_ads__url_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_twitter_ads__url_report_base_url", "resource_type": "test", "package_name": "twitter_ads", "path": "not_null_twitter_ads__url_report_base_url.sql", "original_file_path": "models/twitter.yml", "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e", "fqn": ["twitter_ads", "not_null_twitter_ads__url_report_base_url"], "alias": "not_null_twitter_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988321.1780832, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/not_null_twitter_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads`.`twitter_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "base_url", "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id", "resource_type": "test", "package_name": "twitter_ads", "path": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7.sql", "original_file_path": "models/twitter.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7"}, "created_at": 1678988321.1822422, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7\") }}", "language": "sql", "refs": [["twitter_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads.twitter_ads__url_report"]}, "compiled_path": "target/compiled/twitter_ads/models/twitter.yml/dbt_utils_unique_combination_o_1e39c518397cb3ec9468966307298ff7.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "column_name": null, "file_key_name": "models.twitter_ads__url_report"}, "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__account_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__account_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90", "fqn": ["reddit_ads", "not_null_reddit_ads__account_report_date_day"], "alias": "not_null_reddit_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.242518, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "date_day", "file_key_name": "models.reddit_ads__account_report"}, "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__account_report_account_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__account_report_account_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5", "fqn": ["reddit_ads", "not_null_reddit_ads__account_report_account_id"], "alias": "not_null_reddit_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.2462442, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "account_id", "file_key_name": "models.reddit_ads__account_report"}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_date_day__account_id__attribution_type__currency__status__time_zone_id.3cf3359ef6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "attribution_type", "currency", "status", "time_zone_id"], "model": "{{ get_where_subquery(ref('reddit_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__account_report_date_day__account_id__attribution_type__currency__status__time_zone_id", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_3d8bb3cd9b494e634cbe651b87c95c5c.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_date_day__account_id__attribution_type__currency__status__time_zone_id.3cf3359ef6", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__account_report_date_day__account_id__attribution_type__currency__status__time_zone_id"], "alias": "dbt_utils_unique_combination_o_3d8bb3cd9b494e634cbe651b87c95c5c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3d8bb3cd9b494e634cbe651b87c95c5c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3d8bb3cd9b494e634cbe651b87c95c5c"}, "created_at": 1678988321.249343, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3d8bb3cd9b494e634cbe651b87c95c5c\") }}", "language": "sql", "refs": [["reddit_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_3d8bb3cd9b494e634cbe651b87c95c5c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, attribution_type, currency, status, time_zone_id\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__account_report`\n group by date_day, account_id, attribution_type, currency, status, time_zone_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.reddit_ads__account_report"}, "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_group_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_group_report_date_day"], "alias": "not_null_reddit_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.259619, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "date_day", "file_key_name": "models.reddit_ads__ad_group_report"}, "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_group_report_ad_group_id"], "alias": "not_null_reddit_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.2626612, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_group_id", "file_key_name": "models.reddit_ads__ad_group_report"}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_date_day__account_id__ad_group_id__campaign_id__currency.dfbea50191": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "ad_group_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_date_day__account_id__ad_group_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_26ca3532f8a33d2fce6b4615a82a8a85.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_date_day__account_id__ad_group_id__campaign_id__currency.dfbea50191", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_date_day__account_id__ad_group_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_26ca3532f8a33d2fce6b4615a82a8a85", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_26ca3532f8a33d2fce6b4615a82a8a85", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_26ca3532f8a33d2fce6b4615a82a8a85"}, "created_at": 1678988321.265862, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_26ca3532f8a33d2fce6b4615a82a8a85\") }}", "language": "sql", "refs": [["reddit_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_26ca3532f8a33d2fce6b4615a82a8a85.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, ad_group_id, campaign_id, currency\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_group_report`\n group by date_day, account_id, ad_group_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.reddit_ads__ad_group_report"}, "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__ad_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_report_date_day"], "alias": "not_null_reddit_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.2754428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "date_day", "file_key_name": "models.reddit_ads__ad_report"}, "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__ad_report_ad_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__ad_report_ad_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e", "fqn": ["reddit_ads", "not_null_reddit_ads__ad_report_ad_id"], "alias": "not_null_reddit_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.2785761, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.reddit_ads__ad_report"}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.a428678f1d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_id", "post_id", "account_id", "ad_group_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_4eab5cc4f2139517296d6ffd11d624ff.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.a428678f1d", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_4eab5cc4f2139517296d6ffd11d624ff", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4eab5cc4f2139517296d6ffd11d624ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4eab5cc4f2139517296d6ffd11d624ff"}, "created_at": 1678988321.2832792, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4eab5cc4f2139517296d6ffd11d624ff\") }}", "language": "sql", "refs": [["reddit_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_4eab5cc4f2139517296d6ffd11d624ff.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_id, post_id, account_id, ad_group_id, campaign_id, currency\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__ad_report`\n group by date_day, ad_id, post_id, account_id, ad_group_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.reddit_ads__ad_report"}, "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__campaign_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__campaign_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131", "fqn": ["reddit_ads", "not_null_reddit_ads__campaign_report_date_day"], "alias": "not_null_reddit_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.2940319, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "date_day", "file_key_name": "models.reddit_ads__campaign_report"}, "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__campaign_report_campaign_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49", "fqn": ["reddit_ads", "not_null_reddit_ads__campaign_report_campaign_id"], "alias": "not_null_reddit_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.2973492, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "campaign_id", "file_key_name": "models.reddit_ads__campaign_report"}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_date_day__account_id__campaign_id__currency.aec7cd25af": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "account_id", "campaign_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_date_day__account_id__campaign_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_0738174addeafd145c0eef0d3f4e9f8e.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_date_day__account_id__campaign_id__currency.aec7cd25af", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_date_day__account_id__campaign_id__currency"], "alias": "dbt_utils_unique_combination_o_0738174addeafd145c0eef0d3f4e9f8e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0738174addeafd145c0eef0d3f4e9f8e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0738174addeafd145c0eef0d3f4e9f8e"}, "created_at": 1678988321.300302, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0738174addeafd145c0eef0d3f4e9f8e\") }}", "language": "sql", "refs": [["reddit_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_0738174addeafd145c0eef0d3f4e9f8e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id, campaign_id, currency\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__campaign_report`\n group by date_day, account_id, campaign_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.reddit_ads__campaign_report"}, "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "date_day", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__url_report_date_day", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_date_day.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_date_day"], "alias": "not_null_reddit_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.309888, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "date_day", "file_key_name": "models.reddit_ads__url_report"}, "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__url_report_ad_id", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_ad_id.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_ad_id"], "alias": "not_null_reddit_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.312858, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["reddit_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.reddit_ads__url_report"}, "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_reddit_ads__url_report_base_url", "resource_type": "test", "package_name": "reddit_ads", "path": "not_null_reddit_ads__url_report_base_url.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb", "fqn": ["reddit_ads", "not_null_reddit_ads__url_report_base_url"], "alias": "not_null_reddit_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988321.31688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["reddit_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/not_null_reddit_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "base_url", "file_key_name": "models.reddit_ads__url_report"}, "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.b14eb4e958": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "click_url", "ad_id", "account_id", "ad_group_id", "campaign_id", "post_id", "currency"], "model": "{{ get_where_subquery(ref('reddit_ads__url_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_reddit_ads__url_report_date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency", "resource_type": "test", "package_name": "reddit_ads", "path": "dbt_utils_unique_combination_o_7c37e73689ac90ae73618b69a9503d2f.sql", "original_file_path": "models/reddit_ads.yml", "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.b14eb4e958", "fqn": ["reddit_ads", "dbt_utils_unique_combination_of_columns_reddit_ads__url_report_date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency"], "alias": "dbt_utils_unique_combination_o_7c37e73689ac90ae73618b69a9503d2f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7c37e73689ac90ae73618b69a9503d2f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7c37e73689ac90ae73618b69a9503d2f"}, "created_at": 1678988321.320395, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7c37e73689ac90ae73618b69a9503d2f\") }}", "language": "sql", "refs": [["reddit_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads.reddit_ads__url_report"]}, "compiled_path": "target/compiled/reddit_ads/models/reddit_ads.yml/dbt_utils_unique_combination_o_7c37e73689ac90ae73618b69a9503d2f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, click_url, ad_id, account_id, ad_group_id, campaign_id, post_id, currency\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads`.`reddit_ads__url_report`\n group by date_day, click_url, ad_id, account_id, ad_group_id, campaign_id, post_id, currency\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.reddit_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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_date_day"], "alias": "not_null_pinterest_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.3993878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "date_day", "file_key_name": "models.pinterest_ads__url_report"}, "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "destination_url", "model": "{{ get_where_subquery(ref('pinterest_ads__url_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_destination_url", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_destination_url.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_destination_url"], "alias": "not_null_pinterest_ads__url_report_destination_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988321.4040651, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_destination_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect destination_url\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__url_report`\nwhere destination_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "destination_url", "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__url_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__url_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a", "fqn": ["pinterest", "not_null_pinterest_ads__url_report_pin_promotion_id"], "alias": "not_null_pinterest_ads__url_report_pin_promotion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.407645, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__url_report_pin_promotion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__url_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4.sql", "original_file_path": "models/pinterest.yml", "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", "fqn": ["pinterest", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4"}, "created_at": 1678988321.4116008, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4\") }}", "language": "sql", "refs": [["pinterest_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__url_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_21473120856be0adc6b82e83f018c3a4.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_date_day.ed7c27b8a7", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_date_day"], "alias": "not_null_pinterest_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.420419, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__ad_group_report_ad_group_id.134f9ac6c2", "fqn": ["pinterest", "not_null_pinterest_ads__ad_group_report_ad_group_id"], "alias": "not_null_pinterest_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.422986, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__ad_group_report_ad_group_id__advertiser_id__campaign_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506.sql", "original_file_path": "models/pinterest.yml", "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", "fqn": ["pinterest", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506"}, "created_at": 1678988321.4258392, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506\") }}", "language": "sql", "refs": [["pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_54d3e3ee8528adecb1b6bc6aef476506.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__campaign_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_date_day.10ac8272bf", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_date_day"], "alias": "not_null_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.4337611, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__campaign_report_campaign_id.8001ea60f2", "fqn": ["pinterest", "not_null_pinterest_ads__campaign_report_campaign_id"], "alias": "not_null_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.436757, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_campaign_id__advertiser_id__date_day.b5752d5279", "fqn": ["pinterest", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334"}, "created_at": 1678988321.440137, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334\") }}", "language": "sql", "refs": [["pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_87addc13a4108165c61e6604961b7334.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_date_day.aedeceeeca", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_date_day"], "alias": "not_null_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.448462, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__advertiser_report_advertiser_id.13380f0672", "fqn": ["pinterest", "not_null_pinterest_ads__advertiser_report_advertiser_id"], "alias": "not_null_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.451782, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__advertiser_report_advertiser_id__date_day.990badbc11", "fqn": ["pinterest", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f"}, "created_at": 1678988321.455337, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f\") }}", "language": "sql", "refs": [["pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_262423074d5ab98a7cfbb922eecfa81f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n advertiser_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__keyword_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_date_day.23130e9fba", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_date_day"], "alias": "not_null_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.464139, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__keyword_report_keyword_id.0d73460198", "fqn": ["pinterest", "not_null_pinterest_ads__keyword_report_keyword_id"], "alias": "not_null_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.46738, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__keyword_report_keyword_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f.sql", "original_file_path": "models/pinterest.yml", "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", "fqn": ["pinterest", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f"}, "created_at": 1678988321.470203, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f\") }}", "language": "sql", "refs": [["pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_5ffb6b9c10d3e5615e425ea53e66643f.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__pin_promotion_report_date_day", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_date_day.3128d28cfd", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_date_day"], "alias": "not_null_pinterest_ads__pin_promotion_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.4797812, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__pin_promotion_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest", "path": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "original_file_path": "models/pinterest.yml", "unique_id": "test.pinterest.not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.2540e0a561", "fqn": ["pinterest", "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id"], "alias": "not_null_pinterest_ads__pin_promotion_report_pin_promotion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.482502, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/not_null_pinterest_ads__pin_promotion_report_pin_promotion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest`.`pinterest_ads__pin_promotion_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_pinterest_ads__pin_promotion_report_pin_promotion_id__ad_group_id__campaign_id__advertiser_id__date_day", "resource_type": "test", "package_name": "pinterest", "path": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c.sql", "original_file_path": "models/pinterest.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c"}, "created_at": 1678988321.4852412, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c\") }}", "language": "sql", "refs": [["pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest.pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest/models/pinterest.yml/dbt_utils_unique_combination_o_2f4efa18af7508110970522dca80a52c.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "column_name": null, "file_key_name": "models.pinterest_ads__pin_promotion_report"}, "test.reddit_ads_source.unique_stg_reddit_ads__account_account_id.0c6fcb698e": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__account')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_stg_reddit_ads__account_account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "unique_stg_reddit_ads__account_account_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.unique_stg_reddit_ads__account_account_id.0c6fcb698e", "fqn": ["reddit_ads_source", "unique_stg_reddit_ads__account_account_id"], "alias": "unique_stg_reddit_ads__account_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.618655, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__account"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/unique_stg_reddit_ads__account_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select account_id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account`\n where account_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": [], "column_name": "account_id", "file_key_name": "models.stg_reddit_ads__account"}, "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__account')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_reddit_ads__account_account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__account_account_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__account_account_id"], "alias": "not_null_stg_reddit_ads__account_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.621235, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__account"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__account_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "account_id", "file_key_name": "models.stg_reddit_ads__account"}, "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__account_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_reddit_ads__account_report_account_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__account_report_account_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__account_report_account_id"], "alias": "not_null_stg_reddit_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.6239119, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "account_id", "file_key_name": "models.stg_reddit_ads__account_report"}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_account_id__date_day.74570496be": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["account_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_account_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_ce15e0a86725614888661e5d48ff93d8.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_account_id__date_day.74570496be", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_account_id__date_day"], "alias": "dbt_utils_unique_combination_o_ce15e0a86725614888661e5d48ff93d8", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ce15e0a86725614888661e5d48ff93d8", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ce15e0a86725614888661e5d48ff93d8"}, "created_at": 1678988321.626341, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ce15e0a86725614888661e5d48ff93d8\") }}", "language": "sql", "refs": [["stg_reddit_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__account_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_ce15e0a86725614888661e5d48ff93d8.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_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": [], "column_name": null, "file_key_name": "models.stg_reddit_ads__account_report"}, "test.reddit_ads_source.unique_stg_reddit_ads__ad_ad_id.3d62901652": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_stg_reddit_ads__ad_ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "unique_stg_reddit_ads__ad_ad_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.unique_stg_reddit_ads__ad_ad_id.3d62901652", "fqn": ["reddit_ads_source", "unique_stg_reddit_ads__ad_ad_id"], "alias": "unique_stg_reddit_ads__ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.633445, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__ad"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/unique_stg_reddit_ads__ad_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select ad_id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad`\n where ad_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": [], "column_name": "ad_id", "file_key_name": "models.stg_reddit_ads__ad"}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_ad_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_ad_id"], "alias": "not_null_stg_reddit_ads__ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.636439, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__ad"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.stg_reddit_ads__ad"}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_report_ad_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_report_ad_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_report_ad_id"], "alias": "not_null_stg_reddit_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.638987, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.stg_reddit_ads__ad_report"}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_ad_id__date_day.ce868b0b1a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_ad_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_d08f30f7cadd776325492b45b5ac30ff.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_ad_id__date_day.ce868b0b1a", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_d08f30f7cadd776325492b45b5ac30ff", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_d08f30f7cadd776325492b45b5ac30ff", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d08f30f7cadd776325492b45b5ac30ff"}, "created_at": 1678988321.641481, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d08f30f7cadd776325492b45b5ac30ff\") }}", "language": "sql", "refs": [["stg_reddit_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_d08f30f7cadd776325492b45b5ac30ff.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_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": [], "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_report"}, "test.reddit_ads_source.unique_stg_reddit_ads__ad_group_ad_group_id.d3dc0d7503": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_stg_reddit_ads__ad_group_ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "unique_stg_reddit_ads__ad_group_ad_group_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.unique_stg_reddit_ads__ad_group_ad_group_id.d3dc0d7503", "fqn": ["reddit_ads_source", "unique_stg_reddit_ads__ad_group_ad_group_id"], "alias": "unique_stg_reddit_ads__ad_group_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.650103, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__ad_group"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/unique_stg_reddit_ads__ad_group_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select ad_group_id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group`\n where ad_group_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": [], "column_name": "ad_group_id", "file_key_name": "models.stg_reddit_ads__ad_group"}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_group_ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_group_ad_group_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_group_ad_group_id"], "alias": "not_null_stg_reddit_ads__ad_group_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.65286, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__ad_group"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_group_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_group_id", "file_key_name": "models.stg_reddit_ads__ad_group"}, "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_reddit_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_reddit_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.6555789, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_group_id", "file_key_name": "models.stg_reddit_ads__ad_group_report"}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_ad_group_id__date_day.19b8b9b788": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_ad_group_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_e81a8a636bdf4c2d4a757b798e0b86ac.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_ad_group_id__date_day.19b8b9b788", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_e81a8a636bdf4c2d4a757b798e0b86ac", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e81a8a636bdf4c2d4a757b798e0b86ac", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e81a8a636bdf4c2d4a757b798e0b86ac"}, "created_at": 1678988321.658828, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e81a8a636bdf4c2d4a757b798e0b86ac\") }}", "language": "sql", "refs": [["stg_reddit_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_e81a8a636bdf4c2d4a757b798e0b86ac.sql", "compiled": true, "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`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_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": [], "column_name": null, "file_key_name": "models.stg_reddit_ads__ad_group_report"}, "test.reddit_ads_source.unique_stg_reddit_ads__campaign_campaign_id.3c4fccf1e4": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_stg_reddit_ads__campaign_campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "unique_stg_reddit_ads__campaign_campaign_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.unique_stg_reddit_ads__campaign_campaign_id.3c4fccf1e4", "fqn": ["reddit_ads_source", "unique_stg_reddit_ads__campaign_campaign_id"], "alias": "unique_stg_reddit_ads__campaign_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.667723, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__campaign"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/unique_stg_reddit_ads__campaign_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select campaign_id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign`\n where campaign_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": [], "column_name": "campaign_id", "file_key_name": "models.stg_reddit_ads__campaign"}, "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_reddit_ads__campaign_campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__campaign_campaign_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__campaign_campaign_id"], "alias": "not_null_stg_reddit_ads__campaign_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.671277, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__campaign"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__campaign_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "campaign_id", "file_key_name": "models.stg_reddit_ads__campaign"}, "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_reddit_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "reddit_ads_source", "path": "not_null_stg_reddit_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f", "fqn": ["reddit_ads_source", "not_null_stg_reddit_ads__campaign_report_campaign_id"], "alias": "not_null_stg_reddit_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.674359, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_reddit_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/not_null_stg_reddit_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "campaign_id", "file_key_name": "models.stg_reddit_ads__campaign_report"}, "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_campaign_id__date_day.9b02fea13d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_reddit_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_campaign_id__date_day", "resource_type": "test", "package_name": "reddit_ads_source", "path": "dbt_utils_unique_combination_o_8cc4902d24c7376a8ef501eb589e12a1.sql", "original_file_path": "models/stg_reddit_ads.yml", "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_campaign_id__date_day.9b02fea13d", "fqn": ["reddit_ads_source", "dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_8cc4902d24c7376a8ef501eb589e12a1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8cc4902d24c7376a8ef501eb589e12a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8cc4902d24c7376a8ef501eb589e12a1"}, "created_at": 1678988321.677372, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8cc4902d24c7376a8ef501eb589e12a1\") }}", "language": "sql", "refs": [["stg_reddit_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"]}, "compiled_path": "target/compiled/reddit_ads_source/models/stg_reddit_ads.yml/dbt_utils_unique_combination_o_8cc4902d24c7376a8ef501eb589e12a1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_reddit_ads_source`.`stg_reddit_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": [], "column_name": null, "file_key_name": "models.stg_reddit_ads__campaign_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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_google_ads__url_report_base_url", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__url_report_base_url.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72", "fqn": ["google_ads", "not_null_google_ads__url_report_base_url"], "alias": "not_null_google_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988321.748016, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["google_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads`.`google_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_ad_id__ad_group_id__date_day.a59b8e007f", "fqn": ["google_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b"}, "created_at": 1678988321.751853, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b\") }}", "language": "sql", "refs": [["google_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__url_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_bea7bc66213b1115e2bf15aef06eda4b.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_google_ads__account_report_account_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__account_report_account_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__account_report_account_id.abb0985422", "fqn": ["google_ads", "not_null_google_ads__account_report_account_id"], "alias": "not_null_google_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.759587, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["google_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads`.`google_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__account_report_account_id__date_day.c52089771e", "fqn": ["google_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9"}, "created_at": 1678988321.762677, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9\") }}", "language": "sql", "refs": [["google_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__account_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_b50e4c9123068ddc911854925927d1f9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_google_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__ad_group_report_ad_group_id.c186523c0c", "fqn": ["google_ads", "not_null_google_ads__ad_group_report_ad_group_id"], "alias": "not_null_google_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.769969, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["google_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_group_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads`.`google_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_group_report_ad_group_id__date_day.7c8e1c1a2f", "fqn": ["google_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f"}, "created_at": 1678988321.772925, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f\") }}", "language": "sql", "refs": [["google_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_group_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_3b4d505407b6ec52ee5fac7c553b0e4f.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_google_ads__ad_report_ad_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__ad_report_ad_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__ad_report_ad_id.7bd6a287ad", "fqn": ["google_ads", "not_null_google_ads__ad_report_ad_id"], "alias": "not_null_google_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.780106, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["google_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads`.`google_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__ad_report_ad_id__ad_group_id__date_day.fe37ea1a7b", "fqn": ["google_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a"}, "created_at": 1678988321.782787, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a\") }}", "language": "sql", "refs": [["google_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__ad_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_0e386e471201820d82331746820c6c2a.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_google_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__campaign_report_campaign_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__campaign_report_campaign_id.cc6694fa0e", "fqn": ["google_ads", "not_null_google_ads__campaign_report_campaign_id"], "alias": "not_null_google_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.7901921, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["google_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads`.`google_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__campaign_report_campaign_id__advertising_channel_type__advertising_channel_subtype__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a.sql", "original_file_path": "models/google_ads.yml", "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", "fqn": ["google_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a"}, "created_at": 1678988321.7928011, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a\") }}", "language": "sql", "refs": [["google_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__campaign_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_ec8528411c073564947c460da491432a.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_google_ads__keyword_report_criterion_id", "resource_type": "test", "package_name": "google_ads", "path": "not_null_google_ads__keyword_report_criterion_id.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.not_null_google_ads__keyword_report_criterion_id.4cab66a055", "fqn": ["google_ads", "not_null_google_ads__keyword_report_criterion_id"], "alias": "not_null_google_ads__keyword_report_criterion_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988321.8018491, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["google_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/not_null_google_ads__keyword_report_criterion_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads`.`google_ads__keyword_report`\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day", "resource_type": "test", "package_name": "google_ads", "path": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97.sql", "original_file_path": "models/google_ads.yml", "unique_id": "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_ad_group_id__criterion_id__date_day.214ff3497d", "fqn": ["google_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97"}, "created_at": 1678988321.804778, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97\") }}", "language": "sql", "refs": [["google_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads.google_ads__keyword_report"]}, "compiled_path": "target/compiled/google_ads/models/google_ads.yml/dbt_utils_unique_combination_o_5f4b67cbf07cd9f52dc9ddc8771a9f97.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "column_name": null, "file_key_name": "models.google_ads__keyword_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_history')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_amazon_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.0445251, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_group_id", "file_key_name": "models.stg_amazon_ads__ad_group_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_history')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1"}, "created_at": 1678988322.048408, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1\") }}", "language": "sql", "refs": [["stg_amazon_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_b825bf39ab172d49ce4969d3360ae9a1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_group_id, last_updated_date\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_history`\n group by ad_group_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__ad_group_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_level_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id"], "alias": "not_null_stg_amazon_ads__ad_group_level_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.057405, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__ad_group_level_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_level_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_group_id", "file_key_name": "models.stg_amazon_ads__ad_group_level_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_group_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__ad_group_level_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day"], "alias": "dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d"}, "created_at": 1678988322.060548, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d\") }}", "language": "sql", "refs": [["stg_amazon_ads__ad_group_level_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_b23ba4f5baf6fbdd2fefaeb1251b311d.sql", "compiled": true, "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`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__ad_group_level_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": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__ad_group_level_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__advertised_product_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__advertised_product_report_ad_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__advertised_product_report_ad_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__advertised_product_report_ad_id"], "alias": "not_null_stg_amazon_ads__advertised_product_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.0695832, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__advertised_product_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__advertised_product_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__advertised_product_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.stg_amazon_ads__advertised_product_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__advertised_product_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day"], "alias": "dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417"}, "created_at": 1678988322.072605, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417\") }}", "language": "sql", "refs": [["stg_amazon_ads__advertised_product_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_aeb3570ec2093361b49d6d6843df0417.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__advertised_product_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": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__advertised_product_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_history')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__campaign_history_campaign_id"], "alias": "not_null_stg_amazon_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.081669, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "campaign_id", "file_key_name": "models.stg_amazon_ads__campaign_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_history')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9"}, "created_at": 1678988322.0854678, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9\") }}", "language": "sql", "refs": [["stg_amazon_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_ea36d6ecb42fc2f85eae0659671721d9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, last_updated_date\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_history`\n group by campaign_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__campaign_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_level_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__campaign_level_report_campaign_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__campaign_level_report_campaign_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__campaign_level_report_campaign_id"], "alias": "not_null_stg_amazon_ads__campaign_level_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.094251, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__campaign_level_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__campaign_level_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_level_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "campaign_id", "file_key_name": "models.stg_amazon_ads__campaign_level_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["campaign_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__campaign_level_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day"], "alias": "dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748"}, "created_at": 1678988322.097385, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748\") }}", "language": "sql", "refs": [["stg_amazon_ads__campaign_level_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_8181dab5f509aa221040aca686d2f748.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__campaign_level_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": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__campaign_level_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__keyword_history')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__keyword_history_keyword_id"], "alias": "not_null_stg_amazon_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.106133, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "keyword_id", "file_key_name": "models.stg_amazon_ads__keyword_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__keyword_history')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be"}, "created_at": 1678988322.1106508, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be\") }}", "language": "sql", "refs": [["stg_amazon_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_346b096ed77071642a51719dee42f3be.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, last_updated_date\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__keyword_history`\n group by keyword_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__keyword_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "portfolio_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__portfolio_history')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__portfolio_history_portfolio_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__portfolio_history_portfolio_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__portfolio_history_portfolio_id"], "alias": "not_null_stg_amazon_ads__portfolio_history_portfolio_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.1209931, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__portfolio_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__portfolio_history_portfolio_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect portfolio_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__portfolio_history`\nwhere portfolio_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "portfolio_id", "file_key_name": "models.stg_amazon_ads__portfolio_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["portfolio_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__portfolio_history')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147"}, "created_at": 1678988322.124235, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147\") }}", "language": "sql", "refs": [["stg_amazon_ads__portfolio_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_f34d615bb6f942bd1789096833bf4147.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n portfolio_id, last_updated_date\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__portfolio_history`\n group by portfolio_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__portfolio_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__product_ad_history')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__product_ad_history_ad_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__product_ad_history_ad_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__product_ad_history_ad_id"], "alias": "not_null_stg_amazon_ads__product_ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.1343539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__product_ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__product_ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__product_ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.stg_amazon_ads__product_ad_history"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["ad_id", "last_updated_date"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__product_ad_history')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date"], "alias": "dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814"}, "created_at": 1678988322.137758, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814\") }}", "language": "sql", "refs": [["stg_amazon_ads__product_ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_ab95560d07b97f5673463efe945e7814.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, last_updated_date\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__product_ad_history`\n group by ad_id, last_updated_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__product_ad_history"}, "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__profile')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__profile_profile_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__profile_profile_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__profile_profile_id"], "alias": "not_null_stg_amazon_ads__profile_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.1467829, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__profile"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__profile"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__profile_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__profile`\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "profile_id", "file_key_name": "models.stg_amazon_ads__profile"}, "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_amazon_ads__targeting_keyword_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id"], "alias": "not_null_stg_amazon_ads__targeting_keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.150114, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_amazon_ads__targeting_keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__targeting_keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "keyword_id", "file_key_name": "models.stg_amazon_ads__targeting_keyword_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__targeting_keyword_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6"}, "created_at": 1678988322.153742, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6\") }}", "language": "sql", "refs": [["stg_amazon_ads__targeting_keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_4a47e02be36493c13722699ad58e4de6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__targeting_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": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__targeting_keyword_report"}, "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term", "model": "{{ get_where_subquery(ref('stg_amazon_ads__search_term_ad_keyword_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term", "resource_type": "test", "package_name": "amazon_ads_source", "path": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06", "fqn": ["amazon_ads_source", "not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term"], "alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe"}, "created_at": 1678988322.161737, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe\") }}", "language": "sql", "refs": [["stg_amazon_ads__search_term_ad_keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/not_null_stg_amazon_ads__searc_f003e4b73838d347c57dd6506254bcfe.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__search_term_ad_keyword_report`\nwhere search_term is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "search_term", "file_key_name": "models.stg_amazon_ads__search_term_ad_keyword_report"}, "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["search_term", "keyword_id", "date_day"], "model": "{{ get_where_subquery(ref('stg_amazon_ads__search_term_ad_keyword_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day", "resource_type": "test", "package_name": "amazon_ads_source", "path": "dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28.sql", "original_file_path": "models/stg_amazon_ads.yml", "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693", "fqn": ["amazon_ads_source", "dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day"], "alias": "dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28"}, "created_at": 1678988322.1654458, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28\") }}", "language": "sql", "refs": [["stg_amazon_ads__search_term_ad_keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"]}, "compiled_path": "target/compiled/amazon_ads_source/models/stg_amazon_ads.yml/dbt_utils_unique_combination_o_13c9d53b5377a45a6af6b108d52f9f28.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n search_term, keyword_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads_source`.`stg_amazon_ads__search_term_ad_keyword_report`\n group by search_term, keyword_id, date_day\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.stg_amazon_ads__search_term_ad_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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.302324, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.304867, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_creative`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_date_day__creative_id.973a01e410", "fqn": ["linkedin_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9"}, "created_at": 1678988322.3075469, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9\") }}", "language": "sql", "refs": [["stg_linkedin_ads__ad_analytics_by_creative"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_aafc2af91b093fc4d5ae0ca1f56acbf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, creative_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.d6ae242f1a", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.315846, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.ef97bed766", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day"], "alias": "not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.318743, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__ad_analytics_by_campaign_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__ad_analytics_by_campaign`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_campaign_date_day__campaign_id.b03f3dc81d", "fqn": ["linkedin_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c"}, "created_at": 1678988322.321264, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c\") }}", "language": "sql", "refs": [["stg_linkedin_ads__ad_analytics_by_campaign"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_8315cf2be67da0ba2aede716f1af891c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__creative_history_creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_creative_id.4d51d55474", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__creative_history_creative_id"], "alias": "not_null_stg_linkedin_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.3293078, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__creative_history_version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__creative_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__creative_history_version_tag.d3f8e73227", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__creative_history_version_tag"], "alias": "not_null_stg_linkedin_ads__creative_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.332536, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__creative_history_version_tag.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__creative_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__creative_history_version_tag__creative_id.cc02e6aa66", "fqn": ["linkedin_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc"}, "created_at": 1678988322.336083, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc\") }}", "language": "sql", "refs": [["stg_linkedin_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__creative_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_18d13dd053dd23e38fcb9beaa3ca81bc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n version_tag, creative_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_campaign_id.b026971ca2", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_campaign_id"], "alias": "not_null_stg_linkedin_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.345762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_history_version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_history_version_tag.64954cc469", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_history_version_tag"], "alias": "not_null_stg_linkedin_ads__campaign_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.349944, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__campaign_history_version_tag.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__campaign_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_history_version_tag__campaign_id.2d20780793", "fqn": ["linkedin_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361"}, "created_at": 1678988322.353858, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361\") }}", "language": "sql", "refs": [["stg_linkedin_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_04241a97ca756b5a2103a7a728e18361.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n version_tag, campaign_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id.3888f3777d", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_campaign_group_id"], "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a"}, "created_at": 1678988322.362921, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a\") }}", "language": "sql", "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_ff659fc451955e2142e65b7eefd44f9a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__campaign_group_history_last_modified_at.a716e2a7ea", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__campaign_group_history_last_modified_at"], "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd"}, "created_at": 1678988322.367389, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd\") }}", "language": "sql", "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__cam_2e7858c2b570943ef2af34e42f5302bd.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect last_modified_at\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__campaign_group_history`\nwhere last_modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__campaign_group_history_last_modified_at__campaign_group_id.e761ddb4da", "fqn": ["linkedin_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14"}, "created_at": 1678988322.370601, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14\") }}", "language": "sql", "refs": [["stg_linkedin_ads__campaign_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__campaign_group_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_03fa025e903c1ddc393db8f138302b14.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__account_history_account_id", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_account_id.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_account_id.a9fa7f93c0", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_account_id"], "alias": "not_null_stg_linkedin_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.3796659, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_linkedin_ads__account_history_version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "not_null_stg_linkedin_ads__account_history_version_tag.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.not_null_stg_linkedin_ads__account_history_version_tag.58c46c5d81", "fqn": ["linkedin_source", "not_null_stg_linkedin_ads__account_history_version_tag"], "alias": "not_null_stg_linkedin_ads__account_history_version_tag", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.3828568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/not_null_stg_linkedin_ads__account_history_version_tag.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect version_tag\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads_source`.`stg_linkedin_ads__account_history`\nwhere version_tag is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag", "resource_type": "test", "package_name": "linkedin_source", "path": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55.sql", "original_file_path": "models/stg_linkedin.yml", "unique_id": "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__account_history_account_id__version_tag.9a655993ce", "fqn": ["linkedin_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55"}, "created_at": 1678988322.3861592, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55\") }}", "language": "sql", "refs": [["stg_linkedin_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin_source.stg_linkedin_ads__account_history"]}, "compiled_path": "target/compiled/linkedin_source/models/stg_linkedin.yml/dbt_utils_unique_combination_o_e080bf5d4722552a352202d7efd9af55.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, version_tag\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "column_name": null, "file_key_name": "models.stg_linkedin_ads__account_history"}, "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_amazon_ads__account_report_profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__account_report_profile_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66", "fqn": ["amazon_ads", "not_null_amazon_ads__account_report_profile_id"], "alias": "not_null_amazon_ads__account_report_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.52863, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["amazon_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__account_report_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__account_report`\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "profile_id", "file_key_name": "models.amazon_ads__account_report"}, "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_amazon_ads__account_report_account_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__account_report_account_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "fqn": ["amazon_ads", "not_null_amazon_ads__account_report_account_id"], "alias": "not_null_amazon_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.532107, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["amazon_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "account_id", "file_key_name": "models.amazon_ads__account_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "profile_id"], "model": "{{ get_where_subquery(ref('amazon_ads__account_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id"], "alias": "dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06"}, "created_at": 1678988322.5349162, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06\") }}", "language": "sql", "refs": [["amazon_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__account_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_6ed874aa44aa50dc6754845fe295cf06.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, profile_id\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__account_report`\n group by date_day, profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.amazon_ads__account_report"}, "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_group_id", "model": "{{ get_where_subquery(ref('amazon_ads__ad_group_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_amazon_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a", "fqn": ["amazon_ads", "not_null_amazon_ads__ad_group_report_ad_group_id"], "alias": "not_null_amazon_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.5417972, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["amazon_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_group_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_group_id", "file_key_name": "models.amazon_ads__ad_group_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_group_id"], "model": "{{ get_where_subquery(ref('amazon_ads__ad_group_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id"], "alias": "dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241"}, "created_at": 1678988322.544183, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241\") }}", "language": "sql", "refs": [["amazon_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_group_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_18996a14b967587808436224f70e9241.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_group_id\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_group_report`\n group by 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": [], "column_name": null, "file_key_name": "models.amazon_ads__ad_group_report"}, "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ad_id", "model": "{{ get_where_subquery(ref('amazon_ads__ad_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_amazon_ads__ad_report_ad_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__ad_report_ad_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3", "fqn": ["amazon_ads", "not_null_amazon_ads__ad_report_ad_id"], "alias": "not_null_amazon_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.552175, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["amazon_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.amazon_ads__ad_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "ad_id"], "model": "{{ get_where_subquery(ref('amazon_ads__ad_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id"], "alias": "dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536"}, "created_at": 1678988322.554962, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536\") }}", "language": "sql", "refs": [["amazon_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__ad_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_7e938186a70fc693a9b0fdc4e976a536.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, ad_id\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__ad_report`\n group by date_day, ad_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.amazon_ads__ad_report"}, "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "campaign_id", "model": "{{ get_where_subquery(ref('amazon_ads__campaign_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_amazon_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__campaign_report_campaign_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c", "fqn": ["amazon_ads", "not_null_amazon_ads__campaign_report_campaign_id"], "alias": "not_null_amazon_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.562403, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["amazon_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__campaign_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "campaign_id", "file_key_name": "models.amazon_ads__campaign_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "campaign_id"], "model": "{{ get_where_subquery(ref('amazon_ads__campaign_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id"], "alias": "dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33"}, "created_at": 1678988322.5648608, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33\") }}", "language": "sql", "refs": [["amazon_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__campaign_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_1ea261631e657e41cdd7eb8202913e33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, campaign_id\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__campaign_report`\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": [], "column_name": null, "file_key_name": "models.amazon_ads__campaign_report"}, "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "profile_id", "model": "{{ get_where_subquery(ref('amazon_ads__portfolio_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_amazon_ads__portfolio_report_profile_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__portfolio_report_profile_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6", "fqn": ["amazon_ads", "not_null_amazon_ads__portfolio_report_profile_id"], "alias": "not_null_amazon_ads__portfolio_report_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.5719922, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["amazon_ads__portfolio_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__portfolio_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__portfolio_report_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect profile_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__portfolio_report`\nwhere profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "profile_id", "file_key_name": "models.amazon_ads__portfolio_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "portfolio_id"], "model": "{{ get_where_subquery(ref('amazon_ads__portfolio_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id"], "alias": "dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f"}, "created_at": 1678988322.574378, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f\") }}", "language": "sql", "refs": [["amazon_ads__portfolio_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__portfolio_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_2b914fbf0d57f280e6738a6bf6a2805f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, portfolio_id\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__portfolio_report`\n group by date_day, portfolio_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.amazon_ads__portfolio_report"}, "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('amazon_ads__keyword_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_amazon_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__keyword_report_keyword_id.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a", "fqn": ["amazon_ads", "not_null_amazon_ads__keyword_report_keyword_id"], "alias": "not_null_amazon_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.581996, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["amazon_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "keyword_id", "file_key_name": "models.amazon_ads__keyword_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_id"], "model": "{{ get_where_subquery(ref('amazon_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id"], "alias": "dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751"}, "created_at": 1678988322.5847092, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751\") }}", "language": "sql", "refs": [["amazon_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__keyword_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_5f7a5df7cd8d9aa6dcf433fbef667751.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, keyword_id\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__keyword_report`\n group by date_day, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.amazon_ads__keyword_report"}, "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "search_term", "model": "{{ get_where_subquery(ref('amazon_ads__search_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_amazon_ads__search_report_search_term", "resource_type": "test", "package_name": "amazon_ads", "path": "not_null_amazon_ads__search_report_search_term.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a", "fqn": ["amazon_ads", "not_null_amazon_ads__search_report_search_term"], "alias": "not_null_amazon_ads__search_report_search_term", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.591927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["amazon_ads__search_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/not_null_amazon_ads__search_report_search_term.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term\nfrom `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__search_report`\nwhere search_term is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "search_term", "file_key_name": "models.amazon_ads__search_report"}, "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "search_term", "keyword_id"], "model": "{{ get_where_subquery(ref('amazon_ads__search_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id", "resource_type": "test", "package_name": "amazon_ads", "path": "dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67.sql", "original_file_path": "models/amazon_ads.yml", "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f", "fqn": ["amazon_ads", "dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id"], "alias": "dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67"}, "created_at": 1678988322.595007, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67\") }}", "language": "sql", "refs": [["amazon_ads__search_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.amazon_ads.amazon_ads__search_report"]}, "compiled_path": "target/compiled/amazon_ads/models/amazon_ads.yml/dbt_utils_unique_combination_o_31232c8fcd8b9b4a5cc701d1caae2b67.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, search_term, keyword_id\n from `dbt-package-testing`.`zz_dbt_renee_amazon_ads`.`amazon_ads__search_report`\n group by date_day, search_term, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": null, "file_key_name": "models.amazon_ads__search_report"}, "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_facebook_ads__url_report_base_url", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__url_report_base_url.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be", "fqn": ["facebook_ads", "not_null_facebook_ads__url_report_base_url"], "alias": "not_null_facebook_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988322.648055, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["facebook_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads`.`facebook_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_report_date_day__account_id__campaign_id__ad_set_id__ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb.sql", "original_file_path": "models/facebook.yml", "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", "fqn": ["facebook_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb"}, "created_at": 1678988322.651765, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb\") }}", "language": "sql", "refs": [["facebook_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_bf91f5ef1059f34c9059e06e293717eb.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_facebook_ads__ad_report_ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__ad_report_ad_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_report_ad_id.3811d9c238", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_report_ad_id"], "alias": "not_null_facebook_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.660507, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["facebook_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads`.`facebook_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_report_date_day__account_id__campaign_id__ad_set_id__ad_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e.sql", "original_file_path": "models/facebook.yml", "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", "fqn": ["facebook_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e"}, "created_at": 1678988322.6637309, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e\") }}", "language": "sql", "refs": [["facebook_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_6751270b8425b93a72568a6ff0b52e2e.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_facebook_ads__ad_set_report_ad_set_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__ad_set_report_ad_set_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__ad_set_report_ad_set_id.1ac870f5e4", "fqn": ["facebook_ads", "not_null_facebook_ads__ad_set_report_ad_set_id"], "alias": "not_null_facebook_ads__ad_set_report_ad_set_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.6736, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["facebook_ads__ad_set_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_set_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__ad_set_report_ad_set_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads`.`facebook_ads__ad_set_report`\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__ad_set_report_date_day__account_id__campaign_id__ad_set_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74.sql", "original_file_path": "models/facebook.yml", "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", "fqn": ["facebook_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74"}, "created_at": 1678988322.676737, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74\") }}", "language": "sql", "refs": [["facebook_ads__ad_set_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__ad_set_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_b03f58e6a60804a93ab31dbb358dad74.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_facebook_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__campaign_report_campaign_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__campaign_report_campaign_id.d4f96d8d21", "fqn": ["facebook_ads", "not_null_facebook_ads__campaign_report_campaign_id"], "alias": "not_null_facebook_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.686869, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["facebook_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads`.`facebook_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__campaign_report_date_day__account_id__campaign_id.7cd75107e6", "fqn": ["facebook_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1"}, "created_at": 1678988322.68976, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1\") }}", "language": "sql", "refs": [["facebook_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__campaign_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_cf7853fdf8e24958f5a0e3e1b7c1ced1.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_facebook_ads__account_report_account_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__account_report_account_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__account_report_account_id.9be02b4024", "fqn": ["facebook_ads", "not_null_facebook_ads__account_report_account_id"], "alias": "not_null_facebook_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.6990762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["facebook_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads`.`facebook_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__account_report_date_day__account_id.5a94423e40", "fqn": ["facebook_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e"}, "created_at": 1678988322.7024279, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e\") }}", "language": "sql", "refs": [["facebook_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__account_report"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_19fe7721a9f8cd99b91dca268368654e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_facebook_ads__url_tags__fivetran_id", "resource_type": "test", "package_name": "facebook_ads", "path": "not_null_facebook_ads__url_tags__fivetran_id.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.not_null_facebook_ads__url_tags__fivetran_id.151d9515f3", "fqn": ["facebook_ads", "not_null_facebook_ads__url_tags__fivetran_id"], "alias": "not_null_facebook_ads__url_tags__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.7107148, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["facebook_ads__url_tags"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/not_null_facebook_ads__url_tags__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads`.`facebook_ads__url_tags`\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type", "resource_type": "test", "package_name": "facebook_ads", "path": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a.sql", "original_file_path": "models/facebook.yml", "unique_id": "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_tags__fivetran_id__key__type.ba044777d3", "fqn": ["facebook_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a"}, "created_at": 1678988322.714166, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a\") }}", "language": "sql", "refs": [["facebook_ads__url_tags"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads.facebook_ads__url_tags"]}, "compiled_path": "target/compiled/facebook_ads/models/facebook.yml/dbt_utils_unique_combination_o_496bf013366c506c1f3135f19ec7080a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_id, key, type\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__account_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__account_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_date_day.688d7ed260", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_date_day"], "alias": "not_null_snapchat_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.763992, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__account_report_ad_account_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__account_report_ad_account_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__account_report_ad_account_id.589c81966b", "fqn": ["snapchat_ads", "not_null_snapchat_ads__account_report_ad_account_id"], "alias": "not_null_snapchat_ads__account_report_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.767346, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__account_report_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__account_report`\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_ad_account_id__date_day.da5545b8e6", "fqn": ["snapchat_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292"}, "created_at": 1678988322.770116, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292\") }}", "language": "sql", "refs": [["snapchat_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__account_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_524356cb3f1f45c140605a4e4e3e3292.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__ad_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_date_day.7c5350c8fe", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_date_day"], "alias": "not_null_snapchat_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.777214, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__ad_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_report_ad_id.9000850744", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_report_ad_id"], "alias": "not_null_snapchat_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.781568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_report_ad_id__date_day.68c2c0de57", "fqn": ["snapchat_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b"}, "created_at": 1678988322.784389, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b\") }}", "language": "sql", "refs": [["snapchat_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_d89cc6fe00f1619f552cd79cf8e1cf2b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__campaign_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_date_day.4e4e31223b", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_date_day"], "alias": "not_null_snapchat_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.7916858, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__campaign_report_campaign_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__campaign_report_campaign_id.19fd7135ac", "fqn": ["snapchat_ads", "not_null_snapchat_ads__campaign_report_campaign_id"], "alias": "not_null_snapchat_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.794427, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__campaign_report_campaign_id__date_day.dfc5f7da4e", "fqn": ["snapchat_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e"}, "created_at": 1678988322.7975192, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e\") }}", "language": "sql", "refs": [["snapchat_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__campaign_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_113e94adc3e9beee92a4d84c51a5a72e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__ad_squad_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_date_day.39118ca639", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_date_day"], "alias": "not_null_snapchat_ads__ad_squad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.805998, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__ad_squad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__ad_squad_report_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__ad_squad_report_ad_squad_id.424c0bbffe", "fqn": ["snapchat_ads", "not_null_snapchat_ads__ad_squad_report_ad_squad_id"], "alias": "not_null_snapchat_ads__ad_squad_report_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.8089721, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__ad_squad_report_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__ad_squad_report`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__ad_squad_report_ad_squad_id__date_day.027a518f3c", "fqn": ["snapchat_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f"}, "created_at": 1678988322.81232, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f\") }}", "language": "sql", "refs": [["snapchat_ads__ad_squad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__ad_squad_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_75177eef68a3eb0454e7209b1fcecc7f.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_date_day.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_date_day"], "alias": "not_null_snapchat_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.821054, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_ad_id.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_ad_id.ecbdfc0d78", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_ad_id"], "alias": "not_null_snapchat_ads__url_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.823791, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__url_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "ad_id", "file_key_name": "models.snapchat_ads__url_report"}, "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "base_url", "model": "{{ get_where_subquery(ref('snapchat_ads__url_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_snapchat_ads__url_report_base_url", "resource_type": "test", "package_name": "snapchat_ads", "path": "not_null_snapchat_ads__url_report_base_url.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de", "fqn": ["snapchat_ads", "not_null_snapchat_ads__url_report_base_url"], "alias": "not_null_snapchat_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988322.828012, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/not_null_snapchat_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads`.`snapchat_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "base_url", "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day", "resource_type": "test", "package_name": "snapchat_ads", "path": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7.sql", "original_file_path": "models/snapchat.yml", "unique_id": "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_ad_id__date_day.54edc1b2be", "fqn": ["snapchat_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7"}, "created_at": 1678988322.8326468, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7\") }}", "language": "sql", "refs": [["snapchat_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads.snapchat_ads__url_report"]}, "compiled_path": "target/compiled/snapchat_ads/models/snapchat.yml/dbt_utils_unique_combination_o_bbe78d99026ed63397aa69997ed2d6a7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__account_history_account_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_history_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_history_account_id.5ca373f51f", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_history_account_id"], "alias": "not_null_stg_google_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.915312, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_history_account_id__updated_at.19f35742f1", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3"}, "created_at": 1678988322.918725, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3\") }}", "language": "sql", "refs": [["stg_google_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_73f21be54bd17f372632a4da939970a3.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, updated_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_history_ad_group_id.f6c7c939be", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_google_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.926668, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_history_ad_group_id__updated_at.096e8da5fd", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a"}, "created_at": 1678988322.9298, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a\") }}", "language": "sql", "refs": [["stg_google_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0c1cbeb5a9539431a7fbce6af1a21d7a.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__ad_history_ad_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_history_ad_id.8c23c38248", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_history_ad_id"], "alias": "not_null_stg_google_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.938438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_expectations_expect_column_values_to_not_match_regex_list_stg_google_ads__ad_history_source_final_urls__any___", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5.sql", "original_file_path": "models/stg_google_ads.yml", "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", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "warn", "alias": "dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5"}, "created_at": 1678988322.9421241, "relation_name": null, "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", "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_expectations_expect_column_f02cb56d69a9df1e600b3958899ceaa5.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_history_ad_id__ad_group_id__updated_at.0c065b0a0b", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74"}, "created_at": 1678988322.9808152, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74\") }}", "language": "sql", "refs": [["stg_google_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0cf5dbf0b60dae1b36794a079a6f8b74.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__ad_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_date_day.9a43c0fce4", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_date_day"], "alias": "not_null_stg_google_ads__ad_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988322.9999979, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__ad_stats_ad_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_stats_ad_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_stats_ad_id.2612d83cc8", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_stats_ad_id"], "alias": "not_null_stg_google_ads__ad_stats_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.0120761, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_stats_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_stats`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_stats_ad_id__ad_network_type__device__ad_group_id__keyword_ad_group_criterion__date_day.968b016451", "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"], "alias": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1"}, "created_at": 1678988323.019918, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1\") }}", "language": "sql", "refs": [["stg_google_ads__ad_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_0e6e3aa3d77b11d347e7c430ba7c2ea1.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_history_campaign_id.fa0c825e75", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_history_campaign_id"], "alias": "not_null_stg_google_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.0658848, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_history_campaign_id__updated_at.8bf2733e86", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d"}, "created_at": 1678988323.0868511, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d\") }}", "language": "sql", "refs": [["stg_google_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_bd5040437362e14b36ab7ce3eaa14d1d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_criterion_history_criterion_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_criterion_history_criterion_id.7a0a8b8476", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_criterion_history_criterion_id"], "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031"}, "created_at": 1678988323.1023848, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031\") }}", "language": "sql", "refs": [["stg_google_ads__ad_group_criterion_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_gr_fa51ec93a9a1e739108966cace6ed031.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect criterion_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_group_criterion_history`\nwhere criterion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_criterion_history_criterion_id__ad_group_id__updated_at.197bbc6816", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8"}, "created_at": 1678988323.1068668, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8\") }}", "language": "sql", "refs": [["stg_google_ads__ad_group_criterion_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_criterion_history"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_2ce4e2825f6fe9034f28085d1444c1e8.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_date_day.3c6a221786", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_date_day"], "alias": "not_null_stg_google_ads__ad_group_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.119661, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_group_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__ad_group_stats_ad_group_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__ad_group_stats_ad_group_id.a8d430f077", "fqn": ["google_ads_source", "not_null_stg_google_ads__ad_group_stats_ad_group_id"], "alias": "not_null_stg_google_ads__ad_group_stats_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.1241999, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__ad_group_stats_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__ad_group_stats`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__ad_group_stats_ad_group_id__device__ad_network_type__date_day.ed55af6020", "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"], "alias": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c"}, "created_at": 1678988323.1276538, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c\") }}", "language": "sql", "refs": [["stg_google_ads__ad_group_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__ad_group_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_779a67237d95206a8de7fb9388c2108c.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_date_day.dc097fd76b", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_date_day"], "alias": "not_null_stg_google_ads__campaign_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.1401112, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__campaign_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__campaign_stats_campaign_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__campaign_stats_campaign_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__campaign_stats_campaign_id.11587fa10f", "fqn": ["google_ads_source", "not_null_stg_google_ads__campaign_stats_campaign_id"], "alias": "not_null_stg_google_ads__campaign_stats_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.142741, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__campaign_stats_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__campaign_stats`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__campaign_stats_campaign_id__ad_network_type__device__date_day.69600f7d45", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259"}, "created_at": 1678988323.1466072, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259\") }}", "language": "sql", "refs": [["stg_google_ads__campaign_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__campaign_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_99cd4c79dd8197dda4f4ac2294fc9259.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__keyword_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_date_day.a9da72f74d", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_date_day"], "alias": "not_null_stg_google_ads__keyword_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.1562781, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__keyword_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__keyword_stats_keyword_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__keyword_stats_keyword_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__keyword_stats_keyword_id.f0945d6cf0", "fqn": ["google_ads_source", "not_null_stg_google_ads__keyword_stats_keyword_id"], "alias": "not_null_stg_google_ads__keyword_stats_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.1600199, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__keyword_stats_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__keyword_stats`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__keyword_stats_keyword_id__date_day.8f15198e68", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534"}, "created_at": 1678988323.16412, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534\") }}", "language": "sql", "refs": [["stg_google_ads__keyword_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__keyword_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_7e3d865f56378985172b621ddff21534.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__account_stats_account_id", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_stats_account_id.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_account_id.2a9da5417b", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_account_id"], "alias": "not_null_stg_google_ads__account_stats_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.1739469, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__account_stats`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_google_ads__account_stats_date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "not_null_stg_google_ads__account_stats_date_day.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.not_null_stg_google_ads__account_stats_date_day.57ac8772d5", "fqn": ["google_ads_source", "not_null_stg_google_ads__account_stats_date_day"], "alias": "not_null_stg_google_ads__account_stats_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.17721, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/not_null_stg_google_ads__account_stats_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_google_ads_source`.`stg_google_ads__account_stats`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day", "resource_type": "test", "package_name": "google_ads_source", "path": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3.sql", "original_file_path": "models/stg_google_ads.yml", "unique_id": "test.google_ads_source.dbt_utils_unique_combination_of_columns_stg_google_ads__account_stats_account_id__device__ad_network_type__date_day.3019f8a860", "fqn": ["google_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3"}, "created_at": 1678988323.180476, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3\") }}", "language": "sql", "refs": [["stg_google_ads__account_stats"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.google_ads_source.stg_google_ads__account_stats"]}, "compiled_path": "target/compiled/google_ads_source/models/stg_google_ads.yml/dbt_utils_unique_combination_o_c760910058eb575d2384e263c612c0c3.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_ad_group_id.60febec6b5", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_ad_group_id"], "alias": "not_null_apple_search_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.3237948, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_group_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_group_report_date_day.e6ffb30b3c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_group_report_date_day"], "alias": "not_null_apple_search_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.327483, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_group_report_organization_id__campaign_id__ad_group_id__date_day.19d180bab9", "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"], "alias": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2"}, "created_at": 1678988323.331228, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2\") }}", "language": "sql", "refs": [["apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_36b2ef766b4fc10b364ed4744c94afb2.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__ad_report_ad_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_report_ad_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_ad_id.0ab2c5075c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_ad_id"], "alias": "not_null_apple_search_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.3409321, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__ad_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__ad_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__ad_report_date_day.b86c049e17", "fqn": ["apple_search_ads", "not_null_apple_search_ads__ad_report_date_day"], "alias": "not_null_apple_search_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.343961, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__ad_report_organization_id__campaign_id__ad_group_id__ad_id__date_day.54e27817a1", "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"], "alias": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c"}, "created_at": 1678988323.34743, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c\") }}", "language": "sql", "refs": [["apple_search_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_bd72aacf9db10be434541a5eb54a963c.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_campaign_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_campaign_id.e26ed1e146", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_campaign_id"], "alias": "not_null_apple_search_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.3596501, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__campaign_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__campaign_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__campaign_report_date_day.35652b8d1a", "fqn": ["apple_search_ads", "not_null_apple_search_ads__campaign_report_date_day"], "alias": "not_null_apple_search_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.363301, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__campaign_report_organization_id__campaign_id__date_day.647e56213f", "fqn": ["apple_search_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5"}, "created_at": 1678988323.366612, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5\") }}", "language": "sql", "refs": [["apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_3acbf89c4e0b6809bc53bfa9067d89c5.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_keyword_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_keyword_id.ea493710db", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_keyword_id"], "alias": "not_null_apple_search_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.3766341, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__keyword_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__keyword_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__keyword_report_date_day.3dec8d0e82", "fqn": ["apple_search_ads", "not_null_apple_search_ads__keyword_report_date_day"], "alias": "not_null_apple_search_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.3799522, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__keyword_report_organization_id__campaign_id__ad_group_id__keyword_id__date_day.78fb033a13", "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"], "alias": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246"}, "created_at": 1678988323.38364, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246\") }}", "language": "sql", "refs": [["apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_533c8551a101baa56c397525cb8a9246.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__organization_report_organization_id", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__organization_report_organization_id.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_organization_id.b6cf7d69f8", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_organization_id"], "alias": "not_null_apple_search_ads__organization_report_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.393769, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__organization_report`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__organization_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__organization_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__organization_report_date_day.5784fed523", "fqn": ["apple_search_ads", "not_null_apple_search_ads__organization_report_date_day"], "alias": "not_null_apple_search_ads__organization_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.397034, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__organization_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__organization_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__organization_report_organization_id__date_day.8bc84fccc3", "fqn": ["apple_search_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d"}, "created_at": 1678988323.402386, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d\") }}", "language": "sql", "refs": [["apple_search_ads__organization_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__organization_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_f2f453668a8bb7c0387ed85fc7bfaf2d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__search_term_report_date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_date_day.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_date_day.1bc3b0d57c", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_date_day"], "alias": "not_null_apple_search_ads__search_term_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.417616, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__search_term_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_apple_search_ads__search_term_report_search_term_text", "resource_type": "test", "package_name": "apple_search_ads", "path": "not_null_apple_search_ads__search_term_report_search_term_text.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.not_null_apple_search_ads__search_term_report_search_term_text.aecc7447f7", "fqn": ["apple_search_ads", "not_null_apple_search_ads__search_term_report_search_term_text"], "alias": "not_null_apple_search_ads__search_term_report_search_term_text", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.4207602, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/not_null_apple_search_ads__search_term_report_search_term_text.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_term_text\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads`.`apple_search_ads__search_term_report`\nwhere search_term_text is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day", "resource_type": "test", "package_name": "apple_search_ads", "path": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690.sql", "original_file_path": "models/apple_search_ads.yml", "unique_id": "test.apple_search_ads.dbt_utils_unique_combination_of_columns_apple_search_ads__search_term_report_search_term_text__date_day.e60fe79ec4", "fqn": ["apple_search_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690"}, "created_at": 1678988323.424107, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690\") }}", "language": "sql", "refs": [["apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads.apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads/models/apple_search_ads.yml/dbt_utils_unique_combination_o_7c3690db5ce751fbf1f2dff07b3a8690.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_ad_reporting__account_report_account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__account_report_account_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__account_report_account_id.316a64c022", "fqn": ["ad_reporting", "not_null_ad_reporting__account_report_account_id"], "alias": "not_null_ad_reporting__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.590776, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["ad_reporting__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__account_report_platform__date_day__account_id.1cadcf1583", "fqn": ["ad_reporting", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce"}, "created_at": 1678988323.593827, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce\") }}", "language": "sql", "refs": [["ad_reporting__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__account_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_096d5dbf3a188e4736e3d2c607a5a2ce.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_ad_reporting__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__ad_group_report_ad_group_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_group_report_ad_group_id.963e17e842", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_group_report_ad_group_id"], "alias": "not_null_ad_reporting__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.6027, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__ad_group_report_platform__date_day__ad_group_id__campaign_id__account_id.2116e5a78a", "fqn": ["ad_reporting", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342"}, "created_at": 1678988323.6056352, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342\") }}", "language": "sql", "refs": [["ad_reporting__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_group_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_86fffff8dec06644eeb81f4837856342.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_ad_reporting__ad_report_ad_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__ad_report_ad_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__ad_report_ad_id.f3eb210152", "fqn": ["ad_reporting", "not_null_ad_reporting__ad_report_ad_id"], "alias": "not_null_ad_reporting__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.6155038, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["ad_reporting__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__ad_report_platform__date_day__ad_id__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21.sql", "original_file_path": "models/ad_reporting_models.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21"}, "created_at": 1678988323.618958, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21\") }}", "language": "sql", "refs": [["ad_reporting__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__ad_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_c3ce7d8d1708ef4f2ca05b498dce6f21.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_ad_reporting__campaign_report_campaign_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__campaign_report_campaign_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__campaign_report_campaign_id.1cfaa7698b", "fqn": ["ad_reporting", "not_null_ad_reporting__campaign_report_campaign_id"], "alias": "not_null_ad_reporting__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.629914, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["ad_reporting__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__campaign_report_platform__date_day__campaign_id__account_id.4b3426da0f", "fqn": ["ad_reporting", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f"}, "created_at": 1678988323.633028, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f\") }}", "language": "sql", "refs": [["ad_reporting__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__campaign_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_f617d9a2a7237faaa5a8bf82407d243f.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "column_name": null, "file_key_name": "models.ad_reporting__campaign_report"}, "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_ad_reporting__keyword_report_keyword_id", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__keyword_report_keyword_id.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334", "fqn": ["ad_reporting", "not_null_ad_reporting__keyword_report_keyword_id"], "alias": "not_null_ad_reporting__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.643332, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["ad_reporting__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "keyword_id", "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_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["platform", "date_day", "keyword_id", "keyword_match_type", "ad_group_id", "campaign_id", "account_id"], "model": "{{ get_where_subquery(ref('ad_reporting__keyword_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6", "fqn": ["ad_reporting", "dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id"], "alias": "dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e"}, "created_at": 1678988323.646708, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e\") }}", "language": "sql", "refs": [["ad_reporting__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__keyword_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_5499321364b1d21748e920ddf811ea4e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n platform, date_day, keyword_id, keyword_match_type, ad_group_id, campaign_id, account_id\n from `dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__keyword_report`\n group by platform, date_day, keyword_id, keyword_match_type, ad_group_id, campaign_id, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_ad_reporting__search_report_search_query", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__search_report_search_query.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__search_report_search_query.ee2f0fcafb", "fqn": ["ad_reporting", "not_null_ad_reporting__search_report_search_query"], "alias": "not_null_ad_reporting__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.658941, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["ad_reporting__search_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__search_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__search_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371.sql", "original_file_path": "models/ad_reporting_models.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371"}, "created_at": 1678988323.6619468, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371\") }}", "language": "sql", "refs": [["ad_reporting__search_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__search_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_437a89e9e4e53f95ce99529e3a181371.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_ad_reporting__url_report_base_url", "resource_type": "test", "package_name": "ad_reporting", "path": "not_null_ad_reporting__url_report_base_url.sql", "original_file_path": "models/ad_reporting_models.yml", "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6", "fqn": ["ad_reporting", "not_null_ad_reporting__url_report_base_url"], "alias": "not_null_ad_reporting__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988323.6745338, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["ad_reporting__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/not_null_ad_reporting__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`zz_dbt_renee_ad_reporting`.`ad_reporting__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "ad_reporting", "path": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10.sql", "original_file_path": "models/ad_reporting_models.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10"}, "created_at": 1678988323.6793332, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10\") }}", "language": "sql", "refs": [["ad_reporting__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.ad_reporting.ad_reporting__url_report"]}, "compiled_path": "target/compiled/ad_reporting/models/ad_reporting_models.yml/dbt_utils_unique_combination_o_996efa0d96cfeb69e01d6d9960ce6a10.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_modified_at.e5d65fa28f", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_modified_at"], "alias": "not_null_stg_apple_search_ads__ad_group_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.839617, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_history_ad_group_id.dc128eecb7", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.8428931, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_ad_group_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_history_ad_group_id__modified_at.84af14c83b", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f"}, "created_at": 1678988323.8461728, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f\") }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_d82553a0f3b4daa8d59460c85a542d4f.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_ad_group_id.a115f9cfc1", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.976743, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_group_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_group_report_date_day.4dfd46a43b", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_group_report_date_day"], "alias": "not_null_stg_apple_search_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.980559, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_ad_group_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_group_report_ad_group_id__date_day.a0fcc4e33c", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d"}, "created_at": 1678988323.984511, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d\") }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_group_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_107a9492c163887581fde6b34131e42d.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_modified_at.2eea7e006d", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_modified_at"], "alias": "not_null_stg_apple_search_ads__ad_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.994132, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_history_ad_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_history_ad_id.4ad3bde32a", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_history_ad_id"], "alias": "not_null_stg_apple_search_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988323.997967, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_history_ad_id__modified_at.38599b8cba", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31"}, "created_at": 1678988324.001207, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31\") }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_ed0f61b146739c836defcf2fb6005d31.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, modified_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_date_day.e6252346d8", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_date_day"], "alias": "not_null_stg_apple_search_ads__ad_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.010448, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_ad_group_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_group_id.a397755e9f", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_group_id"], "alias": "not_null_stg_apple_search_ads__ad_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.013571, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__ad_report_ad_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__ad_report_ad_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__ad_report_ad_id.d08e760c58", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__ad_report_ad_id"], "alias": "not_null_stg_apple_search_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.0170398, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__ad_report_ad_id__date_day__ad_group_id.0d8d23c516", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9"}, "created_at": 1678988324.020109, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9\") }}", "language": "sql", "refs": [["stg_apple_search_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__ad_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_9ce5e828ce9fa0987b5e86cbcb1207b9.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_modified_at.f34a7a97c9", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_modified_at"], "alias": "not_null_stg_apple_search_ads__campaign_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.0293992, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_history_campaign_id.3f0f7502b8", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_history_campaign_id"], "alias": "not_null_stg_apple_search_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.0325959, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_history_campaign_id__modified_at.317f970af9", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9"}, "created_at": 1678988324.036212, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9\") }}", "language": "sql", "refs": [["stg_apple_search_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_055fa7e8a6c292e0f56d1feec61284a9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, modified_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_campaign_id.b83941e728", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_campaign_id"], "alias": "not_null_stg_apple_search_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.044516, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__campaign_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__campaign_report_date_day.c8dc10a6f3", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__campaign_report_date_day"], "alias": "not_null_stg_apple_search_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.0482671, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__campaign_report_campaign_id__date_day.bad41b0481", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07"}, "created_at": 1678988324.051637, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07\") }}", "language": "sql", "refs": [["stg_apple_search_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_d8bdb244aa45cb237ef5189371733c07.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_history_modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_history_modified_at.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_modified_at.42fde5a287", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_modified_at"], "alias": "not_null_stg_apple_search_ads__keyword_history_modified_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.0608761, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_history_modified_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect modified_at\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`\nwhere modified_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_history_keyword_id.889f83cfd2", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_history_keyword_id"], "alias": "not_null_stg_apple_search_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.0642738, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_history_keyword_id__modified_at.7b06162d24", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5"}, "created_at": 1678988324.067678, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5\") }}", "language": "sql", "refs": [["stg_apple_search_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_history"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_26b09b2f81a50b0ba84b566cd7df85b5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, modified_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_report_keyword_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_keyword_id.501725b09e", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_keyword_id"], "alias": "not_null_stg_apple_search_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.0759912, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__keyword_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__keyword_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__keyword_report_date_day.16098db928", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__keyword_report_date_day"], "alias": "not_null_stg_apple_search_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.0789409, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__keyword_report_keyword_id__date_day.9f0099cff8", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5"}, "created_at": 1678988324.081994, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5\") }}", "language": "sql", "refs": [["stg_apple_search_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__keyword_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_2ec7f68205f05a3b68cfa7324135a1a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n keyword_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__organization_organization_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__organization_organization_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__organization_organization_id.b013ce33cb", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__organization_organization_id"], "alias": "not_null_stg_apple_search_ads__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.090443, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_apple_search_ads_source`.`stg_apple_search_ads__organization`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id.8647048f7a", "fqn": ["apple_search_ads_source", "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__organization_organization_id"], "alias": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b"}, "created_at": 1678988324.093388, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b\") }}", "language": "sql", "refs": [["stg_apple_search_ads__organization"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__organization"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_53ded9060f9d3981217ae23e5d2ba89b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n organization_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__search_term_report__fivetran_id", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__search_term_report__fivetran_id.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report__fivetran_id.aa430d1dad", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report__fivetran_id"], "alias": "not_null_stg_apple_search_ads__search_term_report__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.1022432, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__search_term_report__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_apple_search_ads__search_term_report_date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "not_null_stg_apple_search_ads__search_term_report_date_day.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.not_null_stg_apple_search_ads__search_term_report_date_day.fd93df3302", "fqn": ["apple_search_ads_source", "not_null_stg_apple_search_ads__search_term_report_date_day"], "alias": "not_null_stg_apple_search_ads__search_term_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.105181, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/not_null_stg_apple_search_ads__search_term_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report__fivetran_id__date_day", "resource_type": "test", "package_name": "apple_search_ads_source", "path": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1.sql", "original_file_path": "models/stg_apple_search_ads.yml", "unique_id": "test.apple_search_ads_source.dbt_utils_unique_combination_of_columns_stg_apple_search_ads__search_term_report__fivetran_id__date_day.aad2a48344", "fqn": ["apple_search_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1"}, "created_at": 1678988324.108374, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1\") }}", "language": "sql", "refs": [["stg_apple_search_ads__search_term_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.apple_search_ads_source.stg_apple_search_ads__search_term_report"]}, "compiled_path": "target/compiled/apple_search_ads_source/models/stg_apple_search_ads.yml/dbt_utils_unique_combination_o_4b957c6b8a75dcd1a6055884f71d71c1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n _fivetran_id, date_day\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_history_ad_group_id.220c6220be", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_pinterest_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.190402, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_history_ad_group_id___fivetran_synced.1132e1f339", "fqn": ["pinterest_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7"}, "created_at": 1678988324.193266, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7\") }}", "language": "sql", "refs": [["stg_pinterest_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_14ec492421aa290adbd40aba9f38efa7.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_history_campaign_id.60cb10d341", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_history_campaign_id"], "alias": "not_null_stg_pinterest_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.201963, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_history_campaign_id___fivetran_synced.eff7196b87", "fqn": ["pinterest_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b"}, "created_at": 1678988324.205023, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b\") }}", "language": "sql", "refs": [["stg_pinterest_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_0f71f27ed6b0ce2d4940b4361559871b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, _fivetran_synced\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id.171995cd34", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_history_pin_promotion_id"], "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f"}, "created_at": 1678988324.212629, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f\") }}", "language": "sql", "refs": [["stg_pinterest_ads__pin_promotion_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_5cf03dfc3d2615f9d68ae62d55aa2b8f.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__pin_promotion_history`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_history__fivetran_synced__pin_promotion_id.8e9ab31ea9", "fqn": ["pinterest_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175"}, "created_at": 1678988324.215729, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175\") }}", "language": "sql", "refs": [["stg_pinterest_ads__pin_promotion_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_e0501de9c3316348957b42725bcba175.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_date_day.ed272212a1", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_date_day"], "alias": "not_null_stg_pinterest_ads__pin_promotion_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.223852, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pin_promotion_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id.9c3c9f71ab", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__pin_promotion_report_pin_promotion_id"], "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b"}, "created_at": 1678988324.226673, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b\") }}", "language": "sql", "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__pi_d0985f4b7b2bc6d5ec7f384cc03d6f4b.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect pin_promotion_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__pin_promotion_report`\nwhere pin_promotion_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__pin_promotion_report_date_day__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.7ea04e6024", "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"], "alias": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19"}, "created_at": 1678988324.229837, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19\") }}", "language": "sql", "refs": [["stg_pinterest_ads__pin_promotion_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__pin_promotion_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_b200b80456022485be650ebe0c64fc19.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_date_day.80e8904c4c", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_date_day"], "alias": "not_null_stg_pinterest_ads__ad_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.239893, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__ad_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__ad_group_report_ad_group_id.bb8cf3c471", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__ad_group_report_ad_group_id"], "alias": "not_null_stg_pinterest_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.242955, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__ad_group_report_date_day__ad_group_id__campaign_id__advertiser_id.3800c02b0e", "fqn": ["pinterest_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8"}, "created_at": 1678988324.246377, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8\") }}", "language": "sql", "refs": [["stg_pinterest_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__ad_group_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_e8f9cd4890106f736fbaf772885876c8.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_history_advertiser_id.7d24f665fb", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_history_advertiser_id"], "alias": "not_null_stg_pinterest_ads__advertiser_history_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.256063, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_history_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__advertiser_history`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_history_updated_at__advertiser_id.94e8f4de4b", "fqn": ["pinterest_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733"}, "created_at": 1678988324.258875, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733\") }}", "language": "sql", "refs": [["stg_pinterest_ads__advertiser_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ac571a135eb9bbe6db1401c33b830733.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n updated_at, advertiser_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_date_day.153bd03c95", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_date_day"], "alias": "not_null_stg_pinterest_ads__advertiser_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.267883, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__advertiser_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__advertiser_report_advertiser_id.1b16ed73ff", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__advertiser_report_advertiser_id"], "alias": "not_null_stg_pinterest_ads__advertiser_report_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.270936, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__advertiser_report_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__advertiser_report`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__advertiser_report_date_day__advertiser_id.e92ce8a9c0", "fqn": ["pinterest_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de"}, "created_at": 1678988324.2739909, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de\") }}", "language": "sql", "refs": [["stg_pinterest_ads__advertiser_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__advertiser_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_7440d10d36ca9b555b1bb533d442c6de.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, advertiser_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_date_day.7ef5fb1238", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_date_day"], "alias": "not_null_stg_pinterest_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.283635, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__campaign_report_campaign_id.a287eba0fc", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__campaign_report_campaign_id"], "alias": "not_null_stg_pinterest_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.286688, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__campaign_report_date_day__campaign_id__advertiser_id.ff47cb8abc", "fqn": ["pinterest_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf"}, "created_at": 1678988324.289872, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf\") }}", "language": "sql", "refs": [["stg_pinterest_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__campaign_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ea5276bb765474198ad51f22f75fccbf.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_history_keyword_id.246889377a", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_history_keyword_id"], "alias": "not_null_stg_pinterest_ads__keyword_history_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.299685, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_history_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__keyword_history`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_history_keyword_id__ad_group_id___fivetran_synced.d122faa877", "fqn": ["pinterest_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628"}, "created_at": 1678988324.302866, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628\") }}", "language": "sql", "refs": [["stg_pinterest_ads__keyword_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_history"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_ed0c009a9ff1bbb46e1ea2a210b25628.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_report_date_day", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_date_day.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_date_day.9937216300", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_date_day"], "alias": "not_null_stg_pinterest_ads__keyword_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.311925, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__keyword_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "pinterest_source", "path": "not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.not_null_stg_pinterest_ads__keyword_report_keyword_id.5f00679c48", "fqn": ["pinterest_source", "not_null_stg_pinterest_ads__keyword_report_keyword_id"], "alias": "not_null_stg_pinterest_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.315356, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/not_null_stg_pinterest_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.9504d17df6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_id", "pin_promotion_id", "ad_group_id", "campaign_id", "advertiser_id"], "model": "{{ get_where_subquery(ref('stg_pinterest_ads__keyword_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id", "resource_type": "test", "package_name": "pinterest_source", "path": "dbt_utils_unique_combination_o_b825b00d7629c7441a3daa35cf249236.sql", "original_file_path": "models/stg_pinterest_ads.yml", "unique_id": "test.pinterest_source.dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.9504d17df6", "fqn": ["pinterest_source", "dbt_utils_unique_combination_of_columns_stg_pinterest_ads__keyword_report_date_day__keyword_id__pin_promotion_id__ad_group_id__campaign_id__advertiser_id"], "alias": "dbt_utils_unique_combination_o_b825b00d7629c7441a3daa35cf249236", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b825b00d7629c7441a3daa35cf249236", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b825b00d7629c7441a3daa35cf249236"}, "created_at": 1678988324.320537, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b825b00d7629c7441a3daa35cf249236\") }}", "language": "sql", "refs": [["stg_pinterest_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.pinterest_source.stg_pinterest_ads__keyword_report"]}, "compiled_path": "target/compiled/pinterest_source/models/stg_pinterest_ads.yml/dbt_utils_unique_combination_o_b825b00d7629c7441a3daa35cf249236.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, keyword_id, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n from `dbt-package-testing`.`zz_dbt_renee_pinterest_source`.`stg_pinterest_ads__keyword_report`\n group by date_day, keyword_id, pin_promotion_id, ad_group_id, campaign_id, advertiser_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_stg_tiktok_ads__advertiser_advertiser_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "unique_stg_tiktok_ads__advertiser_advertiser_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.unique_stg_tiktok_ads__advertiser_advertiser_id.078391ba66", "fqn": ["tiktok_ads_source", "unique_stg_tiktok_ads__advertiser_advertiser_id"], "alias": "unique_stg_tiktok_ads__advertiser_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.625039, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/unique_stg_tiktok_ads__advertiser_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select advertiser_id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__advertiser_advertiser_id.5deab92def", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__advertiser_advertiser_id"], "alias": "not_null_stg_tiktok_ads__advertiser_advertiser_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.6282508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__advertiser"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__advertiser"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__advertiser_advertiser_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect advertiser_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__advertiser`\nwhere advertiser_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_history_ad_group_id.04778d7fad", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_history_ad_group_id"], "alias": "not_null_stg_tiktok_ads__ad_group_history_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.631469, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_history_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_group_history`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_history_ad_group_id__updated_at.cec78c01de", "fqn": ["tiktok_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8"}, "created_at": 1678988324.6352608, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8\") }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_group_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_353c130a41ba5d6aab13dbda36b226c8.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_history_ad_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_history_ad_id.4ffd05b23a", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_history_ad_id"], "alias": "not_null_stg_tiktok_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.643563, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_history_ad_id__updated_at.66b86b4dd1", "fqn": ["tiktok_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f"}, "created_at": 1678988324.647124, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f\") }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_fe2e43690b07f6a6cbd499af54b7738f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, updated_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_history_campaign_id.7f9147d1e1", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_history_campaign_id"], "alias": "not_null_stg_tiktok_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.655196, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_history_campaign_id__updated_at.72bf07011b", "fqn": ["tiktok_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000"}, "created_at": 1678988324.659053, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000\") }}", "language": "sql", "refs": [["stg_tiktok_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_history"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_843ebfc08785d00a296625f469aa2000.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_ad_id.ee84d783ed", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_ad_id"], "alias": "not_null_stg_tiktok_ads__ad_report_hourly_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.667271, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.9e2a2dca81", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.671243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__ad_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_report_hourly_ad_id__stat_time_hour.e70f8cef6d", "fqn": ["tiktok_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc"}, "created_at": 1678988324.674923, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc\") }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_e6913172297a173fb855f92cf72b08dc.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.8da17119f1", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id"], "alias": "not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.683761, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_report_hourly_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.ca4b495127", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.687396, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__ad_group_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__ad_group_report_hourly_ad_group_id__stat_time_hour.1aeaeb71ad", "fqn": ["tiktok_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60"}, "created_at": 1678988324.6906009, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60\") }}", "language": "sql", "refs": [["stg_tiktok_ads__ad_group_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__ad_group_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_b8146651452c0bd776f5ad7184463e60.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.ef898379fb", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id"], "alias": "not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.69984, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.e75e13184c", "fqn": ["tiktok_ads_source", "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour"], "alias": "not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.703021, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/not_null_stg_tiktok_ads__campaign_report_hourly_stat_time_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect stat_time_hour\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_tiktok_ads`.`stg_tiktok_ads__campaign_report_hourly`\nwhere stat_time_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour", "resource_type": "test", "package_name": "tiktok_ads_source", "path": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16.sql", "original_file_path": "models/stg_tiktok_ads.yml", "unique_id": "test.tiktok_ads_source.dbt_utils_unique_combination_of_columns_stg_tiktok_ads__campaign_report_hourly_campaign_id__stat_time_hour.8e4a1e4b34", "fqn": ["tiktok_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16"}, "created_at": 1678988324.706243, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16\") }}", "language": "sql", "refs": [["stg_tiktok_ads__campaign_report_hourly"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.tiktok_ads_source.stg_tiktok_ads__campaign_report_hourly"]}, "compiled_path": "target/compiled/tiktok_ads_source/models/stg_tiktok_ads.yml/dbt_utils_unique_combination_o_28d20c1f14a23926a21e229d68eb6b16.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__account_history_account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history_account_id.f1cf38c40f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history_account_id"], "alias": "not_null_stg_facebook_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.7717671, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__account_history__fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__account_history__fivetran_synced.0570e35e1f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__account_history__fivetran_synced"], "alias": "not_null_stg_facebook_ads__account_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.7748868, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__account_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__account_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__account_history_account_id___fivetran_synced.f9b4d28fa2", "fqn": ["facebook_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f"}, "created_at": 1678988324.778044, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f\") }}", "language": "sql", "refs": [["stg_facebook_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__account_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_6c9521eb7e9747df57d9737e83cb864f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, _fivetran_synced\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_history_ad_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_ad_id.11429d3064", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_ad_id"], "alias": "not_null_stg_facebook_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.7865138, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_history_updated_at.250a5a84e4", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_history_updated_at"], "alias": "not_null_stg_facebook_ads__ad_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.789469, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__ad_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_history_ad_id__updated_at.2922c18b58", "fqn": ["facebook_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137"}, "created_at": 1678988324.7925508, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137\") }}", "language": "sql", "refs": [["stg_facebook_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_da2a7458e53ca8b420768a0c3e8e2137.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, updated_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_set_history_ad_set_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_ad_set_id.e19a1df1bb", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_ad_set_id"], "alias": "not_null_stg_facebook_ads__ad_set_history_ad_set_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.801174, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_ad_set_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_set_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__ad_set_history`\nwhere ad_set_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__ad_set_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__ad_set_history_updated_at.ef7fafe0fa", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__ad_set_history_updated_at"], "alias": "not_null_stg_facebook_ads__ad_set_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.8043609, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__ad_set_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__ad_set_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__ad_set_history_ad_set_id__updated_at.0a60ad0fef", "fqn": ["facebook_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f"}, "created_at": 1678988324.809443, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f\") }}", "language": "sql", "refs": [["stg_facebook_ads__ad_set_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__ad_set_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_214e0ea8c1d3eb6e1c1fae451c60969f.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_campaign_id.1ca7a83852", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_campaign_id"], "alias": "not_null_stg_facebook_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.8185222, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__campaign_history_updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__campaign_history_updated_at.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__campaign_history_updated_at.9e59f99270", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__campaign_history_updated_at"], "alias": "not_null_stg_facebook_ads__campaign_history_updated_at", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.822075, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__campaign_history_updated_at.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect updated_at\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__campaign_history`\nwhere updated_at is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__campaign_history_campaign_id__updated_at.7437b392c2", "fqn": ["facebook_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78"}, "created_at": 1678988324.82512, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78\") }}", "language": "sql", "refs": [["stg_facebook_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__campaign_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_6067330a8eb187d5024e9840cd7cbd78.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_at\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history__fivetran_synced.3b0593cb4f", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history__fivetran_synced"], "alias": "not_null_stg_facebook_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.833753, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__creative_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__creative_history_creative_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__creative_history_creative_id.eb4d804261", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__creative_history_creative_id"], "alias": "not_null_stg_facebook_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.836755, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__creative_history_creative_id___fivetran_synced.69ddc26562", "fqn": ["facebook_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217"}, "created_at": 1678988324.839674, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217\") }}", "language": "sql", "refs": [["stg_facebook_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__creative_history"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_c52d893dfedd530a7cd19c495da30217.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, _fivetran_synced\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__basic_ad_ad_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_ad_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_ad_id.2611b250fc", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_ad_id"], "alias": "not_null_stg_facebook_ads__basic_ad_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.8473852, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__basic_ad`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_facebook_ads__basic_ad_account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "not_null_stg_facebook_ads__basic_ad_account_id.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.not_null_stg_facebook_ads__basic_ad_account_id.d06f6d861b", "fqn": ["facebook_ads_source", "not_null_stg_facebook_ads__basic_ad_account_id"], "alias": "not_null_stg_facebook_ads__basic_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988324.850282, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/not_null_stg_facebook_ads__basic_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_facebook_ads_source`.`stg_facebook_ads__basic_ad`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id", "resource_type": "test", "package_name": "facebook_ads_source", "path": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683.sql", "original_file_path": "models/stg_facebook_ads.yml", "unique_id": "test.facebook_ads_source.dbt_utils_unique_combination_of_columns_stg_facebook_ads__basic_ad_date_day__ad_id__account_id.bd909529e7", "fqn": ["facebook_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683"}, "created_at": 1678988324.853158, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683\") }}", "language": "sql", "refs": [["stg_facebook_ads__basic_ad"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.facebook_ads_source.stg_facebook_ads__basic_ad"]}, "compiled_path": "target/compiled/facebook_ads_source/models/stg_facebook_ads.yml/dbt_utils_unique_combination_o_42caf2b48bab7db5c316ae2524dd0683.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.2d5dd77824", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_account_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.064407, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_account_history_ad_account_id.426d71d605", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_account_history_ad_account_id"], "alias": "not_null_stg_snapchat_ads__ad_account_history_ad_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.067868, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_account_history_ad_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_account_history`\nwhere ad_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_account_history_ad_account_id___fivetran_synced.cd4fd6b0be", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d"}, "created_at": 1678988325.071239, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d\") }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_3852df57bdc45c0c215b1863f3f9075d.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history__fivetran_synced.1607c70fda", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.079693, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_history_ad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_history_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_history_ad_id.e9d367fd15", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_history_ad_id"], "alias": "not_null_stg_snapchat_ads__ad_history_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.082994, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_history_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_history`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_history_ad_id___fivetran_synced.f84924f13b", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060"}, "created_at": 1678988325.086106, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060\") }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_f4293c0007c439c8e914dcbf1296b060.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, _fivetran_synced\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_ad_id.7e763de19d", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_ad_id"], "alias": "not_null_stg_snapchat_ads__ad_hourly_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.0952609, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_hourly_report_date_hour.666cda1cd7", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__ad_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.098169, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_hourly_report_ad_id__date_hour.1a4ef6182a", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea"}, "created_at": 1678988325.101522, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea\") }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_51be039d7f287e51c6f47e98ae48f8ea.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n ad_id, date_hour\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.7ed7d105ae", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.110781, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.71c7122278", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id"], "alias": "not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.114044, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_history_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_history`\nwhere ad_squad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_history_ad_squad_id___fivetran_synced.200b225a27", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128"}, "created_at": 1678988325.117585, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128\") }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_squad_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_e1915f47a6425292156cafe7be652128.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.ab16aa72c9", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id"], "alias": "not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.125744, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_squad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.6f0b63a9cb", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.1294878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__ad_squad_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__ad_squad_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__ad_squad_hourly_report_ad_squad_id__date_hour.774a407e69", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3"}, "created_at": 1678988325.132747, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3\") }}", "language": "sql", "refs": [["stg_snapchat_ads__ad_squad_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_f511cc57cc2f37ea815924cccff18bc3.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history__fivetran_synced.55bc48b3ec", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__campaign_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.1416588, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_history_campaign_id.f74a0fb8c0", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_history_campaign_id"], "alias": "not_null_stg_snapchat_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.144716, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_history_campaign_id___fivetran_synced.31b9fb6777", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b"}, "created_at": 1678988325.147637, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b\") }}", "language": "sql", "refs": [["stg_snapchat_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_57987eae5ec7cafd860959dc1cd2003b.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, _fivetran_synced\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.f255c38a3e", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id"], "alias": "not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.157001, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.0bc4218ac8", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour"], "alias": "not_null_stg_snapchat_ads__campaign_hourly_report_date_hour", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.159925, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__campaign_hourly_report_date_hour.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_hour\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__campaign_hourly_report`\nwhere date_hour is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__campaign_hourly_report_campaign_id__date_hour.64293afa9c", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2"}, "created_at": 1678988325.16314, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2\") }}", "language": "sql", "refs": [["stg_snapchat_ads__campaign_hourly_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_0cd5a718b668452c6086029c1d653cd2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, date_hour\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history__fivetran_synced.b9c95b4380", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history__fivetran_synced"], "alias": "not_null_stg_snapchat_ads__creative_history__fivetran_synced", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.172127, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history__fivetran_synced.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_synced\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__creative_history`\nwhere _fivetran_synced is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_history_creative_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_history_creative_id.09c83690f4", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_history_creative_id"], "alias": "not_null_stg_snapchat_ads__creative_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.1751528, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__creative_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_history_creative_id___fivetran_synced.c6f6c78b99", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d"}, "created_at": 1678988325.1788921, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d\") }}", "language": "sql", "refs": [["stg_snapchat_ads__creative_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_6b9615128ce9ee3b9b92bc0b5f9bc33d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n creative_id, _fivetran_synced\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.7ff6bb9c1b", "fqn": ["snapchat_ads_source", "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id"], "alias": "not_null_stg_snapchat_ads__creative_url_tag_history_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.1883001, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/not_null_stg_snapchat_ads__creative_url_tag_history_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`zz_dbt_renee_snapchat_ads_source`.`stg_snapchat_ads__creative_url_tag_history`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at", "resource_type": "test", "package_name": "snapchat_ads_source", "path": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985.sql", "original_file_path": "models/stg_snapchat.yml", "unique_id": "test.snapchat_ads_source.dbt_utils_unique_combination_of_columns_stg_snapchat_ads__creative_url_tag_history_creative_id__param_key__updated_at.cc3fa6acbe", "fqn": ["snapchat_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985"}, "created_at": 1678988325.1920261, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985\") }}", "language": "sql", "refs": [["stg_snapchat_ads__creative_url_tag_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"]}, "compiled_path": "target/compiled/snapchat_ads_source/models/stg_snapchat.yml/dbt_utils_unique_combination_o_bf5f1fe7986f7917e2a647b5f7b1f985.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_microsoft_ads__account_report_account_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__account_report_account_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__account_report_account_id.f88e46157e", "fqn": ["microsoft_ads", "not_null_microsoft_ads__account_report_account_id"], "alias": "not_null_microsoft_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.285971, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["microsoft_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads`.`microsoft_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__account_report_date_day__account_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668.sql", "original_file_path": "models/microsoft_ads.yml", "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", "fqn": ["microsoft_ads", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668"}, "created_at": 1678988325.2892, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668\") }}", "language": "sql", "refs": [["microsoft_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__account_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_9284db0a761f9f76982a86a301c98668.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_microsoft_ads__ad_group_report_ad_group_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_group_report_ad_group_id.1974ec5ab9", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_group_report_ad_group_id"], "alias": "not_null_microsoft_ads__ad_group_report_ad_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.30034, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["microsoft_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_group_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_group_report_ad_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads`.`microsoft_ads__ad_group_report`\nwhere ad_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6.sql", "original_file_path": "models/microsoft_ads.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6"}, "created_at": 1678988325.303481, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6\") }}", "language": "sql", "refs": [["microsoft_ads__ad_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_group_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_40dfe26196c4c6b90b8b7492df4c01d6.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_microsoft_ads__ad_report_ad_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__ad_report_ad_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__ad_report_ad_id.b089709125", "fqn": ["microsoft_ads", "not_null_microsoft_ads__ad_report_ad_id"], "alias": "not_null_microsoft_ads__ad_report_ad_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.315008, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["microsoft_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__ad_report_ad_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ad_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads`.`microsoft_ads__ad_report`\nwhere ad_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822.sql", "original_file_path": "models/microsoft_ads.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822"}, "created_at": 1678988325.318132, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822\") }}", "language": "sql", "refs": [["microsoft_ads__ad_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__ad_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_77fd1448acda33bd9d2c0555648d2822.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_microsoft_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__campaign_report_campaign_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__campaign_report_campaign_id.67aa50e1f8", "fqn": ["microsoft_ads", "not_null_microsoft_ads__campaign_report_campaign_id"], "alias": "not_null_microsoft_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.331563, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["microsoft_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads`.`microsoft_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_microsoft_ads__campaign_report_date_day__account_id__campaign_id__device_os__device_type__network__currency_code", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a.sql", "original_file_path": "models/microsoft_ads.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a"}, "created_at": 1678988325.334966, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a\") }}", "language": "sql", "refs": [["microsoft_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__campaign_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_90115110f76cc54bfcc637b8965bda7a.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_microsoft_ads__keyword_report_keyword_id", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__keyword_report_keyword_id.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__keyword_report_keyword_id.da1d648d3b", "fqn": ["microsoft_ads", "not_null_microsoft_ads__keyword_report_keyword_id"], "alias": "not_null_microsoft_ads__keyword_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.3462012, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["microsoft_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__keyword_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads`.`microsoft_ads__keyword_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854.sql", "original_file_path": "models/microsoft_ads.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854"}, "created_at": 1678988325.349354, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854\") }}", "language": "sql", "refs": [["microsoft_ads__keyword_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__keyword_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_44d9a6d860076a5eefdaf319891f3854.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_microsoft_ads__search_report_search_query", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__search_report_search_query.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__search_report_search_query.fa3625d66d", "fqn": ["microsoft_ads", "not_null_microsoft_ads__search_report_search_query"], "alias": "not_null_microsoft_ads__search_report_search_query", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.363287, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["microsoft_ads__search_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__search_report_search_query.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect search_query\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads`.`microsoft_ads__search_report`\nwhere search_query is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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__match_type.8b1ebd50a3": {"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", "match_type"], "model": "{{ get_where_subquery(ref('microsoft_ads__search_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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__match_type", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d.sql", "original_file_path": "models/microsoft_ads.yml", "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__match_type.8b1ebd50a3", "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__match_type"], "alias": "dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d"}, "created_at": 1678988325.3671548, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d\") }}", "language": "sql", "refs": [["microsoft_ads__search_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__search_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_b73fdaf0afd1eb1f0b0e2311ce77d70d.sql", "compiled": true, "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, match_type\n from `dbt-package-testing`.`zz_dbt_renee_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, match_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_microsoft_ads__url_report_base_url", "resource_type": "test", "package_name": "microsoft_ads", "path": "not_null_microsoft_ads__url_report_base_url.sql", "original_file_path": "models/microsoft_ads.yml", "unique_id": "test.microsoft_ads.not_null_microsoft_ads__url_report_base_url.c1af50307a", "fqn": ["microsoft_ads", "not_null_microsoft_ads__url_report_base_url"], "alias": "not_null_microsoft_ads__url_report_base_url", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988325.382344, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["microsoft_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/not_null_microsoft_ads__url_report_base_url.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect base_url\nfrom `dbt-package-testing`.`zz_dbt_renee_microsoft_ads`.`microsoft_ads__url_report`\nwhere base_url is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "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", "resource_type": "test", "package_name": "microsoft_ads", "path": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432.sql", "original_file_path": "models/microsoft_ads.yml", "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", "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"], "alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432", "checksum": {"name": "none", "checksum": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432"}, "created_at": 1678988325.3867068, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432\") }}", "language": "sql", "refs": [["microsoft_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.microsoft_ads.microsoft_ads__url_report"]}, "compiled_path": "target/compiled/microsoft_ads/models/microsoft_ads.yml/dbt_utils_unique_combination_o_64edf902e79ea377b0f44b91e375b432.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__account_history_account_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__account_history_account_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__account_history_account_id.66fb3601e2", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__account_history_account_id"], "alias": "not_null_stg_twitter_ads__account_history_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.548882, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__account_history_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__account_history`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_account_id__updated_timestamp.2725b1ff40", "fqn": ["twitter_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0"}, "created_at": 1678988325.551414, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0\") }}", "language": "sql", "refs": [["stg_twitter_ads__account_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__account_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_568d1f63aee1f98c5b03795b1c7ce6e0.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n account_id, updated_timestamp\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_history_campaign_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_history_campaign_id.51218487ce", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_history_campaign_id"], "alias": "not_null_stg_twitter_ads__campaign_history_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.558521, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_history_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__campaign_history`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_campaign_id__updated_timestamp.c7054e5b55", "fqn": ["twitter_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2"}, "created_at": 1678988325.561412, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2\") }}", "language": "sql", "refs": [["stg_twitter_ads__campaign_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_3a2db0bbb04188c2d34d0a3918a671e2.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n campaign_id, updated_timestamp\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_history_line_item_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_history_line_item_id.2cef040809", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_history_line_item_id"], "alias": "not_null_stg_twitter_ads__line_item_history_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.5689971, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_history_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_history`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_line_item_id__updated_timestamp.b12672e022", "fqn": ["twitter_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3"}, "created_at": 1678988325.571724, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3\") }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_46813227544cee5d3f0e709e692abea3.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id.f447a1cd09", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id"], "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976"}, "created_at": 1678988325.57952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976\") }}", "language": "sql", "refs": [["stg_twitter_ads__promoted_tweet_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_b9fd075f90e22952cf35b8a246a98976.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_history`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_history_promoted_tweet_id__updated_timestamp.dddc4a21ef", "fqn": ["twitter_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca"}, "created_at": 1678988325.582346, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca\") }}", "language": "sql", "refs": [["stg_twitter_ads__promoted_tweet_history"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_d9257bc7a9cdb33491e1f7fe6f42bbca.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_date_day.c4c46a5894", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_date_day"], "alias": "not_null_stg_twitter_ads__promoted_tweet_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.5904691, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id.6028694598", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_promoted_tweet_id"], "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa"}, "created_at": 1678988325.59343, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa\") }}", "language": "sql", "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__prom_46616b936836e80f58bf2b489d5247aa.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect promoted_tweet_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere promoted_tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__promoted_tweet_report_placement.c1b1f648b3", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__promoted_tweet_report_placement"], "alias": "not_null_stg_twitter_ads__promoted_tweet_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.596693, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__promoted_tweet_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__promoted_tweet_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__promoted_tweet_report_date_day__promoted_tweet_id__placement.7028206273", "fqn": ["twitter_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9"}, "created_at": 1678988325.6001122, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9\") }}", "language": "sql", "refs": [["stg_twitter_ads__promoted_tweet_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__promoted_tweet_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_3d583fe3c6abbb0e930d21030936ced9.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_url_index", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_index.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_index.e998fb67be", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_index"], "alias": "not_null_stg_twitter_ads__tweet_url_index", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.6094878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_index.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect index\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__tweet_url`\nwhere index is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_url_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_url_tweet_id.f7e1670218", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_url_tweet_id"], "alias": "not_null_stg_twitter_ads__tweet_url_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.613206, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_url_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__tweet_url`\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__tweet_url_index__tweet_id.eab5b85d74", "fqn": ["twitter_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540"}, "created_at": 1678988325.6167219, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540\") }}", "language": "sql", "refs": [["stg_twitter_ads__tweet_url"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet_url"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_67f262d96b6883ebf74236649dcc0540.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n index, tweet_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_date_day.053c09786c", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_date_day"], "alias": "not_null_stg_twitter_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.624992, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_campaign_id.a63b62981f", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_campaign_id"], "alias": "not_null_stg_twitter_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.628279, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__campaign_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__campaign_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__campaign_report_placement.5067d8c4f4", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__campaign_report_placement"], "alias": "not_null_stg_twitter_ads__campaign_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.631506, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__campaign_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__campaign_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_date_day__campaign_id__placement.71102d8fdb", "fqn": ["twitter_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0"}, "created_at": 1678988325.634495, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0\") }}", "language": "sql", "refs": [["stg_twitter_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__campaign_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_8ea2fb330c061f42c1639904f6bdc5f0.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_date_day.0f4d8cc8fe", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_date_day"], "alias": "not_null_stg_twitter_ads__line_item_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.643166, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_line_item_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_line_item_id.9f5a4860b7", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_line_item_id"], "alias": "not_null_stg_twitter_ads__line_item_report_line_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.646029, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_line_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect line_item_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere line_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_report_placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_report_placement.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_report_placement.cd7e77e0eb", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_report_placement"], "alias": "not_null_stg_twitter_ads__line_item_report_placement", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.649133, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_report_placement.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect placement\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_report`\nwhere placement is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_report_date_day__line_item_id__placement.251e077e6b", "fqn": ["twitter_ads_source", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb"}, "created_at": 1678988325.6522582, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb\") }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_aaeab9295a1b92ec034614169e5444cb.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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_keyword_id.e5f015e9ec": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "keyword_id", "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id"], "alias": "not_null_stg_twitter_ads__line_item_keywords_report_keyword_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.661056, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect keyword_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_keywords_report`\nwhere keyword_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "keyword_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_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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__line_item_keywords_report_date_day", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__line_item_keywords_report_date_day.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__line_item_keywords_report_date_day"], "alias": "not_null_stg_twitter_ads__line_item_keywords_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.664978, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__line_item_keywords_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_keywords_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "date_day", "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__keyword_id.fbb70cacf6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["date_day", "keyword_id"], "model": "{{ get_where_subquery(ref('stg_twitter_ads__line_item_keywords_report')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id.fbb70cacf6", "fqn": ["twitter_ads_source", "dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id"], "alias": "dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9"}, "created_at": 1678988325.6679108, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9\") }}", "language": "sql", "refs": [["stg_twitter_ads__line_item_keywords_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/dbt_utils_unique_combination_o_e6d80438f6069924aabc58f58480a4b9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, keyword_id\n from `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__line_item_keywords_report`\n group by date_day, keyword_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_twitter_ads__tweet_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "not_null_stg_twitter_ads__tweet_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd", "fqn": ["twitter_ads_source", "not_null_stg_twitter_ads__tweet_tweet_id"], "alias": "not_null_stg_twitter_ads__tweet_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.676694, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__tweet"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/not_null_stg_twitter_ads__tweet_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect tweet_id\nfrom `dbt-package-testing`.`zz_dbt_renee_twitter_ads_source`.`stg_twitter_ads__tweet`\nwhere tweet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_stg_twitter_ads__tweet_tweet_id", "resource_type": "test", "package_name": "twitter_ads_source", "path": "unique_stg_twitter_ads__tweet_tweet_id.sql", "original_file_path": "models/stg_twitter_ads.yml", "unique_id": "test.twitter_ads_source.unique_stg_twitter_ads__tweet_tweet_id.7e44536c95", "fqn": ["twitter_ads_source", "unique_stg_twitter_ads__tweet_tweet_id"], "alias": "unique_stg_twitter_ads__tweet_tweet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.6799731, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["stg_twitter_ads__tweet"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.twitter_ads_source.stg_twitter_ads__tweet"]}, "compiled_path": "target/compiled/twitter_ads_source/models/stg_twitter_ads.yml/unique_stg_twitter_ads__tweet_tweet_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select tweet_id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__account_report_account_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__account_report_account_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_account_id.0c34ea1842", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_account_id"], "alias": "not_null_linkedin_ads__account_report_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.7487261, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__account_report`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__account_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__account_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__account_report_date_day.c4b33f8f53", "fqn": ["linkedin", "not_null_linkedin_ads__account_report_date_day"], "alias": "not_null_linkedin_ads__account_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.751113, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__account_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__account_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__account_report_date_day__account_id.a2dcede91c", "fqn": ["linkedin", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231"}, "created_at": 1678988325.753518, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231\") }}", "language": "sql", "refs": [["linkedin_ads__account_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__account_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_0644abec3559f9c0247b709331bb1231.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n date_day, account_id\n from `dbt-package-testing`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_date_day.8d320b88b1", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_date_day"], "alias": "not_null_linkedin_ads__campaign_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.761021, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__campaign_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_report_campaign_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_report_campaign_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_report_campaign_id.bf43964b15", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_report_campaign_id"], "alias": "not_null_linkedin_ads__campaign_report_campaign_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.763587, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_report_campaign_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__campaign_report`\nwhere campaign_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_report_date_day__campaign_id__account_id__campaign_group_id.0b09b4b3f3", "fqn": ["linkedin", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873"}, "created_at": 1678988325.7663832, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873\") }}", "language": "sql", "refs": [["linkedin_ads__campaign_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_fd56be6c8a6c070551363fa2fd8d2873.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_group_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_group_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_date_day.2676a1f76b", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_date_day"], "alias": "not_null_linkedin_ads__campaign_group_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.774078, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__campaign_group_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__campaign_group_report_campaign_group_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__campaign_group_report_campaign_group_id.39b448cdaf", "fqn": ["linkedin", "not_null_linkedin_ads__campaign_group_report_campaign_group_id"], "alias": "not_null_linkedin_ads__campaign_group_report_campaign_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.77673, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__campaign_group_report_campaign_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect campaign_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__campaign_group_report`\nwhere campaign_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__campaign_group_report_date_day__campaign_group_id__account_id.f60989a7a6", "fqn": ["linkedin", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e"}, "created_at": 1678988325.78017, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e\") }}", "language": "sql", "refs": [["linkedin_ads__campaign_group_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__campaign_group_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_bcb471c45c713cd1ea59bd0229ed3f9e.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__creative_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__creative_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_date_day.0c6338b020", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_date_day"], "alias": "not_null_linkedin_ads__creative_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.788234, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__creative_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__creative_report_creative_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__creative_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__creative_report_creative_id.096d93f889", "fqn": ["linkedin", "not_null_linkedin_ads__creative_report_creative_id"], "alias": "not_null_linkedin_ads__creative_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.7915268, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__creative_report_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__creative_report`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__creative_report_date_day__creative_id__campaign_id__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92.sql", "original_file_path": "models/linkedin.yml", "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", "fqn": ["linkedin", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92"}, "created_at": 1678988325.794534, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92\") }}", "language": "sql", "refs": [["linkedin_ads__creative_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__creative_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_28cc8f6d273bc5b366ed325805452f92.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_date_day", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_date_day.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_date_day"], "alias": "not_null_linkedin_ads__url_report_date_day", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.804356, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_date_day.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect date_day\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__url_report`\nwhere date_day is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "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}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_creative_id", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_creative_id.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_creative_id"], "alias": "not_null_linkedin_ads__url_report_creative_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1678988325.807256, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_creative_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect creative_id\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__url_report`\nwhere creative_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "creative_id", "file_key_name": "models.linkedin_ads__url_report"}, "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "click_uri", "model": "{{ get_where_subquery(ref('linkedin_ads__url_report')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_linkedin_ads__url_report_click_uri", "resource_type": "test", "package_name": "linkedin", "path": "not_null_linkedin_ads__url_report_click_uri.sql", "original_file_path": "models/linkedin.yml", "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb", "fqn": ["linkedin", "not_null_linkedin_ads__url_report_click_uri"], "alias": "not_null_linkedin_ads__url_report_click_uri", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true}, "created_at": 1678988325.811229, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(enabled=True) }}", "language": "sql", "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/not_null_linkedin_ads__url_report_click_uri.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect click_uri\nfrom `dbt-package-testing`.`zz_dbt_renee_linkedin_ads`.`linkedin_ads__url_report`\nwhere click_uri is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "column_name": "click_uri", "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"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_date_day__creative_id__campaign_id__campaign_group_id__account_id", "resource_type": "test", "package_name": "linkedin", "path": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f.sql", "original_file_path": "models/linkedin.yml", "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", "fqn": ["linkedin", "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": ""}, "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"}, "tags": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f"}, "created_at": 1678988325.8158872, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(enabled=True,alias=\"dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f\") }}", "language": "sql", "refs": [["linkedin_ads__url_report"]], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.linkedin.linkedin_ads__url_report"]}, "compiled_path": "target/compiled/linkedin/models/linkedin.yml/dbt_utils_unique_combination_o_24d7d196c7f59231b7de190c11b33a2f.sql", "compiled": true, "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`.`zz_dbt_renee_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": [], "column_name": null, "file_key_name": "models.linkedin_ads__url_report"}}, "sources": {"source.microsoft_ads_source.microsoft_ads.account_history": {"database": "dbt-package-testing", "schema": "bingads", "name": "account_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "account_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "account_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`bingads`.`account_history`", "created_at": 1678988325.8257952}, "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report": {"database": "dbt-package-testing", "schema": "bingads", "name": "account_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.account_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "account_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "account_performance_daily_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record 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`.`bingads`.`account_performance_daily_report`", "created_at": 1678988325.8264709}, "source.microsoft_ads_source.microsoft_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "bingads", "name": "ad_group_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`bingads`.`ad_group_history`", "created_at": 1678988325.826875}, "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report": {"database": "dbt-package-testing", "schema": "bingads", "name": "ad_group_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_group_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_group_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_performance_daily_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record 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": []}, "budget_association_status": {"name": "budget_association_status", "description": "The status of the campaign's budget.", "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`.`bingads`.`ad_group_performance_daily_report`", "created_at": 1678988325.827225}, "source.microsoft_ads_source.microsoft_ads.ad_history": {"database": "dbt-package-testing", "schema": "bingads", "name": "ad_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`bingads`.`ad_history`", "created_at": 1678988325.8275478}, "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report": {"database": "dbt-package-testing", "schema": "bingads", "name": "ad_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.ad_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "ad_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_performance_daily_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record 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`.`bingads`.`ad_performance_daily_report`", "created_at": 1678988325.827926}, "source.microsoft_ads_source.microsoft_ads.campaign_history": {"database": "dbt-package-testing", "schema": "bingads", "name": "campaign_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`bingads`.`campaign_history`", "created_at": 1678988325.828257}, "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report": {"database": "dbt-package-testing", "schema": "bingads", "name": "campaign_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.campaign_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "campaign_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_performance_daily_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record 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`.`bingads`.`campaign_performance_daily_report`", "created_at": 1678988325.8286269}, "source.microsoft_ads_source.microsoft_ads.keyword_history": {"database": "dbt-package-testing", "schema": "bingads", "name": "keyword_history", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_history", "fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_history"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "keyword_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`bingads`.`keyword_history`", "created_at": 1678988325.8289979}, "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report": {"database": "dbt-package-testing", "schema": "bingads", "name": "keyword_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.keyword_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "keyword_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "keyword_performance_daily_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record 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`.`bingads`.`keyword_performance_daily_report`", "created_at": 1678988325.82942}, "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report": {"database": "dbt-package-testing", "schema": "bingads", "name": "search_query_performance_daily_report", "resource_type": "source", "package_name": "microsoft_ads_source", "path": "models/src_microsoft_ads.yml", "original_file_path": "models/src_microsoft_ads.yml", "unique_id": "source.microsoft_ads_source.microsoft_ads.search_query_performance_daily_report", "fqn": ["microsoft_ads_source", "microsoft_ads", "search_query_performance_daily_report"], "source_name": "microsoft_ads", "source_description": "", "loader": "Fivetran", "identifier": "search_query_performance_daily_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record 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`.`bingads`.`search_query_performance_daily_report`", "created_at": 1678988325.829804}, "source.reddit_ads_source.reddit_ads.account": {"database": "dbt-package-testing", "schema": "reddit_ads", "name": "account", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.account", "fqn": ["reddit_ads_source", "reddit_ads", "account"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "account", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about an account.", "columns": {"id": {"name": "id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "attribution_type": {"name": "attribution_type", "description": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "click_attribution_window": {"name": "click_attribution_window", "description": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency this account uses (ISO-4217)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "time_zone_id": {"name": "time_zone_id", "description": "The time zone id preference for this account", "meta": {}, "data_type": null, "quote": null, "tags": []}, "view_attribution_window": {"name": "view_attribution_window", "description": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\"", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`reddit_ads`.`account`", "created_at": 1678988325.830174}, "source.reddit_ads_source.reddit_ads.account_report": {"database": "dbt-package-testing", "schema": "reddit_ads", "name": "account_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.account_report", "fqn": ["reddit_ads_source", "reddit_ads", "account_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "account_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and account.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`reddit_ads`.`account_report`", "created_at": 1678988325.8312588}, "source.reddit_ads_source.reddit_ads.ad": {"database": "dbt-package-testing", "schema": "reddit_ads", "name": "ad", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad", "fqn": ["reddit_ads_source", "reddit_ads", "ad"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each ad.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the 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": []}, "click_url": {"name": "click_url", "description": "The destination url, or the website address, that a visitor goes to when they click on the ad", "meta": {}, "data_type": null, "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "post_id": {"name": "post_id", "description": "The ID of the post.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "post_url": {"name": "post_url", "description": "The URL belonging to the post.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "rejection_reason": {"name": "rejection_reason", "description": "Reason why entity was rejected.", "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`.`reddit_ads`.`ad`", "created_at": 1678988325.831639}, "source.reddit_ads_source.reddit_ads.ad_report": {"database": "dbt-package-testing", "schema": "reddit_ads", "name": "ad_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and ad.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "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": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`reddit_ads`.`ad_report`", "created_at": 1678988325.832022}, "source.reddit_ads_source.reddit_ads.ad_group": {"database": "dbt-package-testing", "schema": "reddit_ads", "name": "ad_group", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_group", "fqn": ["reddit_ads_source", "reddit_ads", "ad_group"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_strategy": {"name": "bid_strategy", "description": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bid_value": {"name": "bid_value", "description": "The amount to pay in microcurrency per bidding event.", "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": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "end_time": {"name": "end_time", "description": "When the entity will stop delivering.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expand_targeting": {"name": "expand_targeting", "description": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "goal_type": {"name": "goal_type", "description": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "goal_value": {"name": "goal_value", "description": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "optimization_strategy_type": {"name": "optimization_strategy_type", "description": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "start_time": {"name": "start_time", "description": "When the entity will begin to deliver.", "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`.`reddit_ads`.`ad_group`", "created_at": 1678988325.832386}, "source.reddit_ads_source.reddit_ads.ad_group_report": {"database": "dbt-package-testing", "schema": "reddit_ads", "name": "ad_group_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.ad_group_report", "fqn": ["reddit_ads_source", "reddit_ads", "ad_group_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_group_id": {"name": "ad_group_id", "description": "The ID of the ad group.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`reddit_ads`.`ad_group_report`", "created_at": 1678988325.8327732}, "source.reddit_ads_source.reddit_ads.campaign": {"database": "dbt-package-testing", "schema": "reddit_ads", "name": "campaign", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.campaign", "fqn": ["reddit_ads_source", "reddit_ads", "campaign"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents information about each campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The ID of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "configured_status": {"name": "configured_status", "description": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\"", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_status": {"name": "effective_status", "description": "The calculated status determining the real status of this entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "funding_instrument_id": {"name": "funding_instrument_id", "description": "Campaign level funding instrument id", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_processing": {"name": "is_processing", "description": "Whether or not effective status is processing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "objective": {"name": "objective", "description": "The objective type of a 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`.`reddit_ads`.`campaign`", "created_at": 1678988325.8331132}, "source.reddit_ads_source.reddit_ads.campaign_report": {"database": "dbt-package-testing", "schema": "reddit_ads", "name": "campaign_report", "resource_type": "source", "package_name": "reddit_ads_source", "path": "models/src_reddit_ads.yml", "original_file_path": "models/src_reddit_ads.yml", "unique_id": "source.reddit_ads_source.reddit_ads.campaign_report", "fqn": ["reddit_ads_source", "reddit_ads", "campaign_report"], "source_name": "reddit_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a summary of events for each given date and campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when Fivetran synced a record.", "meta": {}, "data_type": null, "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": []}, "clicks": {"name": "clicks", "description": "The number of clicks detected for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comment_downvotes": {"name": "comment_downvotes", "description": "The number comment downvotes for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comment_upvotes": {"name": "comment_upvotes", "description": "The number comment upvotes for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "comments_page_views": {"name": "comments_page_views", "description": "The number of times the comments page was viewed for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "conversion_roas": {"name": "conversion_roas", "description": "Return on ad spend for purchases for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cpc": {"name": "cpc", "description": "The cost-per-click for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ctr": {"name": "ctr", "description": "The click-through-rate for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "YYYY-MM-DD formatted date", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ecpm": {"name": "ecpm", "description": "The effective CPM for this period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "The number of impressions served for this report period", "meta": {}, "data_type": null, "quote": null, "tags": []}, "region": {"name": "region", "description": "The region (US state or UK country) targeted for the reports", "meta": {}, "data_type": null, "quote": null, "tags": []}, "spend": {"name": "spend", "description": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_started": {"name": "video_started", "description": "The number of times the ad was served and the video began playing", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_25_percent": {"name": "video_watched_25_percent", "description": "The number of times the ad was served and at least 25% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_3_seconds": {"name": "video_watched_3_seconds", "description": "The number of times the ad was served and at least 3 seconds of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_50_percent": {"name": "video_watched_50_percent", "description": "The number of times the ad was served and at least 50% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_5_seconds": {"name": "video_watched_5_seconds", "description": "The number of times the ad was served and at least 5 seconds of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "video_watched_75_percent": {"name": "video_watched_75_percent", "description": "The number of times the ad was served and at least 75% of the video has played", "meta": {}, "data_type": null, "quote": null, "tags": []}, "viewer_comments": {"name": "viewer_comments", "description": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`reddit_ads`.`campaign_report`", "created_at": 1678988325.833477}, "source.amazon_ads_source.amazon_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "ad_group_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_history", "fqn": ["amazon_ads_source", "amazon_ads", "ad_group_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents an ad group in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the AdGroup.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name 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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_bid": {"name": "default_bid", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or 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`.`amazon_ads`.`ad_group_history`", "created_at": 1678988325.833859}, "source.amazon_ads_source.amazon_ads.ad_group_level_report": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "ad_group_level_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.ad_group_level_report", "fqn": ["amazon_ads_source", "amazon_ads", "ad_group_level_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_level_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by Amazon ad group.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "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": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "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`.`amazon_ads`.`ad_group_level_report`", "created_at": 1678988325.8342102}, "source.amazon_ads_source.amazon_ads.advertised_product_report": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "advertised_product_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.advertised_product_report", "fqn": ["amazon_ads_source", "amazon_ads", "advertised_product_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "advertised_product_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Advertised product reports contain performance data for products that are advertised as part of your campaigns.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ad_id": {"name": "ad_id", "description": "The ID of the AdGroup.", "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": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "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`.`amazon_ads`.`advertised_product_report`", "created_at": 1678988325.8345642}, "source.amazon_ads_source.amazon_ads.campaign_history": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "campaign_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.campaign_history", "fqn": ["amazon_ads_source", "amazon_ads", "campaign_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a campaign in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "portfolio_id": {"name": "portfolio_id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bidding_strategy": {"name": "bidding_strategy", "description": "The bidding strategy associated with a campaign (legacyForSales, autoForSales, or manual.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "campaign_type": {"name": "campaign_type", "description": "The ad type related to the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "The daily budget for the campaign as set by the advertiser.", "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": []}, "placement": {"name": "placement", "description": "The placement location where bid controls are used (placementTop or placementProductPage.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "premium_bid_adjustment": {"name": "premium_bid_adjustment", "description": "A boolean representing whether premium bid adjustment is turned on for the campaign.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "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": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or archived).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "targeting_type": {"name": "targeting_type", "description": "The type of targeting used for the campaign, either manual or auto.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`amazon_ads`.`campaign_history`", "created_at": 1678988325.835043}, "source.amazon_ads_source.amazon_ads.campaign_level_report": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "campaign_level_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.campaign_level_report", "fqn": ["amazon_ads_source", "amazon_ads", "campaign_level_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_level_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record in this table represents the daily performance by Amazon campaign.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "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": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "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`.`amazon_ads`.`campaign_level_report`", "created_at": 1678988325.835395}, "source.amazon_ads_source.amazon_ads.keyword_history": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "keyword_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.keyword_history", "fqn": ["amazon_ads_source", "amazon_ads", "keyword_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "keyword_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a keyword in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "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": []}, "bid": {"name": "bid", "description": "Bid associated with this keyword.", "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": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "keyword_text": {"name": "keyword_text", "description": "The exact text for the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "match_type": {"name": "match_type", "description": "One of (broad, exact, or phrase.)", "meta": {}, "data_type": null, "quote": null, "tags": []}, "native_language_keyword": {"name": "native_language_keyword", "description": "The unlocalized keyword text in the preferred locale of the advertiser.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or 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`.`amazon_ads`.`keyword_history`", "created_at": 1678988325.8357718}, "source.amazon_ads_source.amazon_ads.portfolio_history": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "portfolio_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.portfolio_history", "fqn": ["amazon_ads_source", "amazon_ads", "portfolio_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "portfolio_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a portfolio in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the Portfolio.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_amount": {"name": "budget_amount", "description": "The budget amount associated with the portfolio. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_currency_code": {"name": "budget_currency_code", "description": "The currency used for all monetary values for entities under this profile. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_end_date": {"name": "budget_end_date", "description": "The end date after which the budget is no longer applied. Optional if policy is set to dateRange or monthlyRecurring.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_start_date": {"name": "budget_start_date", "description": "The starting date in YYYYMMDD format to which the budget is applied. Required if policy is set to dateRange. Not specified if policy is set to monthlyRecurring. Note that the starting date for monthlyRecurring is the date when the policy is set.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "budget_policy": {"name": "budget_policy", "description": "The budget policy. Set to dateRange to specify a budget for a specific period of time. Set to monthlyRecurring to specify a budget that is automatically renewed at the beginning of each month. Cannot be null.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "in_budget": {"name": "in_budget", "description": "Indicates the current budget status of the portfolio. Set to true if the portfolio is in budget, set to false if the portfolio is out of budget.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or 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`.`amazon_ads`.`portfolio_history`", "created_at": 1678988325.836124}, "source.amazon_ads_source.amazon_ads.product_ad_history": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "product_ad_history", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.product_ad_history", "fqn": ["amazon_ads_source", "amazon_ads", "product_ad_history"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "product_ad_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a product in Amazon Ads.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The ID of the Ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_updated_date": {"name": "last_updated_date", "description": "Date of last update to record.", "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": []}, "asin": {"name": "asin", "description": "The Amazon Standard Identification Number (ASIN) associated with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "creation_date": {"name": "creation_date", "description": "The date of creation of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sku": {"name": "sku", "description": "The product SKU associated with the ad.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "serving_status": {"name": "serving_status", "description": "The current serving status of the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state of the record (enabled, paused, or 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`.`amazon_ads`.`product_ad_history`", "created_at": 1678988325.8364859}, "source.amazon_ads_source.amazon_ads.profile": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "profile", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.profile", "fqn": ["amazon_ads_source", "amazon_ads", "profile"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "profile", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents a profile. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "profile_id": {"name": "profile_id", "description": "ID of the profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplace.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_marketplace_string_id": {"name": "account_marketplace_string_id", "description": "The identifier of the marketplace to which the account is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Account Name. Not currently populated for sellers.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account subtype.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "One of seller, vendor, or agency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_valid_payment_method": {"name": "account_valid_payment_method", "description": "For Vendors, this returns if the Advertiser has set up a valid payment method.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country_code": {"name": "country_code", "description": "The code for a given country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_code": {"name": "currency_code", "description": "The currency used for all monetary values for entities under this profile.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "daily_budget": {"name": "daily_budget", "description": "Daily budget for Sponsored Product campaigns for seller type accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "timezone": {"name": "timezone", "description": "The time zone used for all date-based campaign management and reporting.", "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`.`amazon_ads`.`profile`", "created_at": 1678988325.836858}, "source.amazon_ads_source.amazon_ads.targeting_keyword_report": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "targeting_keyword_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.targeting_keyword_report", "fqn": ["amazon_ads_source", "amazon_ads", "targeting_keyword_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "targeting_keyword_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Targeting reports contain performance metrics broken down by both targeting expressions and keywords.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "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": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "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`.`amazon_ads`.`targeting_keyword_report`", "created_at": 1678988325.8372412}, "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": {"database": "dbt-package-testing", "schema": "amazon_ads", "name": "search_term_ad_keyword_report", "resource_type": "source", "package_name": "amazon_ads_source", "path": "models/src_amazon_ads.yml", "original_file_path": "models/src_amazon_ads.yml", "unique_id": "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report", "fqn": ["amazon_ads_source", "amazon_ads", "search_term_ad_keyword_report"], "source_name": "amazon_ads", "source_description": "", "loader": "Fivetran", "identifier": "search_term_ad_keyword_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Search term reports contain search term performance metrics broken down by targeting expressions and keywords.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date": {"name": "date", "description": "The date of the report.", "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": []}, "keyword_id": {"name": "keyword_id", "description": "The ID of the keyword.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "clicks": {"name": "clicks", "description": "Total number of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "impressions": {"name": "impressions", "description": "Total number of ad impressions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cost": {"name": "cost", "description": "Total cost of ad clicks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "search_term": {"name": "search_term", "description": "The search term used by the customer.", "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`.`amazon_ads`.`search_term_ad_keyword_report`", "created_at": 1678988325.837631}, "source.linkedin_source.linkedin.ad_analytics_by_creative": {"database": "dbt-package-testing", "schema": "linkedin_ads", "name": "ad_analytics_by_creative", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_creative", "fqn": ["linkedin_source", "linkedin", "ad_analytics_by_creative"], "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "ad_analytics_by_creative", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`linkedin_ads`.`ad_analytics_by_creative`", "created_at": 1678988325.8379788}, "source.linkedin_source.linkedin.creative_history": {"database": "dbt-package-testing", "schema": "linkedin_ads", "name": "creative_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin.creative_history", "fqn": ["linkedin_source", "linkedin", "creative_history"], "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "creative_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`linkedin_ads`.`creative_history`", "created_at": 1678988325.838326}, "source.linkedin_source.linkedin.campaign_history": {"database": "dbt-package-testing", "schema": "linkedin_ads", "name": "campaign_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin.campaign_history", "fqn": ["linkedin_source", "linkedin", "campaign_history"], "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`linkedin_ads`.`campaign_history`", "created_at": 1678988325.838725}, "source.linkedin_source.linkedin.campaign_group_history": {"database": "dbt-package-testing", "schema": "linkedin_ads", "name": "campaign_group_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin.campaign_group_history", "fqn": ["linkedin_source", "linkedin", "campaign_group_history"], "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "campaign_group_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`linkedin_ads`.`campaign_group_history`", "created_at": 1678988325.839079}, "source.linkedin_source.linkedin.account_history": {"database": "dbt-package-testing", "schema": "linkedin_ads", "name": "account_history", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin.account_history", "fqn": ["linkedin_source", "linkedin", "account_history"], "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "account_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`linkedin_ads`.`account_history`", "created_at": 1678988325.840157}, "source.linkedin_source.linkedin.ad_analytics_by_campaign": {"database": "dbt-package-testing", "schema": "linkedin_ads", "name": "ad_analytics_by_campaign", "resource_type": "source", "package_name": "linkedin_source", "path": "models/src_linkedin.yml", "original_file_path": "models/src_linkedin.yml", "unique_id": "source.linkedin_source.linkedin.ad_analytics_by_campaign", "fqn": ["linkedin_source", "linkedin", "ad_analytics_by_campaign"], "source_name": "linkedin", "source_description": "", "loader": "fivetran", "identifier": "ad_analytics_by_campaign", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`linkedin_ads`.`ad_analytics_by_campaign`", "created_at": 1678988325.840534}, "source.google_ads_source.google_ads.ad_stats": {"database": "dbt-package-testing", "schema": "google_ads", "name": "ad_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_stats", "fqn": ["google_ads_source", "google_ads", "ad_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_stats", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`ad_stats`", "created_at": 1678988325.840889}, "source.google_ads_source.google_ads.ad_history": {"database": "dbt-package-testing", "schema": "google_ads", "name": "ad_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_history", "fqn": ["google_ads_source", "google_ads", "ad_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`ad_history`", "created_at": 1678988325.841224}, "source.google_ads_source.google_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "google_ads", "name": "ad_group_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_history", "fqn": ["google_ads_source", "google_ads", "ad_group_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`ad_group_history`", "created_at": 1678988325.8415701}, "source.google_ads_source.google_ads.campaign_history": {"database": "dbt-package-testing", "schema": "google_ads", "name": "campaign_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.campaign_history", "fqn": ["google_ads_source", "google_ads", "campaign_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`campaign_history`", "created_at": 1678988325.841953}, "source.google_ads_source.google_ads.account_history": {"database": "dbt-package-testing", "schema": "google_ads", "name": "account_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.account_history", "fqn": ["google_ads_source", "google_ads", "account_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "account_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`account_history`", "created_at": 1678988325.842295}, "source.google_ads_source.google_ads.ad_group_criterion_history": {"database": "dbt-package-testing", "schema": "google_ads", "name": "ad_group_criterion_history", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_criterion_history", "fqn": ["google_ads_source", "google_ads", "ad_group_criterion_history"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_criterion_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`ad_group_criterion_history`", "created_at": 1678988325.842666}, "source.google_ads_source.google_ads.ad_group_stats": {"database": "dbt-package-testing", "schema": "google_ads", "name": "ad_group_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.ad_group_stats", "fqn": ["google_ads_source", "google_ads", "ad_group_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_stats", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`ad_group_stats`", "created_at": 1678988325.843015}, "source.google_ads_source.google_ads.campaign_stats": {"database": "dbt-package-testing", "schema": "google_ads", "name": "campaign_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.campaign_stats", "fqn": ["google_ads_source", "google_ads", "campaign_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_stats", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`campaign_stats`", "created_at": 1678988325.843364}, "source.google_ads_source.google_ads.keyword_stats": {"database": "dbt-package-testing", "schema": "google_ads", "name": "keyword_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.keyword_stats", "fqn": ["google_ads_source", "google_ads", "keyword_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "keyword_stats", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`keyword_stats`", "created_at": 1678988325.843719}, "source.google_ads_source.google_ads.account_stats": {"database": "dbt-package-testing", "schema": "google_ads", "name": "account_stats", "resource_type": "source", "package_name": "google_ads_source", "path": "models/src_google_ads.yml", "original_file_path": "models/src_google_ads.yml", "unique_id": "source.google_ads_source.google_ads.account_stats", "fqn": ["google_ads_source", "google_ads", "account_stats"], "source_name": "google_ads", "source_description": "", "loader": "Fivetran", "identifier": "account_stats", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`google_ads`.`account_stats`", "created_at": 1678988325.844065}, "source.apple_search_ads_source.apple_search_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "ad_group_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`apple_search_ads`.`ad_group_history`", "created_at": 1678988325.844417}, "source.apple_search_ads_source.apple_search_ads.ad_group_report": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "ad_group_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_group_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_group_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad 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`.`apple_search_ads`.`ad_group_report`", "created_at": 1678988325.844772}, "source.apple_search_ads_source.apple_search_ads.ad_history": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "ad_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`apple_search_ads`.`ad_history`", "created_at": 1678988325.84515}, "source.apple_search_ads_source.apple_search_ads.ad_level_report": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "ad_level_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.ad_level_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "ad_level_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_level_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of an ad in Apple Search Ads.", "columns": {"date": {"name": "date", "description": "Date for daily report aggregation.", "meta": {}, "data_type": null, "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`.`apple_search_ads`.`ad_level_report`", "created_at": 1678988325.845666}, "source.apple_search_ads_source.apple_search_ads.campaign_history": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "campaign_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`apple_search_ads`.`campaign_history`", "created_at": 1678988325.8460538}, "source.apple_search_ads_source.apple_search_ads.campaign_report": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "campaign_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.campaign_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "campaign_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of 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`.`apple_search_ads`.`campaign_report`", "created_at": 1678988325.846422}, "source.apple_search_ads_source.apple_search_ads.keyword_history": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "keyword_history", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_history", "fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_history"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "keyword_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`apple_search_ads`.`keyword_history`", "created_at": 1678988325.846807}, "source.apple_search_ads_source.apple_search_ads.keyword_report": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "keyword_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.keyword_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "keyword_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "keyword_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of 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`.`apple_search_ads`.`keyword_report`", "created_at": 1678988325.847241}, "source.apple_search_ads_source.apple_search_ads.organization": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "organization", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.organization", "fqn": ["apple_search_ads_source", "apple_search_ads", "organization"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "organization", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`apple_search_ads`.`organization`", "created_at": 1678988325.847618}, "source.apple_search_ads_source.apple_search_ads.search_term_report": {"database": "dbt-package-testing", "schema": "apple_search_ads", "name": "search_term_report", "resource_type": "source", "package_name": "apple_search_ads_source", "path": "models/src_apple_search_ads.yml", "original_file_path": "models/src_apple_search_ads.yml", "unique_id": "source.apple_search_ads_source.apple_search_ads.search_term_report", "fqn": ["apple_search_ads_source", "apple_search_ads", "search_term_report"], "source_name": "apple_search_ads", "source_description": "", "loader": "Fivetran", "identifier": "search_term_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of 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}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`apple_search_ads`.`search_term_report`", "created_at": 1678988325.848031}, "source.pinterest_source.pinterest_ads.pin_promotion_report": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "pin_promotion_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_report", "fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pin_promotion_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of 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`.`pinterest_ads`.`pin_promotion_report`", "created_at": 1678988325.848407}, "source.pinterest_source.pinterest_ads.pin_promotion_history": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "pin_promotion_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.pin_promotion_history", "fqn": ["pinterest_source", "pinterest_ads", "pin_promotion_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "pin_promotion_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`pinterest_ads`.`pin_promotion_history`", "created_at": 1678988325.848781}, "source.pinterest_source.pinterest_ads.campaign_history": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "campaign_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.campaign_history", "fqn": ["pinterest_source", "pinterest_ads", "campaign_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`pinterest_ads`.`campaign_history`", "created_at": 1678988325.8491259}, "source.pinterest_source.pinterest_ads.ad_group_history": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "ad_group_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_history", "fqn": ["pinterest_source", "pinterest_ads", "ad_group_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`pinterest_ads`.`ad_group_history`", "created_at": 1678988325.84948}, "source.pinterest_source.pinterest_ads.ad_group_report": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "ad_group_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.ad_group_report", "fqn": ["pinterest_source", "pinterest_ads", "ad_group_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_group_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of 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`.`pinterest_ads`.`ad_group_report`", "created_at": 1678988325.8498628}, "source.pinterest_source.pinterest_ads.advertiser_history": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "advertiser_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_history", "fqn": ["pinterest_source", "pinterest_ads", "advertiser_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "advertiser_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`pinterest_ads`.`advertiser_history`", "created_at": 1678988325.850236}, "source.pinterest_source.pinterest_ads.advertiser_report": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "advertiser_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.advertiser_report", "fqn": ["pinterest_source", "pinterest_ads", "advertiser_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "advertiser_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of 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`.`pinterest_ads`.`advertiser_report`", "created_at": 1678988325.850593}, "source.pinterest_source.pinterest_ads.campaign_report": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "campaign_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.campaign_report", "fqn": ["pinterest_source", "pinterest_ads", "campaign_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of 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`.`pinterest_ads`.`campaign_report`", "created_at": 1678988325.85104}, "source.pinterest_source.pinterest_ads.keyword_history": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "keyword_history", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.keyword_history", "fqn": ["pinterest_source", "pinterest_ads", "keyword_history"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "keyword_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`pinterest_ads`.`keyword_history`", "created_at": 1678988325.8514009}, "source.pinterest_source.pinterest_ads.keyword_report": {"database": "dbt-package-testing", "schema": "pinterest_ads", "name": "keyword_report", "resource_type": "source", "package_name": "pinterest_source", "path": "models/src_pinterest_ads.yml", "original_file_path": "models/src_pinterest_ads.yml", "unique_id": "source.pinterest_source.pinterest_ads.keyword_report", "fqn": ["pinterest_source", "pinterest_ads", "keyword_report"], "source_name": "pinterest_ads", "source_description": "", "loader": "Fivetran", "identifier": "keyword_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the daily performance of 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`.`pinterest_ads`.`keyword_report`", "created_at": 1678988325.8517718}, "source.tiktok_ads_source.tiktok_ads.advertiser": {"database": "dbt-package-testing", "schema": "tiktok_ads", "name": "advertiser", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.advertiser", "fqn": ["tiktok_ads_source", "tiktok_ads", "advertiser"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "advertiser", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`tiktok_ads`.`advertiser`", "created_at": 1678988325.852173}, "source.tiktok_ads_source.tiktok_ads.campaign_history": {"database": "dbt-package-testing", "schema": "tiktok_ads", "name": "campaign_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`tiktok_ads`.`campaign_history`", "created_at": 1678988325.852559}, "source.tiktok_ads_source.tiktok_ads.adgroup_history": {"database": "dbt-package-testing", "schema": "tiktok_ads", "name": "adgroup_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "adgroup_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`tiktok_ads`.`adgroup_history`", "created_at": 1678988325.853133}, "source.tiktok_ads_source.tiktok_ads.ad_history": {"database": "dbt-package-testing", "schema": "tiktok_ads", "name": "ad_history", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_history", "fqn": ["tiktok_ads_source", "tiktok_ads", "ad_history"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "ad_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`tiktok_ads`.`ad_history`", "created_at": 1678988325.8535411}, "source.tiktok_ads_source.tiktok_ads.ad_report_hourly": {"database": "dbt-package-testing", "schema": "tiktok_ads", "name": "ad_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.ad_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "ad_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "ad_report_hourly", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`tiktok_ads`.`ad_report_hourly`", "created_at": 1678988325.854103}, "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly": {"database": "dbt-package-testing", "schema": "tiktok_ads", "name": "campaign_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.campaign_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "campaign_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "campaign_report_hourly", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`tiktok_ads`.`campaign_report_hourly`", "created_at": 1678988325.854574}, "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly": {"database": "dbt-package-testing", "schema": "tiktok_ads", "name": "adgroup_report_hourly", "resource_type": "source", "package_name": "tiktok_ads_source", "path": "models/src_tiktok_ads.yml", "original_file_path": "models/src_tiktok_ads.yml", "unique_id": "source.tiktok_ads_source.tiktok_ads.adgroup_report_hourly", "fqn": ["tiktok_ads_source", "tiktok_ads", "adgroup_report_hourly"], "source_name": "tiktok_ads", "source_description": "", "loader": "fivetran", "identifier": "adgroup_report_hourly", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`tiktok_ads`.`adgroup_report_hourly`", "created_at": 1678988325.855028}, "source.facebook_ads_source.facebook_ads.account_history": {"database": "dbt-package-testing", "schema": "facebook_ads", "name": "account_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.account_history", "fqn": ["facebook_ads_source", "facebook_ads", "account_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "account_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`facebook_ads`.`account_history`", "created_at": 1678988325.8553889}, "source.facebook_ads_source.facebook_ads.ad_history": {"database": "dbt-package-testing", "schema": "facebook_ads", "name": "ad_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.ad_history", "fqn": ["facebook_ads_source", "facebook_ads", "ad_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`facebook_ads`.`ad_history`", "created_at": 1678988325.8557582}, "source.facebook_ads_source.facebook_ads.ad_set_history": {"database": "dbt-package-testing", "schema": "facebook_ads", "name": "ad_set_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.ad_set_history", "fqn": ["facebook_ads_source", "facebook_ads", "ad_set_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_set_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`facebook_ads`.`ad_set_history`", "created_at": 1678988325.8561149}, "source.facebook_ads_source.facebook_ads.basic_ad": {"database": "dbt-package-testing", "schema": "facebook_ads", "name": "basic_ad", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.basic_ad", "fqn": ["facebook_ads_source", "facebook_ads", "basic_ad"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "basic_ad", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`facebook_ads`.`basic_ad`", "created_at": 1678988325.856488}, "source.facebook_ads_source.facebook_ads.campaign_history": {"database": "dbt-package-testing", "schema": "facebook_ads", "name": "campaign_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.campaign_history", "fqn": ["facebook_ads_source", "facebook_ads", "campaign_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`facebook_ads`.`campaign_history`", "created_at": 1678988325.8568661}, "source.facebook_ads_source.facebook_ads.creative_history": {"database": "dbt-package-testing", "schema": "facebook_ads", "name": "creative_history", "resource_type": "source", "package_name": "facebook_ads_source", "path": "models/src_facebook_ads.yml", "original_file_path": "models/src_facebook_ads.yml", "unique_id": "source.facebook_ads_source.facebook_ads.creative_history", "fqn": ["facebook_ads_source", "facebook_ads", "creative_history"], "source_name": "facebook_ads", "source_description": "", "loader": "Fivetran", "identifier": "creative_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`facebook_ads`.`creative_history`", "created_at": 1678988325.857253}, "source.snapchat_ads_source.snapchat_ads.ad_account_history": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "ad_account_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_account_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_account_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_account_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`snapchat_ads`.`ad_account_history`", "created_at": 1678988325.85769}, "source.snapchat_ads_source.snapchat_ads.ad_history": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "ad_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`snapchat_ads`.`ad_history`", "created_at": 1678988325.858021}, "source.snapchat_ads_source.snapchat_ads.ad_hourly_report": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "ad_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_hourly_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents 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`.`snapchat_ads`.`ad_hourly_report`", "created_at": 1678988325.858476}, "source.snapchat_ads_source.snapchat_ads.ad_squad_history": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "ad_squad_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_squad_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`snapchat_ads`.`ad_squad_history`", "created_at": 1678988325.858943}, "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "ad_squad_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.ad_squad_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "ad_squad_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "ad_squad_hourly_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents 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`.`snapchat_ads`.`ad_squad_hourly_report`", "created_at": 1678988325.859426}, "source.snapchat_ads_source.snapchat_ads.campaign_history": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "campaign_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`snapchat_ads`.`campaign_history`", "created_at": 1678988325.8598359}, "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "campaign_hourly_report", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.campaign_hourly_report", "fqn": ["snapchat_ads_source", "snapchat_ads", "campaign_hourly_report"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "campaign_hourly_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents 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`.`snapchat_ads`.`campaign_hourly_report`", "created_at": 1678988325.86024}, "source.snapchat_ads_source.snapchat_ads.creative_history": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "creative_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "creative_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "creative_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`snapchat_ads`.`creative_history`", "created_at": 1678988325.860681}, "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history": {"database": "dbt-package-testing", "schema": "snapchat_ads", "name": "creative_url_tag_history", "resource_type": "source", "package_name": "snapchat_ads_source", "path": "models/src_snapchat.yml", "original_file_path": "models/src_snapchat.yml", "unique_id": "source.snapchat_ads_source.snapchat_ads.creative_url_tag_history", "fqn": ["snapchat_ads_source", "snapchat_ads", "creative_url_tag_history"], "source_name": "snapchat_ads", "source_description": "", "loader": "Fivetran", "identifier": "creative_url_tag_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_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`.`snapchat_ads`.`creative_url_tag_history`", "created_at": 1678988325.8610492}, "source.twitter_ads_source.twitter_ads.account_history": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "account_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.account_history", "fqn": ["twitter_ads_source", "twitter_ads", "account_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "account_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`twitter_ads`.`account_history`", "created_at": 1678988325.861432}, "source.twitter_ads_source.twitter_ads.campaign_history": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "campaign_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_history", "fqn": ["twitter_ads_source", "twitter_ads", "campaign_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "campaign_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`twitter_ads`.`campaign_history`", "created_at": 1678988325.86183}, "source.twitter_ads_source.twitter_ads.line_item_history": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "line_item_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_history", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "line_item_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`twitter_ads`.`line_item_history`", "created_at": 1678988325.862287}, "source.twitter_ads_source.twitter_ads.promoted_tweet_history": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "promoted_tweet_history", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_history", "fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_history"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "promoted_tweet_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`twitter_ads`.`promoted_tweet_history`", "created_at": 1678988325.862869}, "source.twitter_ads_source.twitter_ads.tweet_url": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "tweet_url", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.tweet_url", "fqn": ["twitter_ads_source", "twitter_ads", "tweet_url"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "tweet_url", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`twitter_ads`.`tweet_url`", "created_at": 1678988325.863266}, "source.twitter_ads_source.twitter_ads.promoted_tweet_report": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "promoted_tweet_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.promoted_tweet_report", "fqn": ["twitter_ads_source", "twitter_ads", "promoted_tweet_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "promoted_tweet_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the 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`.`twitter_ads`.`promoted_tweet_report`", "created_at": 1678988325.863635}, "source.twitter_ads_source.twitter_ads.tweet": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "tweet", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.tweet", "fqn": ["twitter_ads_source", "twitter_ads", "tweet"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "tweet", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_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`.`twitter_ads`.`tweet`", "created_at": 1678988325.8639932}, "source.twitter_ads_source.twitter_ads.campaign_report": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "campaign_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.campaign_report", "fqn": ["twitter_ads_source", "twitter_ads", "campaign_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "campaign_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the 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`.`twitter_ads`.`campaign_report`", "created_at": 1678988325.864492}, "source.twitter_ads_source.twitter_ads.line_item_report": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "line_item_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_report", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "line_item_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the 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`.`twitter_ads`.`line_item_report`", "created_at": 1678988325.864898}, "source.twitter_ads_source.twitter_ads.line_item_keywords_report": {"database": "dbt-package-testing", "schema": "twitter_ads", "name": "line_item_keywords_report", "resource_type": "source", "package_name": "twitter_ads_source", "path": "models/src_twitter_ads.yml", "original_file_path": "models/src_twitter_ads.yml", "unique_id": "source.twitter_ads_source.twitter_ads.line_item_keywords_report", "fqn": ["twitter_ads_source", "twitter_ads", "line_item_keywords_report"], "source_name": "twitter_ads", "source_description": "", "loader": "fivetran", "identifier": "line_item_keywords_report", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 168, "period": "hour"}, "filter": null}, "external": null, "description": "Each record represents the performance of a line item (ad group) and keyword combination on a given day.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "When the record was last synced by Fivetran.", "meta": {}, "data_type": null, "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": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "`dbt-package-testing`.`twitter_ads`.`line_item_keywords_report`", "created_at": 1678988325.8652642}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"name": "date_sharded_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2034078, "supported_languages": null}, "macro.dbt_bigquery.grant_access_to": {"name": "grant_access_to", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2042098, "supported_languages": null}, "macro.dbt_bigquery.get_partitions_metadata": {"name": "get_partitions_metadata", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.205141, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_catalog": {"name": "bigquery__get_catalog", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- 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 table_options as (\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n JSON_VALUE(option_value) as table_comment\n\n from {{ information_schema.replace(information_schema_view='TABLE_OPTIONS') }}\n where option_name = 'description'\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 table_options.table_comment,\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 table_options using (relation_id)\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 %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.212856, "supported_languages": null}, "macro.dbt_bigquery.partition_by": {"name": "partition_by", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.221032, "supported_languages": null}, "macro.dbt_bigquery.cluster_by": {"name": "cluster_by", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.222235, "supported_languages": null}, "macro.dbt_bigquery.bigquery_options": {"name": "bigquery_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_options", "macro_sql": "{% macro bigquery_options(opts) %}\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.223222, "supported_languages": null}, "macro.dbt_bigquery.bigquery_table_options": {"name": "bigquery_table_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2239249, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_table_as": {"name": "bigquery__create_table_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\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", "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": 1678988310.226526, "supported_languages": null}, "macro.dbt_bigquery.bigquery_view_options": {"name": "bigquery_view_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_view_options", "macro_sql": "{% macro bigquery_view_options(config, node) %}\n {% set opts = adapter.get_view_options(config, node) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.227185, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_view_as": {"name": "bigquery__create_view_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {{ bigquery_view_options(config, model) }}\n as {{ sql }};\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_view_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2280178, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_schema": {"name": "bigquery__drop_schema", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.22839, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_relation": {"name": "bigquery__drop_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.228917, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"name": "bigquery__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2293189, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"name": "bigquery__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.229716, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_schemas": {"name": "bigquery__list_schemas", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.230128, "supported_languages": null}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"name": "bigquery__check_schema_exists", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.230617, "supported_languages": null}, "macro.dbt_bigquery.bigquery__persist_docs": {"name": "bigquery__persist_docs", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.231476, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"name": "bigquery__alter_column_comment", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.231921, "supported_languages": null}, "macro.dbt_bigquery.bigquery__rename_relation": {"name": "bigquery__rename_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2323542, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_add_columns": {"name": "bigquery__alter_relation_add_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns", "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.233697, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_drop_columns": {"name": "bigquery__alter_relation_drop_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns", "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in drop_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2347782, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_type": {"name": "bigquery__alter_column_type", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#-- Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_relation", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.236594, "supported_languages": null}, "macro.dbt_bigquery.bigquery__test_unique": {"name": "bigquery__test_unique", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__test_unique", "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n\n select {{ column_name }} as unique_field\n from {{ model }}\n where {{ column_name }} is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2370582, "supported_languages": null}, "macro.dbt_bigquery.bigquery__upload_file": {"name": "bigquery__upload_file", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__upload_file", "macro_sql": "{% macro bigquery__upload_file(local_file_path, database, table_schema, table_name) %}\n\n {{ log(\"kwargs: \" ~ kwargs) }}\n\n {% do adapter.upload_file(local_file_path, database, table_schema, table_name, kwargs=kwargs) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.237828, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_csv_table": {"name": "bigquery__create_csv_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.238644, "supported_languages": null}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"name": "bigquery__reset_csv_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2390752, "supported_languages": null}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"name": "bigquery__load_csv_rows", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n\n {% call statement() %}\n alter table {{ this.render() }} set {{ bigquery_table_options(config, model) }}\n {% endcall %}\n\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2412338, "supported_languages": null}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"name": "bigquery__handle_existing_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.242665, "supported_languages": null}, "macro.dbt_bigquery.materialization_view_bigquery": {"name": "materialization_view_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {% set to_return = create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.create_or_replace_view", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2446132, "supported_languages": ["sql"]}, "macro.dbt_bigquery.materialization_table_bigquery": {"name": "materialization_table_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery', supported_languages=['sql', 'python']-%}\n\n {%- set language = model['language'] -%}\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n We only need to drop this thing if it is not a table.\n If it _is_ already a table, then we can overwrite it without downtime\n Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n -- build model\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.252917, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_bigquery.py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation) %}\nfrom pyspark.sql import SparkSession\n\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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.253672, "supported_languages": null}, "macro.dbt_bigquery.materialization_copy_bigquery": {"name": "materialization_copy_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {% set destination = this.incorporate(type='table') %}\n\n {# there can be several ref() or source() according to BQ copy API docs #}\n {# cycle over ref() and source() to create source tables array #}\n {% set source_array = [] %}\n {% for ref_table in model.refs %}\n {{ source_array.append(ref(*ref_table)) }}\n {% endfor %}\n\n {% for src_table in model.sources %}\n {{ source_array.append(source(*src_table)) }}\n {% endfor %}\n\n {# Call adapter copy_table function #}\n {%- set result_str = adapter.copy_table(\n source_array,\n destination,\n config.get('copy_materialization', default = 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {%- do apply_grants(target_relation, grant_config) -%}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2568152, "supported_languages": ["sql"]}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"name": "dbt_bigquery_validate_get_incremental_strategy", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\") or 'merge' -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.261617, "supported_languages": null}, "macro.dbt_bigquery.source_sql_with_partition": {"name": "source_sql_with_partition", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.source_sql_with_partition", "macro_sql": "{% macro source_sql_with_partition(partition_by, source_sql) %}\n\n {%- if partition_by.time_ingestion_partitioning %}\n {{ return(wrap_with_time_ingestion_partitioning_sql(build_partition_time_exp(partition_by.field), source_sql, False)) }}\n {% else %}\n {{ return(source_sql) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt_bigquery.build_partition_time_exp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.26262, "supported_languages": null}, "macro.dbt_bigquery.bq_create_table_as": {"name": "bq_create_table_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.bq_create_table_as", "macro_sql": "{% macro bq_create_table_as(is_time_ingestion_partitioning, temporary, relation, compiled_code, language='sql') %}\n {% if is_time_ingestion_partitioning and language == 'python' %}\n {% do exceptions.raise_compiler_error(\n \"Python models do not support ingestion time partitioning\"\n ) %}\n {% endif %}\n {% if is_time_ingestion_partitioning and language == 'sql' %}\n {#-- Create the table before inserting data as ingestion time partitioned tables can't be created with the transformed data --#}\n {% do run_query(create_ingestion_time_partitioned_table_as_sql(temporary, relation, compiled_code)) %}\n {{ return(bq_insert_into_ingestion_time_partitioned_table_sql(relation, compiled_code)) }}\n {% else %}\n {{ return(create_table_as(temporary, relation, compiled_code, language)) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_bigquery.create_ingestion_time_partitioned_table_as_sql", "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.264652, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_build_sql": {"name": "bq_generate_incremental_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro_sql": "{% macro bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions, incremental_predicates\n) %}\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set build_sql = bq_generate_incremental_insert_overwrite_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n\n {% else %} {# strategy == 'merge' #}\n\n {% set build_sql = bq_generate_incremental_merge_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n ) %}\n\n {% endif %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql", "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2670069, "supported_languages": null}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"name": "materialization_incremental_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery', supported_languages=['sql', 'python'] -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] %}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n {% set incremental_predicates = config.get('predicates', default=none) or config.get('incremental_predicates', default=none) %}\n\n -- grab current tables grants config for comparison later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if partition_by.copy_partitions is true and strategy != 'insert_overwrite' %} {#-- We can't copy partitions with merge strategy --#}\n {% set wrong_strategy_msg -%}\n The 'copy_partitions' option requires the 'incremental_strategy' option to be set to 'insert_overwrite'.\n {%- endset %}\n {% do exceptions.raise_compiler_error(wrong_strategy_msg) %}\n\n {% elif existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by.time_ingestion_partitioning, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by.time_ingestion_partitioning, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by.time_ingestion_partitioning, 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 bq_create_table_as(partition_by.time_ingestion_partitioning, 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 {% if partition_by.time_ingestion_partitioning %}\n {% set dest_columns = adapter.add_time_ingestion_partition_column(dest_columns) %}\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, partition_by.copy_partitions, incremental_predicates\n ) %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {%- if language == 'python' and tmp_relation -%}\n {{ adapter.drop_relation(tmp_relation) }}\n {%- endif -%}\n\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt_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": 1678988310.278469, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"name": "bigquery__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.279689, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_columns": {"name": "bigquery__create_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.280203, "supported_languages": null}, "macro.dbt_bigquery.bigquery__post_snapshot": {"name": "bigquery__post_snapshot", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.280619, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql": {"name": "bq_generate_incremental_merge_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql", "macro_sql": "{% macro bq_generate_incremental_merge_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n) %}\n {%- set source_sql -%}\n {%- if tmp_relation_exists -%}\n (\n select\n {% if partition_by.time_ingestion_partitioning -%}\n _PARTITIONTIME,\n {%- endif -%}\n * from {{ tmp_relation }}\n )\n {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n (\n {%- if partition_by.time_ingestion_partitioning -%}\n {{ wrap_with_time_ingestion_partitioning_sql(build_partition_time_exp(partition_by), sql, True) }}\n {%- else -%}\n {{sql}}\n {%- endif %}\n )\n {%- endif -%}\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns, incremental_predicates) %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt_bigquery.build_partition_time_exp", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.283187, "supported_languages": null}, "macro.dbt_bigquery.build_partition_time_exp": {"name": "build_partition_time_exp", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/common.sql", "original_file_path": "macros/materializations/incremental_strategy/common.sql", "unique_id": "macro.dbt_bigquery.build_partition_time_exp", "macro_sql": "{% macro build_partition_time_exp(partition_by) %}\n {% if partition_by.data_type == 'timestamp' %}\n {% set partition_value = partition_by.field %}\n {% else %}\n {% set partition_value = 'timestamp(' + partition_by.field + ')' %}\n {% endif %}\n {{ return({'value': partition_value, 'field': partition_by.field}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.285005, "supported_languages": null}, "macro.dbt_bigquery.declare_dbt_max_partition": {"name": "declare_dbt_max_partition", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/common.sql", "original_file_path": "macros/materializations/incremental_strategy/common.sql", "unique_id": "macro.dbt_bigquery.declare_dbt_max_partition", "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, compiled_code, language='sql') %}\n\n {#-- TODO: revisit partitioning with python models --#}\n {%- if '_dbt_max_partition' in compiled_code and language == 'sql' -%}\n\n declare _dbt_max_partition {{ partition_by.data_type_for_partition() }} default (\n select max({{ partition_by.field }}) from {{ this }}\n where {{ partition_by.field }} is not null\n );\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2862809, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql": {"name": "bq_generate_incremental_insert_overwrite_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql", "macro_sql": "{% macro bq_generate_incremental_insert_overwrite_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, on_schema_change, copy_partitions\n) %}\n {% if partition_by is none %}\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, on_schema_change, copy_partitions\n ) %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2922418, "supported_languages": null}, "macro.dbt_bigquery.bq_copy_partitions": {"name": "bq_copy_partitions", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_copy_partitions", "macro_sql": "{% macro bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n\n {% for partition in partitions %}\n {% if partition_by.granularity == 'hour' %}\n {% set partition = partition.strftime(\"%Y%m%d%H\") %}\n {% elif partition_by.granularity == 'day' %}\n {% set partition = partition.strftime(\"%Y%m%d\") %}\n {% elif partition_by.granularity == 'month' %}\n {% set partition = partition.strftime(\"%Y%m\") %}\n {% elif partition_by.granularity == 'year' %}\n {% set partition = partition.strftime(\"%Y\") %}\n {% endif %}\n {% set tmp_relation_partitioned = api.Relation.create(database=tmp_relation.database, schema=tmp_relation.schema, identifier=tmp_relation.table ~ '$' ~ partition, type=tmp_relation.type) %}\n {% set target_relation_partitioned = api.Relation.create(database=target_relation.database, schema=target_relation.schema, identifier=target_relation.table ~ '$' ~ partition, type=target_relation.type) %}\n {% do adapter.copy_table(tmp_relation_partitioned, target_relation_partitioned, \"table\") %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.2958999, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_overwrite_sql": {"name": "bq_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_insert_overwrite_sql", "macro_sql": "{% macro bq_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n {% if partitions is not none and partitions != [] %} {# static #}\n {{ bq_static_insert_overwrite_sql(tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, copy_partitions) }}\n {% else %} {# dynamic #}\n {{ bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_static_insert_overwrite_sql", "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.297777, "supported_languages": null}, "macro.dbt_bigquery.bq_static_insert_overwrite_sql": {"name": "bq_static_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_static_insert_overwrite_sql", "macro_sql": "{% macro bq_static_insert_overwrite_sql(\n tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, copy_partitions\n) %}\n\n {% set predicate -%}\n {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {%- if partition_by.time_ingestion_partitioning -%}\n {{ wrap_with_time_ingestion_partitioning_sql(build_partition_time_exp(partition_by), sql, True) }}\n {%- else -%}\n {{sql}}\n {%- endif -%}\n )\n {%- endset -%}\n\n {% if copy_partitions %}\n {% do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n {% else %}\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 {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt_bigquery.build_partition_time_exp", "macro.dbt_bigquery.bq_copy_partitions", "macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3000882, "supported_languages": null}, "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql": {"name": "bq_dynamic_copy_partitions_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql", "macro_sql": "{% macro bq_dynamic_copy_partitions_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n {# We run temp table creation in a separated script to move to partitions copy #}\n {%- call statement('create_tmp_relation_for_copy', language='sql') -%}\n {{ declare_dbt_max_partition(this, partition_by, sql, 'sql') +\n bq_create_table_as(partition_by.time_ingestion_partitioning, True, tmp_relation, sql, 'sql')\n }}\n {%- endcall %}\n {%- set partitions_sql -%}\n select distinct {{ partition_by.render_wrapped() }}\n from {{ tmp_relation }}\n {%- endset -%}\n {%- set partitions = run_query(partitions_sql).columns[0].values() -%}\n {# We copy the partitions #}\n {%- do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) -%}\n -- Clean up the temp table\n drop table if exists {{ tmp_relation }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.run_query", "macro.dbt_bigquery.bq_copy_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.302256, "supported_languages": null}, "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql": {"name": "bq_dynamic_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql", "macro_sql": "{% macro bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) %}\n {%- if copy_partitions is true %}\n {{ bq_dynamic_copy_partitions_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% else -%}\n {% set predicate -%}\n {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select\n {% if partition_by.time_ingestion_partitioning -%}\n _PARTITIONTIME,\n {%- endif -%}\n * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_by.data_type_for_partition() }}>;\n\n {# have we already created the temp table to check for schema changes? #}\n {% if not tmp_relation_exists %}\n {{ declare_dbt_max_partition(this, partition_by, sql) }}\n\n -- 1. create a temp table with model data\n {{ bq_create_table_as(partition_by.time_ingestion_partitioning, True, tmp_relation, sql, '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_wrapped() }})\n from {{ tmp_relation }}\n );\n\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate]) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql", "macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.305548, "supported_languages": null}, "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql": {"name": "wrap_with_time_ingestion_partitioning_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro_sql": "{% macro wrap_with_time_ingestion_partitioning_sql(partition_time_exp, sql, is_nested) %}\n\n select {{ partition_time_exp['value'] }} as _partitiontime, * EXCEPT({{ partition_time_exp['field'] }}) from (\n {{ sql }}\n ){%- if not is_nested -%};{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.309705, "supported_languages": null}, "macro.dbt_bigquery.create_ingestion_time_partitioned_table_as_sql": {"name": "create_ingestion_time_partitioned_table_as_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.create_ingestion_time_partitioned_table_as_sql", "macro_sql": "{% macro create_ingestion_time_partitioned_table_as_sql(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 {%- set columns = get_columns_with_types_in_query_sql(sql) -%}\n {%- set table_dest_columns_csv = columns_without_partition_fields_csv(partition_config, columns) -%}\n\n {{ sql_header if sql_header is not none }}\n\n {% set ingestion_time_partition_config_raw = fromjson(tojson(raw_partition_by)) %}\n {% do ingestion_time_partition_config_raw.update({'field':'_PARTITIONTIME'}) %}\n\n {%- set ingestion_time_partition_config = adapter.parse_partition_by(ingestion_time_partition_config_raw) -%}\n\n create or replace table {{ relation }} ({{table_dest_columns_csv}})\n {{ partition_by(ingestion_time_partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.get_columns_with_types_in_query_sql", "macro.dbt_bigquery.columns_without_partition_fields_csv", "macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3123698, "supported_languages": null}, "macro.dbt_bigquery.get_quoted_with_types_csv": {"name": "get_quoted_with_types_csv", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.get_quoted_with_types_csv", "macro_sql": "{% macro get_quoted_with_types_csv(columns) %}\n {% set quoted = [] %}\n {% for col in columns -%}\n {%- do quoted.append(adapter.quote(col.name) ~ \" \" ~ col.data_type) -%}\n {%- endfor %}\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.313523, "supported_languages": null}, "macro.dbt_bigquery.columns_without_partition_fields_csv": {"name": "columns_without_partition_fields_csv", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.columns_without_partition_fields_csv", "macro_sql": "{% macro columns_without_partition_fields_csv(partition_config, columns) -%}\n {%- set columns_no_partition = partition_config.reject_partition_field_column(columns) -%}\n {% set columns_names = get_quoted_with_types_csv(columns_no_partition) %}\n {{ return(columns_names) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.get_quoted_with_types_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.314271, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql": {"name": "bq_insert_into_ingestion_time_partitioned_table_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql", "macro_sql": "{% macro bq_insert_into_ingestion_time_partitioned_table_sql(target_relation, sql) -%}\n {%- set partition_by = config.get('partition_by', none) -%}\n {% set dest_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set dest_columns_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} (_partitiontime, {{ dest_columns_csv }})\n {{ wrap_with_time_ingestion_partitioning_sql(build_partition_time_exp(partition_by), sql, False) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt_bigquery.build_partition_time_exp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.315504, "supported_languages": null}, "macro.dbt_bigquery.get_columns_with_types_in_query_sql": {"name": "get_columns_with_types_in_query_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.get_columns_with_types_in_query_sql", "macro_sql": "{% macro get_columns_with_types_in_query_sql(select_sql) %}\n {% set sql %}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endset %}\n {{ return(adapter.get_columns_in_select_sql(sql)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3161259, "supported_languages": null}, "macro.dbt_bigquery.bigquery__except": {"name": "bigquery__except", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt_bigquery.bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.316461, "supported_languages": null}, "macro.dbt_bigquery.bigquery__dateadd": {"name": "bigquery__dateadd", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_bigquery.bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.317038, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp": {"name": "bigquery__current_timestamp", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n current_timestamp()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.317438, "supported_languages": null}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"name": "bigquery__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.317918, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp_backcompat": {"name": "bigquery__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp_backcompat", "macro_sql": "{% macro bigquery__current_timestamp_backcompat() -%}\n current_timestamp\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3181272, "supported_languages": null}, "macro.dbt_bigquery.bigquery__intersect": {"name": "bigquery__intersect", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt_bigquery.bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.318558, "supported_languages": null}, "macro.dbt_bigquery.bigquery__escape_single_quotes": {"name": "bigquery__escape_single_quotes", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt_bigquery.bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3190389, "supported_languages": null}, "macro.dbt_bigquery.bigquery__right": {"name": "bigquery__right", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt_bigquery.bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.319606, "supported_languages": null}, "macro.dbt_bigquery.bigquery__listagg": {"name": "bigquery__listagg", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_bigquery.bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.320555, "supported_languages": null}, "macro.dbt_bigquery.bigquery__datediff": {"name": "bigquery__datediff", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_bigquery.bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n {% if dbt_version[0] == 1 and dbt_version[2] >= 2 %}\n {{ return(dbt.datediff(first_date, second_date, datepart)) }}\n {% else %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3217542, "supported_languages": null}, "macro.dbt_bigquery.bigquery__safe_cast": {"name": "bigquery__safe_cast", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt_bigquery.bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3221881, "supported_languages": null}, "macro.dbt_bigquery.bigquery__hash": {"name": "bigquery__hash", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt_bigquery.bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt.default__hash(field)}})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.322602, "supported_languages": null}, "macro.dbt_bigquery.bigquery__position": {"name": "bigquery__position", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt_bigquery.bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3230531, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_concat": {"name": "bigquery__array_concat", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.323503, "supported_languages": null}, "macro.dbt_bigquery.bigquery__bool_or": {"name": "bigquery__bool_or", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt_bigquery.bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n\n logical_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3238678, "supported_languages": null}, "macro.dbt_bigquery.bigquery__split_part": {"name": "bigquery__split_part", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_bigquery.bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.325205, "supported_languages": null}, "macro.dbt_bigquery.bigquery__date_trunc": {"name": "bigquery__date_trunc", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt_bigquery.bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.325691, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_construct": {"name": "bigquery__array_construct", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n [ {{ inputs|join(' , ') }} ]\n {% else %}\n ARRAY<{{data_type}}>[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3264909, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_append": {"name": "bigquery__array_append", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ array_concat(array, array_construct([new_element])) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.array_concat", "macro.dbt.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.32706, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_show_grant_sql": {"name": "bigquery__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_show_grant_sql", "macro_sql": "{% macro bigquery__get_show_grant_sql(relation) %}\n {% set location = adapter.get_dataset_location(relation) %}\n {% set relation = relation.incorporate(location=location) %}\n\n select privilege_type, grantee\n from {{ relation.information_schema(\"OBJECT_PRIVILEGES\") }}\n where object_schema = \"{{ relation.dataset }}\"\n and object_name = \"{{ relation.identifier }}\"\n -- filter out current user\n and split(grantee, ':')[offset(1)] != session_user()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.328591, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_grant_sql": {"name": "bigquery__get_grant_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_grant_sql", "macro_sql": "\n\n\n{%- macro bigquery__get_grant_sql(relation, privilege, grantee) -%}\n grant `{{ privilege }}` on {{ relation.type }} {{ relation }} to {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3292632, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_revoke_sql": {"name": "bigquery__get_revoke_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_revoke_sql", "macro_sql": "{%- macro bigquery__get_revoke_sql(relation, privilege, grantee) -%}\n revoke `{{ privilege }}` on {{ relation.type }} {{ relation }} from {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3299031, "supported_languages": null}, "macro.dbt_bigquery.bigquery__resolve_model_name": {"name": "bigquery__resolve_model_name", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt_bigquery.bigquery__resolve_model_name", "macro_sql": "{% macro bigquery__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('`', '') | replace('\"', '\\\"') }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3305511, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.333374, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.334378, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.334788, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3351629, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3355362, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.336376, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.33717, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.337986, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.338946, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3396428, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.347012, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.347488, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.348095, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3500118, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.350517, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.350993, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n 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 %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.354753, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3585851, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3662562, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.367297, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3677518, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.368004, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.368408, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3687239, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.369262, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.371497, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.372048, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.372742, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3739111, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.38832, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% 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 -%}", "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": 1678988310.394253, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3955588, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.3964522, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.397495, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.398848, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.403264, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.405138, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.4075048, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.408363, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.4106638, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.423729, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.4288971, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.4297972, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.432899, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.433918, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.436605, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.438596, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.440846, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.44175, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.442414, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.443368, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.444052, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.4453042, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.446164, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.447146, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.447994, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.448756, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.449725, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.4649222, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.476588, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.480474, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.4845629, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.487844, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ 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 %}", "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": 1678988310.495113, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.496782, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.497546, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.498967, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5006878, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ 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 -%}", "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": 1678988310.5078988, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.508787, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.509443, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.51388, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5149848, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.51551, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.51607, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.516871, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for 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 %}", "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": 1678988310.525909, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.535739, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5384488, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5392199, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5406542, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.541334, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.54181, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5423, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.542672, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.543225, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.543734, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5454211, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.546046, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5502589, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.551543, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5523121, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5537002, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.554524, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.555475, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.556854, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5576909, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.558654, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.559519, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.560212, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.561982, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.566208, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.568236, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.569194, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.573477, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n 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 %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.577211, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.57954, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.580294, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.581005, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.58127, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.582274, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5828228, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.583594, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.583998, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.584748, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.585087, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.586068, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.586605, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5872838, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.587532, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5883148, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5887418, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5895512, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.589969, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5916858, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5928729, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5941288, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5946748, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.595526, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.595932, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5966349, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5971122, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.597821, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.5983071, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.599093, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.599445, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.600391, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.600849, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.60172, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6022358, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.605075, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.605626, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.606194, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.606727, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.607245, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.607727, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6082292, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.608989, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6095092, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.60999, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.610497, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.610948, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.611618, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.612098, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.613039, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.613486, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.614325, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.614729, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6161191, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.616981, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.617453, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.618815, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.619374, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.620081, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.620965, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.621433, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.622688, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.623588, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6245718, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6250062, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.626046, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6266398, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.62739, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6279612, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.629201, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6296792, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.630144, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6305358, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.631165, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.631546, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6321652, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.632712, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.633989, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6344519, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.634967, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.636245, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6434, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6441338, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.645397, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.646996, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.647836, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.648833, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.649478, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6503859, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.651274, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.65215, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.652831, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6537092, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6544662, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.656183, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6569228, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6573792, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.657993, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.65937, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.660984, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.665163, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.665619, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.666212, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.666909, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6680691, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.668761, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.669111, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6698282, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6704588, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.671276, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6719308, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.672673, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6749928, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.675646, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.67643, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.677262, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6808379, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.682703, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6832871, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6839318, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.684461, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6852999, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.686743, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6899729, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.690728, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.691266, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.691772, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6923258, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.693014, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.6936052, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.694454, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.695006, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.69547, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.698963, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.699435, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.700462, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.700983, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n 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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.702524, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7031522, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.704736, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.705482, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7075672, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.710183, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.710597, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join('.'): resolve_model_name(resolved)}) -%}\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 %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.711649, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7126951, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7142248, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: 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 %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7155032, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.715743, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.716954, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.717578, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7183318, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.719052, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.72121, "supported_languages": null}, "macro.microsoft_ads_source.get_campaign_daily_report_columns": {"name": "get_campaign_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_campaign_daily_report_columns.sql", "original_file_path": "macros/get_campaign_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_campaign_daily_report_columns", "macro_sql": "{% macro get_campaign_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_association_status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.725861, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_group_daily_report_columns": {"name": "get_ad_group_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_group_daily_report_columns.sql", "original_file_path": "macros/get_ad_group_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_group_daily_report_columns", "macro_sql": "{% macro get_ad_group_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.730528, "supported_languages": null}, "macro.microsoft_ads_source.get_account_daily_report_columns": {"name": "get_account_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_account_daily_report_columns.sql", "original_file_path": "macros/get_account_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_account_daily_report_columns", "macro_sql": "{% macro get_account_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__account_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7346208, "supported_languages": null}, "macro.microsoft_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.736942, "supported_languages": null}, "macro.microsoft_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.738656, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"title_part_1\", \"datatype\": dbt.type_string()},\n {\"name\": \"final_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.740845, "supported_languages": null}, "macro.microsoft_ads_source.get_ad_daily_report_columns": {"name": "get_ad_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_ad_daily_report_columns.sql", "original_file_path": "macros/get_ad_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_ad_daily_report_columns", "macro_sql": "{% macro get_ad_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.745822, "supported_languages": null}, "macro.microsoft_ads_source.get_keyword_daily_report_columns": {"name": "get_keyword_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_keyword_daily_report_columns.sql", "original_file_path": "macros/get_keyword_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_keyword_daily_report_columns", "macro_sql": "{% macro get_keyword_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_distribution\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.751153, "supported_languages": null}, "macro.microsoft_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.microsoft_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.753185, "supported_languages": null}, "macro.microsoft_ads_source.get_search_daily_report_columns": {"name": "get_search_daily_report_columns", "resource_type": "macro", "package_name": "microsoft_ads_source", "path": "macros/get_search_daily_report_columns.sql", "original_file_path": "macros/get_search_daily_report_columns.sql", "unique_id": "macro.microsoft_ads_source.get_search_daily_report_columns", "macro_sql": "{% macro get_search_daily_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"delivered_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_os\", \"datatype\": dbt.type_string()},\n {\"name\": \"device_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"network\", \"datatype\": dbt.type_string()},\n {\"name\": \"search_query\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"top_vs_other\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('microsoft_ads__search_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.758285, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.759264, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.760541, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7616158, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7634492, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.764468, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.765433, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.767738, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7706392, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.772619, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.775538, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.777138, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.778054, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.779915, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.787267, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.788723, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.790376, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7922812, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.79399, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.7959812, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.797508, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.799222, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.801376, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.803282, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.805443, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.806931, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.80804, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.809261, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8108501, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.81327, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.816262, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.818539, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.821613, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8236082, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\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.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8266351, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.828423, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.829525, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.837086, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.841944, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.843057, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.843698, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.845385, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8465002, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.84737, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.848277, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8490398, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.851385, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.854267, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.856405, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8583732, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8593438, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8605142, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.861471, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.862575, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.864628, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8672168, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.869204, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.870477, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8711061, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.872962, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.875129, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8777878, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.878985, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8798609, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.882881, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.88747, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.890486, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.895181, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.8962681, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.896661, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.903054, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.912278, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.913151, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9138172, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.915359, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.915925, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.916458, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.916971, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9174242, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.917891, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.918862, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.919519, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.920511, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.922034, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.922935, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.923828, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.927213, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.928222, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9303732, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9318058, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.934916, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.939111, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.941582, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.943935, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.945227, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9473112, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9501388, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.951586, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"name": "redshift__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.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.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.952897, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.953429, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.954388, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.955988, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.957076, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.958802, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.959889, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.96035, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.960792, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9619992, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.964216, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9666, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.967447, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9690628, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.971287, "supported_languages": null}, "macro.reddit_ads_source.get_account_columns": {"name": "get_account_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "unique_id": "macro.reddit_ads_source.get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"attribution_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_attribution_window\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"view_attribution_window\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9743161, "supported_languages": null}, "macro.reddit_ads_source.get_campaign_columns": {"name": "get_campaign_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_campaign_columns.sql", "original_file_path": "macros/get_campaign_columns.sql", "unique_id": "macro.reddit_ads_source.get_campaign_columns", "macro_sql": "{% macro get_campaign_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.977368, "supported_languages": null}, "macro.reddit_ads_source.get_ad_columns": {"name": "get_ad_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_columns.sql", "original_file_path": "macros/get_ad_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_columns", "macro_sql": "{% macro get_ad_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"post_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"post_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"rejection_reason\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.981195, "supported_languages": null}, "macro.reddit_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.9855812, "supported_languages": null}, "macro.reddit_ads_source.get_ad_report_columns": {"name": "get_ad_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_report_columns.sql", "original_file_path": "macros/get_ad_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_report_columns", "macro_sql": "{% macro get_ad_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": \"date\", \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.98982, "supported_languages": null}, "macro.reddit_ads_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()}, \n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.994072, "supported_languages": null}, "macro.reddit_ads_source.get_account_report_columns": {"name": "get_account_report_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_account_report_columns.sql", "original_file_path": "macros/get_account_report_columns.sql", "unique_id": "macro.reddit_ads_source.get_account_report_columns", "macro_sql": "{% macro get_account_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"region\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()}\n] %}\n\n{% if target.type in ('bigquery', 'spark', 'databricks') %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"quote\": True, \"alias\": \"date_day\" } ) }}\n\n{% else %}\n {{ columns.append( {\"name\": 'date', \"datatype\": \"date\", \"alias\": \"date_day\"} ) }}\n\n{% endif %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('reddit_ads__account_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988310.998796, "supported_languages": null}, "macro.reddit_ads_source.get_ad_group_columns": {"name": "get_ad_group_columns", "resource_type": "macro", "package_name": "reddit_ads_source", "path": "macros/get_ad_group_columns.sql", "original_file_path": "macros/get_ad_group_columns.sql", "unique_id": "macro.reddit_ads_source.get_ad_group_columns", "macro_sql": "{% macro get_ad_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"configured_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"expand_targeting\", \"datatype\": \"boolean\"},\n {\"name\": \"goal_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"goal_value\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_processing\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization_strategy_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0040698, "supported_languages": null}, "macro.amazon_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0075278, "supported_languages": null}, "macro.amazon_ads_source.get_product_ad_history_columns": {"name": "get_product_ad_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_product_ad_history_columns.sql", "original_file_path": "macros/get_product_ad_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_product_ad_history_columns", "macro_sql": "{% macro get_product_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"asin\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0107388, "supported_languages": null}, "macro.amazon_ads_source.get_profile_columns": {"name": "get_profile_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_profile_columns.sql", "original_file_path": "macros/get_profile_columns.sql", "unique_id": "macro.amazon_ads_source.get_profile_columns", "macro_sql": "{% macro get_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_marketplace_string_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_valid_payment_method\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0149271, "supported_languages": null}, "macro.amazon_ads_source.get_advertised_product_report_columns": {"name": "get_advertised_product_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_advertised_product_report_columns.sql", "original_file_path": "macros/get_advertised_product_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_advertised_product_report_columns", "macro_sql": "{% macro get_advertised_product_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"advertised_asin\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertised_sku\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__advertised_product_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.019777, "supported_languages": null}, "macro.amazon_ads_source.get_ad_group_level_report_columns": {"name": "get_ad_group_level_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_ad_group_level_report_columns.sql", "original_file_path": "macros/get_ad_group_level_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_ad_group_level_report_columns", "macro_sql": "{% macro get_ad_group_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.022613, "supported_languages": null}, "macro.amazon_ads_source.get_search_term_ad_keyword_report_columns": {"name": "get_search_term_ad_keyword_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_search_term_ad_keyword_report_columns.sql", "original_file_path": "macros/get_search_term_ad_keyword_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_search_term_ad_keyword_report_columns", "macro_sql": "{% macro get_search_term_ad_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_keyword_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"search_term\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__search_term_ad_keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.027457, "supported_languages": null}, "macro.amazon_ads_source.get_campaign_level_report_columns": {"name": "get_campaign_level_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_campaign_level_report_columns.sql", "original_file_path": "macros/get_campaign_level_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_campaign_level_report_columns", "macro_sql": "{% macro get_campaign_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_applicable_budget_rule_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_applicable_budget_rule_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_rule_based_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.031806, "supported_languages": null}, "macro.amazon_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"bidding_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"portfolio_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"premium_bid_adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"profile_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.037392, "supported_languages": null}, "macro.amazon_ads_source.get_portfolio_history_columns": {"name": "get_portfolio_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_portfolio_history_columns.sql", "original_file_path": "macros/get_portfolio_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_portfolio_history_columns", "macro_sql": "{% macro get_portfolio_history_columns() %}\n\n{% set columns = [\n {\"name\": \"budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_end_date\", \"datatype\": \"date\"},\n {\"name\": \"budget_policy\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget_start_date\", \"datatype\": \"date\"},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"in_budget\", \"datatype\": \"boolean\"},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"profile_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.041794, "supported_languages": null}, "macro.amazon_ads_source.get_targeting_keyword_report_columns": {"name": "get_targeting_keyword_report_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_targeting_keyword_report_columns.sql", "original_file_path": "macros/get_targeting_keyword_report_columns.sql", "unique_id": "macro.amazon_ads_source.get_targeting_keyword_report_columns", "macro_sql": "{% macro get_targeting_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_keyword_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_budget_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"targeting\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('amazon_ads__targeting_keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0475461, "supported_languages": null}, "macro.amazon_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "amazon_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.amazon_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_updated_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_language_keyword\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0526772, "supported_languages": null}, "macro.linkedin_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.linkedin_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"call_to_action_label_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"click_uri\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.056294, "supported_languages": null}, "macro.linkedin_source.get_campaign_group_history_columns": {"name": "get_campaign_group_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_campaign_group_history_columns.sql", "original_file_path": "macros/get_campaign_group_history_columns.sql", "unique_id": "macro.linkedin_source.get_campaign_group_history_columns", "macro_sql": "{% macro get_campaign_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"backfilled\", \"datatype\": \"boolean\"},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0594728, "supported_languages": null}, "macro.linkedin_source.get_ad_analytics_by_campaign_columns": {"name": "get_ad_analytics_by_campaign_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_ad_analytics_by_campaign_columns.sql", "original_file_path": "macros/get_ad_analytics_by_campaign_columns.sql", "unique_id": "macro.linkedin_source.get_ad_analytics_by_campaign_columns", "macro_sql": "{% macro get_ad_analytics_by_campaign_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"day\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.062332, "supported_languages": null}, "macro.linkedin_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.linkedin_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"audience_expansion_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"campaign_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_selection\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"daily_budget_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"format\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"locale_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"locale_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"offsite_delivery_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"optimization_target_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"run_schedule_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"run_schedule_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"unit_cost_amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"unit_cost_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.07081, "supported_languages": null}, "macro.linkedin_source.get_ad_analytics_by_creative_columns": {"name": "get_ad_analytics_by_creative_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_ad_analytics_by_creative_columns.sql", "original_file_path": "macros/get_ad_analytics_by_creative_columns.sql", "unique_id": "macro.linkedin_source.get_ad_analytics_by_creative_columns", "macro_sql": "{% macro get_ad_analytics_by_creative_columns() %}\n\n{% set columns = [\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_in_local_currency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"cost_in_usd\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"day\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('linkedin_ads__creative_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.073913, "supported_languages": null}, "macro.linkedin_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "linkedin_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.linkedin_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_modified_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"version_tag\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0769432, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.089005, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.091203, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.093992, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.0963662, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.098778, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.101682, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.10224, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1026099, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.110178, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.127469, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.127897, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.128107, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.129441, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.133153, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.134061, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.134795, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.135623, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.136445, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1369889, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.137551, "supported_languages": null}, "macro.facebook_ads.get_url_tags_query": {"name": "get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.get_url_tags_query", "macro_sql": "{% macro get_url_tags_query() %}\n {{ return(adapter.dispatch('get_url_tags_query') ()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.facebook_ads.bigquery__get_url_tags_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.139575, "supported_languages": null}, "macro.facebook_ads.bigquery__get_url_tags_query": {"name": "bigquery__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.bigquery__get_url_tags_query", "macro_sql": "{% macro bigquery__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\n _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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.139879, "supported_languages": null}, "macro.facebook_ads.postgres__get_url_tags_query": {"name": "postgres__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.postgres__get_url_tags_query", "macro_sql": "{% macro postgres__get_url_tags_query() %}\n\n cleaned_json as (\n\n select\n _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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.140161, "supported_languages": null}, "macro.facebook_ads.redshift__get_url_tags_query": {"name": "redshift__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.redshift__get_url_tags_query", "macro_sql": "{% macro redshift__get_url_tags_query() %}\n\n numbers as (\n\n {{ dbt_utils.generate_series(upper_bound=1000) }}\n\n ), \n\n flattened_url_tags as (\n\n select\n _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 %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.140609, "supported_languages": null}, "macro.facebook_ads.snowflake__get_url_tags_query": {"name": "snowflake__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.snowflake__get_url_tags_query", "macro_sql": "{% macro snowflake__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\n _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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.140873, "supported_languages": null}, "macro.facebook_ads.spark__get_url_tags_query": {"name": "spark__get_url_tags_query", "resource_type": "macro", "package_name": "facebook_ads", "path": "macros/get_url_tag_query.sql", "original_file_path": "macros/get_url_tag_query.sql", "unique_id": "macro.facebook_ads.spark__get_url_tags_query", "macro_sql": "{% macro spark__get_url_tags_query() %}\n\n cleaned_fields as (\n\n select\n _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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.14112, "supported_languages": null}, "macro.dbt_date.get_date_dimension": {"name": "get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.get_date_dimension", "macro_sql": "{% macro get_date_dimension(start_date, end_date) %}\n {{ adapter.dispatch('get_date_dimension', 'dbt_date') (start_date, end_date) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_date_dimension"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.155902, "supported_languages": null}, "macro.dbt_date.default__get_date_dimension": {"name": "default__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.default__get_date_dimension", "macro_sql": "{% macro default__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=false) }} as day_of_week,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week_iso,\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n cast({{ last_day('d.date_day', 'quarter') }} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1622982, "supported_languages": null}, "macro.dbt_date.postgres__get_date_dimension": {"name": "postgres__get_date_dimension", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_date_dimension.sql", "original_file_path": "macros/get_date_dimension.sql", "unique_id": "macro.dbt_date.postgres__get_date_dimension", "macro_sql": "{% macro postgres__get_date_dimension(start_date, end_date) %}\nwith base_dates as (\n {{ dbt_date.get_base_dates(start_date, end_date) }}\n),\ndates_with_prior_year_dates as (\n\n select\n cast(d.date_day as date) as date_day,\n cast({{ dbt.dateadd('year', -1 , 'd.date_day') }} as date) as prior_year_date_day,\n cast({{ dbt.dateadd('day', -364 , 'd.date_day') }} as date) as prior_year_over_year_date_day\n from\n \tbase_dates d\n\n)\nselect\n d.date_day,\n {{ dbt_date.yesterday('d.date_day') }} as prior_date_day,\n {{ dbt_date.tomorrow('d.date_day') }} as next_date_day,\n d.prior_year_date_day as prior_year_date_day,\n d.prior_year_over_year_date_day,\n {{ dbt_date.day_of_week('d.date_day', isoweek=true) }} as day_of_week,\n\n {{ dbt_date.day_name('d.date_day', short=false) }} as day_of_week_name,\n {{ dbt_date.day_name('d.date_day', short=true) }} as day_of_week_name_short,\n {{ dbt_date.day_of_month('d.date_day') }} as day_of_month,\n {{ dbt_date.day_of_year('d.date_day') }} as day_of_year,\n\n {{ dbt_date.week_start('d.date_day') }} as week_start_date,\n {{ dbt_date.week_end('d.date_day') }} as week_end_date,\n {{ dbt_date.week_start('d.prior_year_over_year_date_day') }} as prior_year_week_start_date,\n {{ dbt_date.week_end('d.prior_year_over_year_date_day') }} as prior_year_week_end_date,\n {{ dbt_date.week_of_year('d.date_day') }} as week_of_year,\n\n {{ dbt_date.iso_week_start('d.date_day') }} as iso_week_start_date,\n {{ dbt_date.iso_week_end('d.date_day') }} as iso_week_end_date,\n {{ dbt_date.iso_week_start('d.prior_year_over_year_date_day') }} as prior_year_iso_week_start_date,\n {{ dbt_date.iso_week_end('d.prior_year_over_year_date_day') }} as prior_year_iso_week_end_date,\n {{ dbt_date.iso_week_of_year('d.date_day') }} as iso_week_of_year,\n\n {{ dbt_date.week_of_year('d.prior_year_over_year_date_day') }} as prior_year_week_of_year,\n {{ dbt_date.iso_week_of_year('d.prior_year_over_year_date_day') }} as prior_year_iso_week_of_year,\n\n cast({{ dbt_date.date_part('month', 'd.date_day') }} as {{ dbt.type_int() }}) as month_of_year,\n {{ dbt_date.month_name('d.date_day', short=false) }} as month_name,\n {{ dbt_date.month_name('d.date_day', short=true) }} as month_name_short,\n\n cast({{ dbt.date_trunc('month', 'd.date_day') }} as date) as month_start_date,\n cast({{ last_day('d.date_day', 'month') }} as date) as month_end_date,\n\n cast({{ dbt.date_trunc('month', 'd.prior_year_date_day') }} as date) as prior_year_month_start_date,\n cast({{ last_day('d.prior_year_date_day', 'month') }} as date) as prior_year_month_end_date,\n\n cast({{ dbt_date.date_part('quarter', 'd.date_day') }} as {{ dbt.type_int() }}) as quarter_of_year,\n cast({{ dbt.date_trunc('quarter', 'd.date_day') }} as date) as quarter_start_date,\n {# last_day does not support quarter because postgresql does not support quarter interval. #}\n cast({{dbt.dateadd('day', '-1', dbt.dateadd('month', '3', dbt.date_trunc('quarter', 'd.date_day')))}} as date) as quarter_end_date,\n\n cast({{ dbt_date.date_part('year', 'd.date_day') }} as {{ dbt.type_int() }}) as year_number,\n cast({{ dbt.date_trunc('year', 'd.date_day') }} as date) as year_start_date,\n cast({{ last_day('d.date_day', 'year') }} as date) as year_end_date\nfrom\n dates_with_prior_year_dates d\norder by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_base_dates", "macro.dbt.dateadd", "macro.dbt_date.yesterday", "macro.dbt_date.tomorrow", "macro.dbt_date.day_of_week", "macro.dbt_date.day_name", "macro.dbt_date.day_of_month", "macro.dbt_date.day_of_year", "macro.dbt_date.week_start", "macro.dbt_date.week_end", "macro.dbt_date.week_of_year", "macro.dbt_date.iso_week_start", "macro.dbt_date.iso_week_end", "macro.dbt_date.iso_week_of_year", "macro.dbt_date.date_part", "macro.dbt.type_int", "macro.dbt_date.month_name", "macro.dbt.date_trunc", "macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1686752, "supported_languages": null}, "macro.dbt_date.get_base_dates": {"name": "get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.get_base_dates", "macro_sql": "{% macro get_base_dates(start_date=None, end_date=None, n_dateparts=None, datepart=\"day\") %}\n {{ adapter.dispatch('get_base_dates', 'dbt_date') (start_date, end_date, n_dateparts, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__get_base_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.170756, "supported_languages": null}, "macro.dbt_date.default__get_base_dates": {"name": "default__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.default__get_base_dates", "macro_sql": "{% macro default__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as \" ~ dbt.type_timestamp() ~ \")\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.172658, "supported_languages": null}, "macro.dbt_date.bigquery__get_base_dates": {"name": "bigquery__get_base_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/get_base_dates.sql", "original_file_path": "macros/get_base_dates.sql", "unique_id": "macro.dbt_date.bigquery__get_base_dates", "macro_sql": "{% macro bigquery__get_base_dates(start_date, end_date, n_dateparts, datepart) %}\n\n{%- if start_date and end_date -%}\n{%- set start_date=\"cast('\" ~ start_date ~ \"' as date )\" -%}\n{%- set end_date=\"cast('\" ~ end_date ~ \"' as date )\" -%}\n\n{%- elif n_dateparts and datepart -%}\n\n{%- set start_date = dbt.dateadd(datepart, -1 * n_dateparts, dbt_date.today()) -%}\n{%- set end_date = dbt_date.tomorrow() -%}\n{%- endif -%}\n\nwith date_spine as\n(\n\n {{ dbt_date.date_spine(\n datepart=datepart,\n start_date=start_date,\n end_date=end_date,\n )\n }}\n\n)\nselect\n cast(d.date_{{ datepart }} as {{ dbt.type_timestamp() }}) as date_{{ datepart }}\nfrom\n date_spine d\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_date.today", "macro.dbt_date.tomorrow", "macro.dbt_date.date_spine", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.174384, "supported_languages": null}, "macro.dbt_date.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_date')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.175837, "supported_languages": null}, "macro.dbt_date.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1773398, "supported_languages": null}, "macro.dbt_date.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_date')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.177928, "supported_languages": null}, "macro.dbt_date.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/date_spine.sql", "original_file_path": "macros/_utils/date_spine.sql", "unique_id": "macro.dbt_date.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{\n dbt_date.generate_series(\n dbt_date.get_intervals_between(start_date, end_date, datepart)\n )\n }}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.generate_series", "macro.dbt_date.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.178845, "supported_languages": null}, "macro.dbt_date.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.180445, "supported_languages": null}, "macro.dbt_date.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.18149, "supported_languages": null}, "macro.dbt_date.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_date')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.181973, "supported_languages": null}, "macro.dbt_date.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/_utils/generate_series.sql", "original_file_path": "macros/_utils/generate_series.sql", "unique_id": "macro.dbt_date.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_date.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1833, "supported_languages": null}, "macro.dbt_date.get_fiscal_year_dates": {"name": "get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.get_fiscal_year_dates", "macro_sql": "{% macro get_fiscal_year_dates(dates, year_end_month=12, week_start_day=1, shift_year=1) %}\n{{ adapter.dispatch('get_fiscal_year_dates', 'dbt_date') (dates, year_end_month, week_start_day, shift_year) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__get_fiscal_year_dates"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.186523, "supported_languages": null}, "macro.dbt_date.default__get_fiscal_year_dates": {"name": "default__get_fiscal_year_dates", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_year_dates.sql", "original_file_path": "macros/fiscal_date/get_fiscal_year_dates.sql", "unique_id": "macro.dbt_date.default__get_fiscal_year_dates", "macro_sql": "{% macro default__get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) %}\n-- this gets all the dates within a fiscal year\n-- determined by the given year-end-month\n-- ending on the saturday closest to that month's end date\nwith 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.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.datediff('d.week_end_date', 'm.month_end_date', 'day') }})\n\n ) as closest_to_month_end\n from\n year_week_ends d\n join\n year_month_end m on d.fiscal_year_number = m.fiscal_year_number\n),\nfiscal_year_range as (\n\n select\n w.fiscal_year_number,\n cast(\n {{ dbt.dateadd('day', 1,\n 'lag(w.week_end_date) over(order by w.week_end_date)') }}\n as date) as fiscal_year_start_date,\n w.week_end_date as fiscal_year_end_date\n from\n weeks_at_month_end w\n where\n w.closest_to_month_end = 1\n\n),\nfiscal_year_dates as (\n\n select\n d.date_day,\n m.fiscal_year_number,\n m.fiscal_year_start_date,\n m.fiscal_year_end_date,\n w.week_start_date,\n w.week_end_date,\n -- we reset the weeks of the year starting with the merch year start date\n dense_rank()\n over(\n partition by m.fiscal_year_number\n order by w.week_start_date\n ) as fiscal_week_of_year\n from\n date_dimension d\n join\n fiscal_year_range m on d.date_day between m.fiscal_year_start_date and m.fiscal_year_end_date\n join\n weeks w on d.date_day between w.week_start_date and w.week_end_date\n\n)\nselect * from fiscal_year_dates order by 1\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.187978, "supported_languages": null}, "macro.dbt_date.get_fiscal_periods": {"name": "get_fiscal_periods", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/fiscal_date/get_fiscal_periods.sql", "original_file_path": "macros/fiscal_date/get_fiscal_periods.sql", "unique_id": "macro.dbt_date.get_fiscal_periods", "macro_sql": "{% macro get_fiscal_periods(dates, year_end_month, week_start_day, shift_year=1) %}\n{#\nThis macro requires you to pass in a ref to a date dimension, created via\ndbt_date.get_date_dimension()s\n#}\nwith fscl_year_dates_for_periods as (\n {{ dbt_date.get_fiscal_year_dates(dates, year_end_month, week_start_day, shift_year) }}\n),\nfscl_year_w13 as (\n\n select\n f.*,\n -- We count the weeks in a 13 week period\n -- and separate the 4-5-4 week sequences\n mod(cast(\n (f.fiscal_week_of_year-1) as {{ dbt.type_int() }}\n ), 13) as w13_number,\n -- Chop weeks into 13 week merch quarters\n cast(\n least(\n floor((f.fiscal_week_of_year-1)/13.0)\n , 3)\n as {{ dbt.type_int() }}) as quarter_number\n from\n fscl_year_dates_for_periods f\n\n),\nfscl_periods as (\n\n select\n f.date_day,\n f.fiscal_year_number,\n f.week_start_date,\n f.week_end_date,\n f.fiscal_week_of_year,\n case\n -- we move week 53 into the 3rd period of the quarter\n when f.fiscal_week_of_year = 53 then 3\n when f.w13_number between 0 and 3 then 1\n when f.w13_number between 4 and 8 then 2\n when f.w13_number between 9 and 12 then 3\n end as period_of_quarter,\n f.quarter_number\n from\n fscl_year_w13 f\n\n),\nfscl_periods_quarters as (\n\n select\n f.*,\n cast((\n (f.quarter_number * 3) + f.period_of_quarter\n ) as {{ dbt.type_int() }}) as fiscal_period_number\n from\n fscl_periods f\n\n)\nselect\n date_day,\n fiscal_year_number,\n week_start_date,\n week_end_date,\n fiscal_week_of_year,\n dense_rank() over(partition by fiscal_period_number order by fiscal_week_of_year) as fiscal_week_of_period,\n fiscal_period_number,\n quarter_number+1 as fiscal_quarter_number,\n period_of_quarter as fiscal_period_of_quarter\nfrom\n fscl_periods_quarters\norder by 1,2\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_date.get_fiscal_year_dates", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.189822, "supported_languages": null}, "macro.dbt_date.tomorrow": {"name": "tomorrow", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/tomorrow.sql", "original_file_path": "macros/calendar_date/tomorrow.sql", "unique_id": "macro.dbt_date.tomorrow", "macro_sql": "{%- macro tomorrow(date=None, tz=None) -%}\n{{ dbt_date.n_days_away(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.190382, "supported_languages": null}, "macro.dbt_date.next_week": {"name": "next_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_week.sql", "original_file_path": "macros/calendar_date/next_week.sql", "unique_id": "macro.dbt_date.next_week", "macro_sql": "{%- macro next_week(tz=None) -%}\n{{ dbt_date.n_weeks_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1908438, "supported_languages": null}, "macro.dbt_date.next_month_name": {"name": "next_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_name.sql", "original_file_path": "macros/calendar_date/next_month_name.sql", "unique_id": "macro.dbt_date.next_month_name", "macro_sql": "{%- macro next_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.next_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1914492, "supported_languages": null}, "macro.dbt_date.next_month": {"name": "next_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month.sql", "original_file_path": "macros/calendar_date/next_month.sql", "unique_id": "macro.dbt_date.next_month", "macro_sql": "{%- macro next_month(tz=None) -%}\n{{ dbt_date.n_months_away(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.191922, "supported_languages": null}, "macro.dbt_date.day_name": {"name": "day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.day_name", "macro_sql": "{%- macro day_name(date, short=True) -%}\n {{ adapter.dispatch('day_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__day_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1932852, "supported_languages": null}, "macro.dbt_date.default__day_name": {"name": "default__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.default__day_name", "macro_sql": "\n\n{%- macro default__day_name(date, short) -%}\n{%- set f = 'Dy' if short else 'Day' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.193911, "supported_languages": null}, "macro.dbt_date.snowflake__day_name": {"name": "snowflake__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.snowflake__day_name", "macro_sql": "\n\n{%- macro snowflake__day_name(date, short) -%}\n {%- if short -%}\n dayname({{ date }})\n {%- else -%}\n -- long version not implemented on Snowflake so we're doing it manually :/\n case dayname({{ date }})\n when 'Mon' then 'Monday'\n when 'Tue' then 'Tuesday'\n when 'Wed' then 'Wednesday'\n when 'Thu' then 'Thursday'\n when 'Fri' then 'Friday'\n when 'Sat' then 'Saturday'\n when 'Sun' then 'Sunday'\n end\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1945758, "supported_languages": null}, "macro.dbt_date.bigquery__day_name": {"name": "bigquery__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.bigquery__day_name", "macro_sql": "\n\n{%- macro bigquery__day_name(date, short) -%}\n{%- set f = '%a' if short else '%A' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.195194, "supported_languages": null}, "macro.dbt_date.postgres__day_name": {"name": "postgres__day_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_name.sql", "original_file_path": "macros/calendar_date/day_name.sql", "unique_id": "macro.dbt_date.postgres__day_name", "macro_sql": "\n\n{%- macro postgres__day_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMDy' if short else 'FMDay' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.196264, "supported_languages": null}, "macro.dbt_date.to_unixtimestamp": {"name": "to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.to_unixtimestamp", "macro_sql": "{%- macro to_unixtimestamp(timestamp) -%}\n {{ adapter.dispatch('to_unixtimestamp', 'dbt_date') (timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__to_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.197191, "supported_languages": null}, "macro.dbt_date.default__to_unixtimestamp": {"name": "default__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__to_unixtimestamp", "macro_sql": "\n\n{%- macro default__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.197624, "supported_languages": null}, "macro.dbt_date.snowflake__to_unixtimestamp": {"name": "snowflake__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__to_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__to_unixtimestamp(timestamp) -%}\n {{ dbt_date.date_part('epoch_seconds', timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.198006, "supported_languages": null}, "macro.dbt_date.bigquery__to_unixtimestamp": {"name": "bigquery__to_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/to_unixtimestamp.sql", "original_file_path": "macros/calendar_date/to_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__to_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__to_unixtimestamp(timestamp) -%}\n unix_seconds({{ timestamp }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.1983, "supported_languages": null}, "macro.dbt_date.n_days_away": {"name": "n_days_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_away.sql", "original_file_path": "macros/calendar_date/n_days_away.sql", "unique_id": "macro.dbt_date.n_days_away", "macro_sql": "{%- macro n_days_away(n, date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(-1 * n, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.199012, "supported_languages": null}, "macro.dbt_date.week_start": {"name": "week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.week_start", "macro_sql": "{%- macro week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.200754, "supported_languages": null}, "macro.dbt_date.default__week_start": {"name": "default__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.default__week_start", "macro_sql": "{%- macro default__week_start(date) -%}\ncast({{ dbt.date_trunc('week', date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.201208, "supported_languages": null}, "macro.dbt_date.snowflake__week_start": {"name": "snowflake__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.snowflake__week_start", "macro_sql": "\n\n{%- macro snowflake__week_start(date) -%}\n {#\n Get the day of week offset: e.g. if the date is a Sunday,\n dbt_date.day_of_week returns 1, so we subtract 1 to get a 0 offset\n #}\n {% set off_set = dbt_date.day_of_week(date, isoweek=False) ~ \" - 1\" %}\n cast({{ dbt.dateadd(\"day\", \"-1 * (\" ~ off_set ~ \")\", date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.day_of_week", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.202014, "supported_languages": null}, "macro.dbt_date.postgres__week_start": {"name": "postgres__week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_start.sql", "original_file_path": "macros/calendar_date/week_start.sql", "unique_id": "macro.dbt_date.postgres__week_start", "macro_sql": "\n\n{%- macro postgres__week_start(date) -%}\n-- Sunday as week start date\ncast({{ dbt.dateadd('day', -1, dbt.date_trunc('week', dbt.dateadd('day', 1, date))) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2027168, "supported_languages": null}, "macro.dbt_date.iso_week_start": {"name": "iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.iso_week_start", "macro_sql": "{%- macro iso_week_start(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_start', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.20401, "supported_languages": null}, "macro.dbt_date._iso_week_start": {"name": "_iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date._iso_week_start", "macro_sql": "{%- macro _iso_week_start(date, week_type) -%}\ncast({{ dbt.date_trunc(week_type, date) }} as date)\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.204448, "supported_languages": null}, "macro.dbt_date.default__iso_week_start": {"name": "default__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.default__iso_week_start", "macro_sql": "\n\n{%- macro default__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.204848, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_start": {"name": "snowflake__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_start", "macro_sql": "\n\n{%- macro snowflake__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.205247, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_start": {"name": "postgres__iso_week_start", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_start.sql", "original_file_path": "macros/calendar_date/iso_week_start.sql", "unique_id": "macro.dbt_date.postgres__iso_week_start", "macro_sql": "\n\n{%- macro postgres__iso_week_start(date) -%}\n{{ dbt_date._iso_week_start(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_start"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.205705, "supported_languages": null}, "macro.dbt_date.n_days_ago": {"name": "n_days_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_days_ago.sql", "original_file_path": "macros/calendar_date/n_days_ago.sql", "unique_id": "macro.dbt_date.n_days_ago", "macro_sql": "{%- macro n_days_ago(n, date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{%- set n = n|int -%}\ncast({{ dbt.dateadd('day', -1 * n, dt) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.206828, "supported_languages": null}, "macro.dbt_date.last_week": {"name": "last_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_week.sql", "original_file_path": "macros/calendar_date/last_week.sql", "unique_id": "macro.dbt_date.last_week", "macro_sql": "{%- macro last_week(tz=None) -%}\n{{ dbt_date.n_weeks_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_weeks_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2073169, "supported_languages": null}, "macro.dbt_date.now": {"name": "now", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/now.sql", "original_file_path": "macros/calendar_date/now.sql", "unique_id": "macro.dbt_date.now", "macro_sql": "{%- macro now(tz=None) -%}\n{{ dbt_date.convert_timezone(dbt.current_timestamp(), tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.convert_timezone", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.207825, "supported_languages": null}, "macro.dbt_date.periods_since": {"name": "periods_since", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/periods_since.sql", "original_file_path": "macros/calendar_date/periods_since.sql", "unique_id": "macro.dbt_date.periods_since", "macro_sql": "{%- macro periods_since(date_col, period_name='day', tz=None) -%}\n{{ dbt.datediff(date_col, dbt_date.now(tz), period_name) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.208483, "supported_languages": null}, "macro.dbt_date.today": {"name": "today", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/today.sql", "original_file_path": "macros/calendar_date/today.sql", "unique_id": "macro.dbt_date.today", "macro_sql": "{%- macro today(tz=None) -%}\ncast({{ dbt_date.now(tz) }} as date)\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.now"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.208995, "supported_languages": null}, "macro.dbt_date.last_month": {"name": "last_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month.sql", "original_file_path": "macros/calendar_date/last_month.sql", "unique_id": "macro.dbt_date.last_month", "macro_sql": "{%- macro last_month(tz=None) -%}\n{{ dbt_date.n_months_ago(1, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_months_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2095518, "supported_languages": null}, "macro.dbt_date.day_of_year": {"name": "day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.day_of_year", "macro_sql": "{%- macro day_of_year(date) -%}\n{{ adapter.dispatch('day_of_year', 'dbt_date') (date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.default__day_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2103019, "supported_languages": null}, "macro.dbt_date.default__day_of_year": {"name": "default__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.default__day_of_year", "macro_sql": "\n\n{%- macro default__day_of_year(date) -%}\n {{ dbt_date.date_part('dayofyear', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.210676, "supported_languages": null}, "macro.dbt_date.postgres__day_of_year": {"name": "postgres__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.postgres__day_of_year", "macro_sql": "\n\n{%- macro postgres__day_of_year(date) -%}\n {{ dbt_date.date_part('doy', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.211136, "supported_languages": null}, "macro.dbt_date.redshift__day_of_year": {"name": "redshift__day_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_year.sql", "original_file_path": "macros/calendar_date/day_of_year.sql", "unique_id": "macro.dbt_date.redshift__day_of_year", "macro_sql": "\n\n{%- macro redshift__day_of_year(date) -%}\n cast({{ dbt_date.date_part('dayofyear', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2118258, "supported_languages": null}, "macro.dbt_date.round_timestamp": {"name": "round_timestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/round_timestamp.sql", "original_file_path": "macros/calendar_date/round_timestamp.sql", "unique_id": "macro.dbt_date.round_timestamp", "macro_sql": "{% macro round_timestamp(timestamp) %}\n {{ dbt.date_trunc(\"day\", dbt.dateadd(\"hour\", 12, timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2124648, "supported_languages": null}, "macro.dbt_date.from_unixtimestamp": {"name": "from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.from_unixtimestamp", "macro_sql": "{%- macro from_unixtimestamp(epochs, format=\"seconds\") -%}\n {{ adapter.dispatch('from_unixtimestamp', 'dbt_date') (epochs, format) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__from_unixtimestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.214824, "supported_languages": null}, "macro.dbt_date.default__from_unixtimestamp": {"name": "default__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.default__from_unixtimestamp", "macro_sql": "\n\n{%- macro default__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp({{ epochs }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.21553, "supported_languages": null}, "macro.dbt_date.postgres__from_unixtimestamp": {"name": "postgres__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.postgres__from_unixtimestamp", "macro_sql": "\n\n{%- macro postgres__from_unixtimestamp(epochs, format=\"seconds\") -%}\n {%- if format != \"seconds\" -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.21623, "supported_languages": null}, "macro.dbt_date.snowflake__from_unixtimestamp": {"name": "snowflake__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.snowflake__from_unixtimestamp", "macro_sql": "\n\n{%- macro snowflake__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n {%- set scale = 0 -%}\n {%- elif format == \"milliseconds\" -%}\n {%- set scale = 3 -%}\n {%- elif format == \"microseconds\" -%}\n {%- set scale = 6 -%}\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n to_timestamp_ntz({{ epochs }}, {{ scale }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.217458, "supported_languages": null}, "macro.dbt_date.bigquery__from_unixtimestamp": {"name": "bigquery__from_unixtimestamp", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/from_unixtimestamp.sql", "original_file_path": "macros/calendar_date/from_unixtimestamp.sql", "unique_id": "macro.dbt_date.bigquery__from_unixtimestamp", "macro_sql": "\n\n{%- macro bigquery__from_unixtimestamp(epochs, format) -%}\n {%- if format == \"seconds\" -%}\n timestamp_seconds({{ epochs }})\n {%- elif format == \"milliseconds\" -%}\n timestamp_millis({{ epochs }})\n {%- elif format == \"microseconds\" -%}\n timestamp_micros({{ epochs }})\n {%- else -%}\n {{ exceptions.raise_compiler_error(\n \"value \" ~ format ~ \" for `format` for from_unixtimestamp is not supported.\"\n )\n }}\n {% endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.218493, "supported_languages": null}, "macro.dbt_date.n_months_ago": {"name": "n_months_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_ago.sql", "original_file_path": "macros/calendar_date/n_months_ago.sql", "unique_id": "macro.dbt_date.n_months_ago", "macro_sql": "{%- macro n_months_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.219491, "supported_languages": null}, "macro.dbt_date.date_part": {"name": "date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.date_part", "macro_sql": "{% macro date_part(datepart, date) -%}\n {{ adapter.dispatch('date_part', 'dbt_date') (datepart, date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.22029, "supported_languages": null}, "macro.dbt_date.default__date_part": {"name": "default__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.default__date_part", "macro_sql": "{% macro default__date_part(datepart, date) -%}\n date_part('{{ datepart }}', {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.220664, "supported_languages": null}, "macro.dbt_date.bigquery__date_part": {"name": "bigquery__date_part", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/date_part.sql", "original_file_path": "macros/calendar_date/date_part.sql", "unique_id": "macro.dbt_date.bigquery__date_part", "macro_sql": "{% macro bigquery__date_part(datepart, date) -%}\n extract({{ datepart }} from {{ date }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.221018, "supported_languages": null}, "macro.dbt_date.n_weeks_away": {"name": "n_weeks_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_away.sql", "original_file_path": "macros/calendar_date/n_weeks_away.sql", "unique_id": "macro.dbt_date.n_weeks_away", "macro_sql": "{%- macro n_weeks_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.221925, "supported_languages": null}, "macro.dbt_date.day_of_month": {"name": "day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.day_of_month", "macro_sql": "{%- macro day_of_month(date) -%}\n{{ dbt_date.date_part('day', date) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.222475, "supported_languages": null}, "macro.dbt_date.redshift__day_of_month": {"name": "redshift__day_of_month", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_month.sql", "original_file_path": "macros/calendar_date/day_of_month.sql", "unique_id": "macro.dbt_date.redshift__day_of_month", "macro_sql": "\n\n{%- macro redshift__day_of_month(date) -%}\ncast({{ dbt_date.date_part('day', date) }} as {{ dbt.type_bigint() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.222976, "supported_languages": null}, "macro.dbt_date.yesterday": {"name": "yesterday", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/yesterday.sql", "original_file_path": "macros/calendar_date/yesterday.sql", "unique_id": "macro.dbt_date.yesterday", "macro_sql": "{%- macro yesterday(date=None, tz=None) -%}\n{{ dbt_date.n_days_ago(1, date, tz) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.n_days_ago"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.223545, "supported_languages": null}, "macro.dbt_date.day_of_week": {"name": "day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.day_of_week", "macro_sql": "{%- macro day_of_week(date, isoweek=true) -%}\n{{ adapter.dispatch('day_of_week', 'dbt_date') (date, isoweek) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__day_of_week"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.226919, "supported_languages": null}, "macro.dbt_date.default__day_of_week": {"name": "default__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.default__day_of_week", "macro_sql": "\n\n{%- macro default__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else {{ dow }}\n end\n {%- else -%}\n {{ dow }} + 1\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.227694, "supported_languages": null}, "macro.dbt_date.snowflake__day_of_week": {"name": "snowflake__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.snowflake__day_of_week", "macro_sql": "\n\n{%- macro snowflake__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'dayofweekiso' -%}\n {{ dbt_date.date_part(dow_part, date) }}\n {%- else -%}\n {%- set dow_part = 'dayofweek' -%}\n case\n when {{ dbt_date.date_part(dow_part, date) }} = 7 then 1\n else {{ dbt_date.date_part(dow_part, date) }} + 1\n end\n {%- endif -%}\n\n\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2288141, "supported_languages": null}, "macro.dbt_date.bigquery__day_of_week": {"name": "bigquery__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.bigquery__day_of_week", "macro_sql": "\n\n{%- macro bigquery__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (1) to Monday (2)\n when {{ dow }} = 1 then 7\n else {{ dow }} - 1\n end\n {%- else -%}\n {{ dow }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.229677, "supported_languages": null}, "macro.dbt_date.postgres__day_of_week": {"name": "postgres__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.postgres__day_of_week", "macro_sql": "\n\n\n{%- macro postgres__day_of_week(date, isoweek) -%}\n\n {%- if isoweek -%}\n {%- set dow_part = 'isodow' -%}\n -- Monday(1) to Sunday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} as {{ dbt.type_int() }})\n {%- else -%}\n {%- set dow_part = 'dow' -%}\n -- Sunday(1) to Saturday (7)\n cast({{ dbt_date.date_part(dow_part, date) }} + 1 as {{ dbt.type_int() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2308311, "supported_languages": null}, "macro.dbt_date.redshift__day_of_week": {"name": "redshift__day_of_week", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/day_of_week.sql", "original_file_path": "macros/calendar_date/day_of_week.sql", "unique_id": "macro.dbt_date.redshift__day_of_week", "macro_sql": "\n\n\n{%- macro redshift__day_of_week(date, isoweek) -%}\n\n {%- set dow = dbt_date.date_part('dayofweek', date) -%}\n\n {%- if isoweek -%}\n case\n -- Shift start of week from Sunday (0) to Monday (1)\n when {{ dow }} = 0 then 7\n else cast({{ dow }} as {{ dbt.type_bigint() }})\n end\n {%- else -%}\n cast({{ dow }} + 1 as {{ dbt.type_bigint() }})\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.232332, "supported_languages": null}, "macro.dbt_date.iso_week_end": {"name": "iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.iso_week_end", "macro_sql": "{%- macro iso_week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2338712, "supported_languages": null}, "macro.dbt_date._iso_week_end": {"name": "_iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date._iso_week_end", "macro_sql": "{%- macro _iso_week_end(date, week_type) -%}\n{%- set dt = dbt_date.iso_week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.iso_week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.234459, "supported_languages": null}, "macro.dbt_date.default__iso_week_end": {"name": "default__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.default__iso_week_end", "macro_sql": "\n\n{%- macro default__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2348568, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_end": {"name": "snowflake__iso_week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_end.sql", "original_file_path": "macros/calendar_date/iso_week_end.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_end", "macro_sql": "\n\n{%- macro snowflake__iso_week_end(date) -%}\n{{ dbt_date._iso_week_end(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.235308, "supported_languages": null}, "macro.dbt_date.n_weeks_ago": {"name": "n_weeks_ago", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_weeks_ago.sql", "original_file_path": "macros/calendar_date/n_weeks_ago.sql", "unique_id": "macro.dbt_date.n_weeks_ago", "macro_sql": "{%- macro n_weeks_ago(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('week',\n dbt.dateadd('week', -1 * n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2363641, "supported_languages": null}, "macro.dbt_date.month_name": {"name": "month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.month_name", "macro_sql": "{%- macro month_name(date, short=True) -%}\n {{ adapter.dispatch('month_name', 'dbt_date') (date, short) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.bigquery__month_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.237557, "supported_languages": null}, "macro.dbt_date.default__month_name": {"name": "default__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.default__month_name", "macro_sql": "\n\n{%- macro default__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MONTH' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.238142, "supported_languages": null}, "macro.dbt_date.bigquery__month_name": {"name": "bigquery__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.bigquery__month_name", "macro_sql": "\n\n{%- macro bigquery__month_name(date, short) -%}\n{%- set f = '%b' if short else '%B' -%}\n format_date('{{ f }}', cast({{ date }} as date))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.238718, "supported_languages": null}, "macro.dbt_date.snowflake__month_name": {"name": "snowflake__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.snowflake__month_name", "macro_sql": "\n\n{%- macro snowflake__month_name(date, short) -%}\n{%- set f = 'MON' if short else 'MMMM' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.239418, "supported_languages": null}, "macro.dbt_date.postgres__month_name": {"name": "postgres__month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/month_name.sql", "original_file_path": "macros/calendar_date/month_name.sql", "unique_id": "macro.dbt_date.postgres__month_name", "macro_sql": "\n\n{%- macro postgres__month_name(date, short) -%}\n{# FM = Fill mode, which suppresses padding blanks #}\n{%- set f = 'FMMon' if short else 'FMMonth' -%}\n to_char({{ date }}, '{{ f }}')\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2400901, "supported_languages": null}, "macro.dbt_date.last_month_name": {"name": "last_month_name", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_name.sql", "original_file_path": "macros/calendar_date/last_month_name.sql", "unique_id": "macro.dbt_date.last_month_name", "macro_sql": "{%- macro last_month_name(short=True, tz=None) -%}\n{{ dbt_date.month_name(dbt_date.last_month(tz), short=short) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.month_name", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.24087, "supported_languages": null}, "macro.dbt_date.week_of_year": {"name": "week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.week_of_year", "macro_sql": "{%- macro week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.24212, "supported_languages": null}, "macro.dbt_date.default__week_of_year": {"name": "default__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.default__week_of_year", "macro_sql": "{%- macro default__week_of_year(date) -%}\ncast({{ dbt_date.date_part('week', date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2427032, "supported_languages": null}, "macro.dbt_date.postgres__week_of_year": {"name": "postgres__week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_of_year.sql", "original_file_path": "macros/calendar_date/week_of_year.sql", "unique_id": "macro.dbt_date.postgres__week_of_year", "macro_sql": "\n\n{%- macro postgres__week_of_year(date) -%}\n{# postgresql 'week' returns isoweek. Use to_char instead.\n WW = the first week starts on the first day of the year #}\ncast(to_char({{ date }}, 'WW') as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.243177, "supported_languages": null}, "macro.dbt_date.convert_timezone": {"name": "convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.convert_timezone", "macro_sql": "{%- macro convert_timezone(column, target_tz=None, source_tz=None) -%}\n{%- set source_tz = \"UTC\" if not source_tz else source_tz -%}\n{%- set target_tz = var(\"dbt_date:time_zone\") if not target_tz else target_tz -%}\n{{ adapter.dispatch('convert_timezone', 'dbt_date') (column, target_tz, source_tz) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.bigquery__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.245858, "supported_languages": null}, "macro.dbt_date.default__convert_timezone": {"name": "default__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.default__convert_timezone", "macro_sql": "{% macro default__convert_timezone(column, target_tz, source_tz) -%}\nconvert_timezone('{{ source_tz }}', '{{ target_tz }}',\n cast({{ column }} as {{ dbt.type_timestamp() }})\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2468, "supported_languages": null}, "macro.dbt_date.bigquery__convert_timezone": {"name": "bigquery__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.bigquery__convert_timezone", "macro_sql": "{%- macro bigquery__convert_timezone(column, target_tz, source_tz=None) -%}\ntimestamp(datetime({{ column }}, '{{ target_tz}}'))\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2474701, "supported_languages": null}, "macro.dbt_date.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.spark__convert_timezone", "macro_sql": "{%- macro spark__convert_timezone(column, target_tz, source_tz) -%}\nfrom_utc_timestamp(\n to_utc_timestamp({{ column }}, '{{ source_tz }}'),\n '{{ target_tz }}'\n )\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2481122, "supported_languages": null}, "macro.dbt_date.postgres__convert_timezone": {"name": "postgres__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.postgres__convert_timezone", "macro_sql": "{% macro postgres__convert_timezone(column, target_tz, source_tz) -%}\ncast(\n cast({{ column }} as {{ dbt.type_timestamp() }})\n at time zone '{{ source_tz }}' at time zone '{{ target_tz }}' as {{ dbt.type_timestamp() }}\n)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.248883, "supported_languages": null}, "macro.dbt_date.redshift__convert_timezone": {"name": "redshift__convert_timezone", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/convert_timezone.sql", "original_file_path": "macros/calendar_date/convert_timezone.sql", "unique_id": "macro.dbt_date.redshift__convert_timezone", "macro_sql": "{%- macro redshift__convert_timezone(column, target_tz, source_tz) -%}\n{{ return(dbt_date.default__convert_timezone(column, target_tz, source_tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.default__convert_timezone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.249514, "supported_languages": null}, "macro.dbt_date.n_months_away": {"name": "n_months_away", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/n_months_away.sql", "original_file_path": "macros/calendar_date/n_months_away.sql", "unique_id": "macro.dbt_date.n_months_away", "macro_sql": "{%- macro n_months_away(n, tz=None) -%}\n{%- set n = n|int -%}\n{{ dbt.date_trunc('month',\n dbt.dateadd('month', n,\n dbt_date.today(tz)\n )\n ) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.dateadd", "macro.dbt_date.today"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2507389, "supported_languages": null}, "macro.dbt_date.iso_week_of_year": {"name": "iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.iso_week_of_year", "macro_sql": "{%- macro iso_week_of_year(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('iso_week_of_year', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.253015, "supported_languages": null}, "macro.dbt_date._iso_week_of_year": {"name": "_iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date._iso_week_of_year", "macro_sql": "{%- macro _iso_week_of_year(date, week_type) -%}\ncast({{ dbt_date.date_part(week_type, date) }} as {{ dbt.type_int() }})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.254058, "supported_languages": null}, "macro.dbt_date.default__iso_week_of_year": {"name": "default__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.default__iso_week_of_year", "macro_sql": "\n\n{%- macro default__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'isoweek') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.254703, "supported_languages": null}, "macro.dbt_date.snowflake__iso_week_of_year": {"name": "snowflake__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.snowflake__iso_week_of_year", "macro_sql": "\n\n{%- macro snowflake__iso_week_of_year(date) -%}\n{{ dbt_date._iso_week_of_year(date, 'weekiso') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2552671, "supported_languages": null}, "macro.dbt_date.postgres__iso_week_of_year": {"name": "postgres__iso_week_of_year", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/iso_week_of_year.sql", "original_file_path": "macros/calendar_date/iso_week_of_year.sql", "unique_id": "macro.dbt_date.postgres__iso_week_of_year", "macro_sql": "\n\n{%- macro postgres__iso_week_of_year(date) -%}\n-- postgresql week is isoweek, the first week of a year containing January 4 of that year.\n{{ dbt_date._iso_week_of_year(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date._iso_week_of_year"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.255771, "supported_languages": null}, "macro.dbt_date.week_end": {"name": "week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.week_end", "macro_sql": "{%- macro week_end(date=None, tz=None) -%}\n{%-set dt = date if date else dbt_date.today(tz) -%}\n{{ adapter.dispatch('week_end', 'dbt_date') (dt) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_date.today", "macro.dbt_date.default__week_end"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2571242, "supported_languages": null}, "macro.dbt_date.default__week_end": {"name": "default__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.default__week_end", "macro_sql": "{%- macro default__week_end(date) -%}\n{{ last_day(date, 'week') }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.257545, "supported_languages": null}, "macro.dbt_date.snowflake__week_end": {"name": "snowflake__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.snowflake__week_end", "macro_sql": "\n\n{%- macro snowflake__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.258168, "supported_languages": null}, "macro.dbt_date.postgres__week_end": {"name": "postgres__week_end", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/week_end.sql", "original_file_path": "macros/calendar_date/week_end.sql", "unique_id": "macro.dbt_date.postgres__week_end", "macro_sql": "\n\n{%- macro postgres__week_end(date) -%}\n{%- set dt = dbt_date.week_start(date) -%}\n{{ dbt_date.n_days_away(6, dt) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_date.week_start", "macro.dbt_date.n_days_away"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.258791, "supported_languages": null}, "macro.dbt_date.next_month_number": {"name": "next_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/next_month_number.sql", "original_file_path": "macros/calendar_date/next_month_number.sql", "unique_id": "macro.dbt_date.next_month_number", "macro_sql": "{%- macro next_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.next_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.next_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.259448, "supported_languages": null}, "macro.dbt_date.last_month_number": {"name": "last_month_number", "resource_type": "macro", "package_name": "dbt_date", "path": "macros/calendar_date/last_month_number.sql", "original_file_path": "macros/calendar_date/last_month_number.sql", "unique_id": "macro.dbt_date.last_month_number", "macro_sql": "{%- macro last_month_number(tz=None) -%}\n{{ dbt_date.date_part('month', dbt_date.last_month(tz)) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_date.date_part", "macro.dbt_date.last_month"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.260093, "supported_languages": null}, "macro.google_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.262697, "supported_languages": null}, "macro.google_ads_source.get_ad_group_stats_columns": {"name": "get_ad_group_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_stats_columns.sql", "original_file_path": "macros/get_ad_group_stats_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_stats_columns", "macro_sql": "{% macro get_ad_group_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__ad_group_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.266668, "supported_languages": null}, "macro.google_ads_source.spark__regexp_instr": {"name": "spark__regexp_instr", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/regexp_instr.sql", "original_file_path": "macros/regexp_instr.sql", "unique_id": "macro.google_ads_source.spark__regexp_instr", "macro_sql": "{% macro spark__regexp_instr(source_value, regexp, position=1, occurrence=1, is_raw=False, flags=\"\") %}\nregexp_instr({{ source_value }}, '{{ regexp }}')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2675111, "supported_languages": null}, "macro.google_ads_source.get_campaign_stats_columns": {"name": "get_campaign_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_campaign_stats_columns.sql", "original_file_path": "macros/get_campaign_stats_columns.sql", "unique_id": "macro.google_ads_source.get_campaign_stats_columns", "macro_sql": "{% macro get_campaign_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__campaign_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.271051, "supported_languages": null}, "macro.google_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.google_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertising_channel_subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertising_channel_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_date\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"serving_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_date\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"tracking_url_template\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.274953, "supported_languages": null}, "macro.google_ads_source.get_ad_stats_columns": {"name": "get_ad_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_stats_columns.sql", "original_file_path": "macros/get_ad_stats_columns.sql", "unique_id": "macro.google_ads_source.get_ad_stats_columns", "macro_sql": "{% macro get_ad_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_ad_group_criterion\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__ad_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.279171, "supported_languages": null}, "macro.google_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.google_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"auto_tagging_enabled\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"descriptive_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2819378, "supported_languages": null}, "macro.google_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"display_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"final_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.284705, "supported_languages": null}, "macro.google_ads_source.get_ad_group_criterion_history_columns": {"name": "get_ad_group_criterion_history_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_ad_group_criterion_history_columns.sql", "original_file_path": "macros/get_ad_group_criterion_history_columns.sql", "unique_id": "macro.google_ads_source.get_ad_group_criterion_history_columns", "macro_sql": "{% macro get_ad_group_criterion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"base_campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_text\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.287672, "supported_languages": null}, "macro.google_ads_source.get_keyword_stats_columns": {"name": "get_keyword_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_keyword_stats_columns.sql", "original_file_path": "macros/get_keyword_stats_columns.sql", "unique_id": "macro.google_ads_source.get_keyword_stats_columns", "macro_sql": "{% macro get_keyword_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_criterion_criterion_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__keyword_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.291453, "supported_languages": null}, "macro.google_ads_source.get_account_stats_columns": {"name": "get_account_stats_columns", "resource_type": "macro", "package_name": "google_ads_source", "path": "macros/get_account_stats_columns.sql", "original_file_path": "macros/get_account_stats_columns.sql", "unique_id": "macro.google_ads_source.get_account_stats_columns", "macro_sql": "{% macro get_account_stats_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_network_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"cost_micros\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"device\", \"datatype\": dbt.type_string()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('google_ads__account_stats_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2945962, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.296169, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.2982998, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.298773, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.299226, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.299741, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3001442, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3005922, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.302878, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.304675, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.307101, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.30781, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.308504, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3091688, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3098, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.310504, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.311214, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.311977, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.312263, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3125372, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.312819, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.313767, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3153799, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3172438, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.318259, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.31861, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.318958, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.319304, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.319659, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.324948, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.325407, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.325839, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.326268, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.330886, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3326411, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.333046, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.333842, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.334638, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.335039, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.335404, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.335745, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.336861, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.338359, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3394601, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3399968, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.340588, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.34126, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3442419, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.353611, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.354608, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.355631, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3591208, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.360723, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.362036, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3624582, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3628669, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.363324, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.363729, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3641331, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.365957, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.368761, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.370183, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.370615, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.371037, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3714828, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3719099, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.372364, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.372989, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3732648, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3735511, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.375124, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3781388, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\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=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\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 %}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.384456, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3881679, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.388924, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.389228, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3895109, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.390513, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.391514, "supported_languages": null}, "macro.ad_reporting.is_enabled": {"name": "is_enabled", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/is_enabled.sql", "original_file_path": "macros/is_enabled.sql", "unique_id": "macro.ad_reporting.is_enabled", "macro_sql": "{% macro is_enabled(enabled_packages) %}\n\n{% if enabled_packages != [] %}\n {% set is_enabled = True %}\n{% else %}\n {% set is_enabled = False %}\n{% endif %}\n{{ return(is_enabled) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro takes in a list of packages and determines if there is at least one package, if there is, it returns True, else false.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "enabled_packages", "type": "list", "description": "List of packages enabled where each package name is a string."}], "created_at": 1678988323.459991, "supported_languages": null}, "macro.ad_reporting.get_date_from_timestamp": {"name": "get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.get_date_from_timestamp", "macro_sql": "{% macro get_date_from_timestamp(column) %}\n {{ return(adapter.dispatch('get_date_from_timestamp') (column)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.ad_reporting.bigquery__get_date_from_timestamp"]}, "description": "This macro takes a column of type timestamp or forces the column into a timestamp (depending on the data warehouse) and extracts the date in the format of e.g. 2022-01-01.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "column", "type": "string", "description": "Specifies the column of type timestamp to extract the date from."}], "created_at": 1678988323.4498932, "supported_languages": null}, "macro.ad_reporting.default__get_date_from_timestamp": {"name": "default__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.default__get_date_from_timestamp", "macro_sql": "{% macro default__get_date_from_timestamp(column) %}\n date({{column}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3935518, "supported_languages": null}, "macro.ad_reporting.bigquery__get_date_from_timestamp": {"name": "bigquery__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.bigquery__get_date_from_timestamp", "macro_sql": "{% macro bigquery__get_date_from_timestamp(column) %}\n\n cast({{column}} as date)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3938382, "supported_languages": null}, "macro.ad_reporting.spark__get_date_from_timestamp": {"name": "spark__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.spark__get_date_from_timestamp", "macro_sql": "{% macro spark__get_date_from_timestamp(column) %}\n\n to_date(to_timestamp({{ column }}),'yyyyMMdd')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3941288, "supported_languages": null}, "macro.ad_reporting.snowflake__get_date_from_timestamp": {"name": "snowflake__get_date_from_timestamp", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_date_from_timestamp.sql", "original_file_path": "macros/get_date_from_timestamp.sql", "unique_id": "macro.ad_reporting.snowflake__get_date_from_timestamp", "macro_sql": "{% macro snowflake__get_date_from_timestamp(column) %}\n\n to_date(to_timestamp({{ column }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.3944168, "supported_languages": null}, "macro.ad_reporting.union_ctes": {"name": "union_ctes", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/union_ctes.sql", "original_file_path": "macros/union_ctes.sql", "unique_id": "macro.ad_reporting.union_ctes", "macro_sql": "{% macro union_ctes(ctes=[]) %}\n\n{% for cte in ctes %}\nselect * from {{ cte }}\n\n{% if not loop.last -%}\n union all\n{% endif -%}\n\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro allows for the unioning (union all) of specified CTEs.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "ctes", "type": "list", "description": "List of strings for CTE names"}], "created_at": 1678988323.4620118, "supported_languages": null}, "macro.ad_reporting.get_query": {"name": "get_query", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_query.sql", "original_file_path": "macros/get_query.sql", "unique_id": "macro.ad_reporting.get_query", "macro_sql": "{% macro get_query(platform=None, report_type=None, field_mapping=None, relation=None) %}\n\n{%- set consistent_fields = ['spend', 'impressions', 'clicks'] -%}\n{%- set account_fields = ['account_id', 'account_name'] -%}\n{%- set campaign_fields = ['campaign_id', 'campaign_name'] -%}\n{%- set ad_group_fields = ['ad_group_id', 'ad_group_name'] -%}\n{%- set ad_fields = ['ad_id', 'ad_name'] -%}\n{%- set url_fields = ['base_url', 'url_host', 'url_path', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_content', 'utm_term'] -%}\n{%- set keyword_fields = ['keyword_id','keyword_text','keyword_match_type'] -%}\n{%- set search_fields = ['keyword_id', 'keyword_text', 'search_match_type', 'search_query'] -%}\n\n{%- if field_mapping is not none -%}\n{%- set fields = field_mapping.keys() -%}\n{%- endif -%}\n\n{%- set final_fields_superset={} -%}\n\n{#- Add the consistent_fields and account_fields to all reports regardless of type -#}\n{%- if report_type -%}\n {%- for consistent_field in consistent_fields -%}\n {%- do final_fields_superset.update({consistent_field: consistent_field}) -%}\n {%- endfor -%}\n {%- for account_field in account_fields -%}\n {%- do final_fields_superset.update({account_field: account_field}) -%}\n {%- endfor -%}\n{%- endif -%}\n\n{#- For 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.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.type_int() }}) as {{ field }}\n\n {% elif field == 'spend' -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_float() }}) as {{ field }}\n\n {% elif '_id' in field or '_name' in field or 'url' in field or 'utm' in field or field in ['keyword_match_type', 'keyword_text', 'search_match_type', 'search_query'] -%}\n cast({{ final_fields_superset[field] }} as {{ dbt.type_string() }}) as {{ field }} \n {% endif -%}\n {%- if not loop.last -%},{%- endif -%}\n {%- endfor %}\nfrom {{ relation }}\n{% endmacro %}", "depends_on": {"macros": ["macro.ad_reporting.get_date_from_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "This macro compiles the final query with all aliasing and casting incorporated.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "platform", "type": "string", "description": "Specifies the platform for the CTE; this value should match exactly one value for the `all_packages` variable within `macros/get_enabled_packages.sql`.\n"}, {"name": "report_type", "type": "string", "description": "Specifies the report type and should map to the respective model; could take on one of the following values ['account', 'campaign', 'ad_group', 'ad', 'url', 'keyword', 'search'].\n"}, {"name": "field_mapping", "type": null, "description": "A dictionary that specifies any column name overriding as necessary since standard names in Ad Reporting may map to a different name as it appears natively within each platform. Each key will have exactly one corresponding string value; if a value is NULL then it will map to the string 'null'.\n"}, {"name": "relation", "type": null, "description": "This is a reference to the upstream model that the query will be selecting from; an example argument would look like this: relation=ref('tiktok_ads__advertiser_report').\n"}], "created_at": 1678988323.457858, "supported_languages": null}, "macro.ad_reporting.get_enabled_packages": {"name": "get_enabled_packages", "resource_type": "macro", "package_name": "ad_reporting", "path": "macros/get_enabled_packages.sql", "original_file_path": "macros/get_enabled_packages.sql", "unique_id": "macro.ad_reporting.get_enabled_packages", "macro_sql": "{% macro get_enabled_packages(exclude=[], include=[]) %}\n\n{%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided `get_enabled_packages` macro. Only one is allowed\") }}\n{%- endif -%}\n\n{% set all_packages = [\n 'amazon_ads',\n 'apple_search_ads', \n 'facebook_ads', \n 'google_ads', \n 'linkedin_ads',\n 'microsoft_ads', \n 'pinterest_ads',\n 'snapchat_ads',\n 'tiktok_ads',\n 'twitter_ads',\n 'reddit_ads'] %}\n\n{% set enabled_packages = [] %}\n\n{% if include != [] %}\n {% for package in include %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n\n{% elif exclude != [] %}\n {% for package in all_packages %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) and package not in exclude %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n\n{% else %}\n {% for package in all_packages %}\n {% if var('ad_reporting__' ~ package ~ '_enabled', True) %}\n {{ enabled_packages.append(package) }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{{ return(enabled_packages) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "This macro evaluates all `ad_reporting___enabled` variables in the user's `dbt_project.yml` and returns a list of packages that are enabled.", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "ad_reporting://macros/macros_docs.yml", "arguments": [{"name": "exclude", "type": "list", "description": "This argument is optional and is the list of platforms to exclude in the enabled package evaluation."}, {"name": "include", "type": "list", "description": "This argument is optional and is the list of platforms to include in the enabled package evaluation."}], "created_at": 1678988323.453857, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.4257762, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_level_report_columns": {"name": "get_ad_level_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_level_report_columns.sql", "original_file_path": "macros/get_ad_level_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_level_report_columns", "macro_sql": "{% macro get_ad_level_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.4297512, "supported_languages": null}, "macro.apple_search_ads_source.get_search_term_report_columns": {"name": "get_search_term_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_search_term_report_columns.sql", "original_file_path": "macros/get_search_term_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_search_term_report_columns", "macro_sql": "{% macro get_search_term_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_amount_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"bid_amount_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_display_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"search_term_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"search_term_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__search_term_passthrough_metrics')) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.436878, "supported_languages": null}, "macro.apple_search_ads_source.get_keyword_report_columns": {"name": "get_keyword_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_keyword_report_columns", "macro_sql": "{% macro get_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__keyword_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.440133, "supported_languages": null}, "macro.apple_search_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__campaign_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.4435358, "supported_languages": null}, "macro.apple_search_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.446809, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creation_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"org_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.450272, "supported_languages": null}, "macro.apple_search_ads_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.apple_search_ads_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"local_spend_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"local_spend_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"new_downloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"redownloads\", \"datatype\": dbt.type_int()},\n {\"name\": \"taps\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('apple_search_ads__ad_group_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.45475, "supported_languages": null}, "macro.apple_search_ads_source.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.apple_search_ads_source.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"payment_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_zone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.457246, "supported_languages": null}, "macro.apple_search_ads_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "apple_search_ads_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.apple_search_ads_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_amount\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"bid_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"modification_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"text\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.460757, "supported_languages": null}, "macro.pinterest_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.pinterest_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.4637141, "supported_languages": null}, "macro.pinterest_source.get_pin_promotion_history_columns": {"name": "get_pin_promotion_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_pin_promotion_history_columns.sql", "original_file_path": "macros/get_pin_promotion_history_columns.sql", "unique_id": "macro.pinterest_source.get_pin_promotion_history_columns", "macro_sql": "{% macro get_pin_promotion_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"android_deep_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"destination_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ios_deep_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_pin_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"is_removable\", \"datatype\": \"boolean\"},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"pin_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"review_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"view_tracking_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.469252, "supported_languages": null}, "macro.pinterest_source.get_keyword_report_columns": {"name": "get_keyword_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_keyword_report_columns.sql", "original_file_path": "macros/get_keyword_report_columns.sql", "unique_id": "macro.pinterest_source.get_keyword_report_columns", "macro_sql": "{% macro get_keyword_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"keyword_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__keyword_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.474265, "supported_languages": null}, "macro.pinterest_source.get_pin_promotion_report_columns": {"name": "get_pin_promotion_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_pin_promotion_report_columns.sql", "original_file_path": "macros/get_pin_promotion_report_columns.sql", "unique_id": "macro.pinterest_source.get_pin_promotion_report_columns", "macro_sql": "{% macro get_pin_promotion_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"pin_promotion_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__pin_promotion_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_numeric", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.4784482, "supported_languages": null}, "macro.pinterest_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.pinterest_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__campaign_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.482522, "supported_languages": null}, "macro.pinterest_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.pinterest_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.484849, "supported_languages": null}, "macro.pinterest_source.get_advertiser_history_columns": {"name": "get_advertiser_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_advertiser_history_columns.sql", "original_file_path": "macros/get_advertiser_history_columns.sql", "unique_id": "macro.pinterest_source.get_advertiser_history_columns", "macro_sql": "{% macro get_advertiser_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"billing_profile_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"merchant_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"owner_user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.489234, "supported_languages": null}, "macro.pinterest_source.get_ad_group_report_columns": {"name": "get_ad_group_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_ad_group_report_columns.sql", "original_file_path": "macros/get_ad_group_report_columns.sql", "unique_id": "macro.pinterest_source.get_ad_group_report_columns", "macro_sql": "{% macro get_ad_group_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_group_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__ad_group_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.493442, "supported_languages": null}, "macro.pinterest_source.get_keyword_history_columns": {"name": "get_keyword_history_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_keyword_history_columns.sql", "original_file_path": "macros/get_keyword_history_columns.sql", "unique_id": "macro.pinterest_source.get_keyword_history_columns", "macro_sql": "{% macro get_keyword_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"archived\", \"datatype\": \"boolean\"},\n {\"name\": \"bid\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.497448, "supported_languages": null}, "macro.pinterest_source.get_advertiser_report_columns": {"name": "get_advertiser_report_columns", "resource_type": "macro", "package_name": "pinterest_source", "path": "macros/get_advertiser_report_columns.sql", "original_file_path": "macros/get_advertiser_report_columns.sql", "unique_id": "macro.pinterest_source.get_advertiser_report_columns", "macro_sql": "{% macro get_advertiser_report_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clickthrough_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"clickthrough_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impression_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"impression_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend_in_micro_dollar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('pinterest__advertiser_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.501604, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_group_history_columns": {"name": "get_ad_group_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_group_history_columns.sql", "original_file_path": "macros/get_ad_group_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_group_history_columns", "macro_sql": "{% macro get_ad_group_history_columns() %}\n\n{% set columns = [\n {\"name\": \"action_days\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"adgroup_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"audience_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"budget\", \"datatype\": dbt.type_float()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"category\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"display_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"frequency_schedule\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"interest_category_v_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"action_categories\", \"datatype\": dbt.type_string()},\n {\"name\": \"age\", \"datatype\": dbt.type_string()},\n {\"name\": \"languages\", \"datatype\": dbt.type_string()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.507841, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_group_report_hourly_columns": {"name": "get_ad_group_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_group_report_hourly_columns.sql", "original_file_path": "macros/get_ad_group_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_group_report_hourly_columns", "macro_sql": "{% macro get_ad_group_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_group_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.5165231, "supported_languages": null}, "macro.tiktok_ads_source.get_advertiser_columns": {"name": "get_advertiser_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_advertiser_columns.sql", "original_file_path": "macros/get_advertiser_columns.sql", "unique_id": "macro.tiktok_ads_source.get_advertiser_columns", "macro_sql": "{% macro get_advertiser_columns() %}\n\n{% set columns = [\n {\"name\": \"address\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"company\", \"datatype\": dbt.type_string()},\n {\"name\": \"contacter\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"industry\", \"datatype\": dbt.type_string()},\n {\"name\": \"language\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"telephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.5217862, "supported_languages": null}, "macro.tiktok_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"campaign_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"split_test_variable\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.524348, "supported_languages": null}, "macro.tiktok_ads_source.get_campaign_report_hourly_columns": {"name": "get_campaign_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_campaign_report_hourly_columns.sql", "original_file_path": "macros/get_campaign_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_campaign_report_hourly_columns", "macro_sql": "{% macro get_campaign_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__campaign_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.533291, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"ad_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"adgroup_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"advertiser_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"call_to_action\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"click_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"impression_tracking_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"landing_page_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.5370328, "supported_languages": null}, "macro.tiktok_ads_source.get_ad_report_hourly_columns": {"name": "get_ad_report_hourly_columns", "resource_type": "macro", "package_name": "tiktok_ads_source", "path": "macros/get_ad_report_hourly_columns.sql", "original_file_path": "macros/get_ad_report_hourly_columns.sql", "unique_id": "macro.tiktok_ads_source.get_ad_report_hourly_columns", "macro_sql": "{% macro get_ad_report_hourly_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"average_video_play\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_video_play_per_user\", \"datatype\": dbt.type_float()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"comments\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"conversion_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_per_conversion\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpc\", \"datatype\": dbt.type_float()},\n {\"name\": \"cpm\", \"datatype\": dbt.type_float()},\n {\"name\": \"ctr\", \"datatype\": dbt.type_float()},\n {\"name\": \"follows\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"likes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"profile_visits\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"reach\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"stat_time_hour\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"video_play_actions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_25\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_50\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views_p_75\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_2_s\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_watched_6_s\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('tiktok_ads__ad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_numeric", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.545168, "supported_languages": null}, "macro.facebook_ads_source.get_ad_set_history_columns": {"name": "get_ad_set_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_ad_set_history_columns.sql", "original_file_path": "macros/get_ad_set_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_ad_set_history_columns", "macro_sql": "{% macro get_ad_set_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"bid_strategy\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt.type_int()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.548906, "supported_languages": null}, "macro.facebook_ads_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"page_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_page_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_tags\", \"datatype\": dbt.type_string()},\n {\"name\": \"asset_feed_spec_link_urls\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_child_attachments\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_caption\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"object_story_link_data_message\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_android\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_ios\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_ipad\", \"datatype\": dbt.type_string()},\n {\"name\": \"template_app_link_spec_iphone\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.5545979, "supported_languages": null}, "macro.facebook_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"stop_time\", \"datatype\": dbt.type_timestamp()}, \n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"lifetime_budget\", \"datatype\": dbt.type_int()},\n {\"name\": \"budget_remaining\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.558481, "supported_languages": null}, "macro.facebook_ads_source.get_basic_ad_columns": {"name": "get_basic_ad_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_basic_ad_columns.sql", "original_file_path": "macros/get_basic_ad_columns.sql", "unique_id": "macro.facebook_ads_source.get_basic_ad_columns", "macro_sql": "{% macro get_basic_ad_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ad_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"adset_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": \"date\"},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"inline_link_clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_float()},\n {\"name\": \"reach\", \"datatype\": dbt.type_int()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('facebook_ads__basic_ad_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.562382, "supported_languages": null}, "macro.facebook_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_account_history_columns.sql", "original_file_path": "macros/get_account_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_country_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.5652878, "supported_languages": null}, "macro.facebook_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "facebook_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.facebook_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"updated_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"account_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"ad_set_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.5678651, "supported_languages": null}, "macro.snapchat_ads_source.get_campaign_hourly_report_columns": {"name": "get_campaign_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_campaign_hourly_report_columns.sql", "original_file_path": "macros/get_campaign_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_campaign_hourly_report_columns", "macro_sql": "{% macro get_campaign_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__campaign_hourly_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.5743191, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_squad_history_columns": {"name": "get_ad_squad_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_squad_history_columns.sql", "original_file_path": "macros/get_ad_squad_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_squad_history_columns", "macro_sql": "{% macro get_ad_squad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.576777, "supported_languages": null}, "macro.snapchat_ads_source.get_creative_history_columns": {"name": "get_creative_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_creative_history_columns.sql", "original_file_path": "macros/get_creative_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_creative_history_columns", "macro_sql": "{% macro get_creative_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"web_view_url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.579304, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_hourly_report_columns": {"name": "get_ad_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_hourly_report_columns", "macro_sql": "{% macro get_ad_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"saves\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"shares\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"spend\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_numeric()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_numeric()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__ad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_numeric", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.58557, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns": {"name": "get_ad_squad_hourly_report_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_squad_hourly_report_columns.sql", "original_file_path": "macros/get_ad_squad_hourly_report_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_squad_hourly_report_columns", "macro_sql": "{% macro get_ad_squad_hourly_report_columns() %}\n\n{% set columns = [\n {\"name\": \"ad_squad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"attachment_quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_total_view_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"attachment_view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_1\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_2\", \"datatype\": dbt.type_int()},\n {\"name\": \"quartile_3\", \"datatype\": dbt.type_int()},\n {\"name\": \"saves\", \"datatype\": dbt.type_int()},\n {\"name\": \"screen_time_millis\", \"datatype\": dbt.type_int()},\n {\"name\": \"shares\", \"datatype\": dbt.type_int()},\n {\"name\": \"spend\", \"datatype\": dbt.type_int()},\n {\"name\": \"swipes\", \"datatype\": dbt.type_int()},\n {\"name\": \"video_views\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_completion\", \"datatype\": dbt.type_int()},\n {\"name\": \"view_time_millis\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('snapchat_ads__ad_squad_hourly_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.591507, "supported_languages": null}, "macro.snapchat_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_campaign_history_columns.sql", "original_file_path": "macros/get_campaign_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.593583, "supported_languages": null}, "macro.snapchat_ads_source.get_creative_url_tag_history_columns": {"name": "get_creative_url_tag_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_creative_url_tag_history_columns.sql", "original_file_path": "macros/get_creative_url_tag_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_creative_url_tag_history_columns", "macro_sql": "{% macro get_creative_url_tag_history_columns() %}\n\n{% set columns = [\n {\"name\": \"creative_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"key\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"value\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.595235, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_history_columns": {"name": "get_ad_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_history_columns.sql", "original_file_path": "macros/get_ad_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_history_columns", "macro_sql": "{% macro get_ad_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ad_squad_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.597555, "supported_languages": null}, "macro.snapchat_ads_source.get_ad_account_history_columns": {"name": "get_ad_account_history_columns", "resource_type": "macro", "package_name": "snapchat_ads_source", "path": "macros/get_ad_account_history_columns.sql", "original_file_path": "macros/get_ad_account_history_columns.sql", "unique_id": "macro.snapchat_ads_source.get_ad_account_history_columns", "macro_sql": "{% macro get_ad_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"advertiser\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6009011, "supported_languages": null}, "macro.twitter_ads_source.get_tweet_columns": {"name": "get_tweet_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_tweet_columns.sql", "original_file_path": "macros/get_tweet_columns.sql", "unique_id": "macro.twitter_ads_source.get_tweet_columns", "macro_sql": "{% macro get_tweet_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_text\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"lang\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.602916, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_keywords_report_columns": {"name": "get_line_item_keywords_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_line_item_keywords_report_columns.sql", "original_file_path": "macros/get_line_item_keywords_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_keywords_report_columns", "macro_sql": "{% macro get_line_item_keywords_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"segment\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__line_item_keywords_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.60658, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_report_columns": {"name": "get_line_item_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_line_item_report_columns.sql", "original_file_path": "macros/get_line_item_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_report_columns", "macro_sql": "{% macro get_line_item_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()},\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__line_item_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6097012, "supported_languages": null}, "macro.twitter_ads_source.get_campaign_report_columns": {"name": "get_campaign_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/get_campaign_report_columns.sql", "original_file_path": "macros/get_campaign_report_columns.sql", "unique_id": "macro.twitter_ads_source.get_campaign_report_columns", "macro_sql": "{% macro get_campaign_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__campaign_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.612961, "supported_languages": null}, "macro.twitter_ads_source.get_account_history_columns": {"name": "get_account_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_account_history_columns", "macro_sql": "{% macro get_account_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"industry_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"salt\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone\", \"datatype\": dbt.type_string()},\n {\"name\": \"timezone_switch_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.620621, "supported_languages": null}, "macro.twitter_ads_source.get_campaign_history_columns": {"name": "get_campaign_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_campaign_history_columns", "macro_sql": "{% macro get_campaign_history_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"daily_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"duration_in_days\", \"datatype\": dbt.type_int()},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency_cap\", \"datatype\": dbt.type_int()},\n {\"name\": \"funding_instrument_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"servable\", \"datatype\": \"boolean\"},\n {\"name\": \"standard_delivery\", \"datatype\": \"boolean\"},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6248178, "supported_languages": null}, "macro.twitter_ads_source.get_line_item_history_columns": {"name": "get_line_item_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_line_item_history_columns", "macro_sql": "{% macro get_line_item_history_columns() %}\n\n{% set columns = [\n {\"name\": \"advertiser_domain\", \"datatype\": dbt.type_string()},\n {\"name\": \"advertiser_user_id\", \"datatype\": dbt.type_int()},\n {\"name\": \"automatically_select_bid\", \"datatype\": \"boolean\"},\n {\"name\": \"bid_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"bid_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"bid_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"campaign_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"charge_by\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creative_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"end_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"objective\", \"datatype\": dbt.type_string()},\n {\"name\": \"optimization\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_web_event_tag\", \"datatype\": dbt.type_string()},\n {\"name\": \"product_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"start_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"target_cpa_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"total_budget_amount_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6308281, "supported_languages": null}, "macro.twitter_ads_source.get_promoted_tweet_history_columns": {"name": "get_promoted_tweet_history_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_promoted_tweet_history_columns", "macro_sql": "{% macro get_promoted_tweet_history_columns() %}\n\n{% set columns = [\n {\"name\": \"approval_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"entity_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"line_item_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.633724, "supported_languages": null}, "macro.twitter_ads_source.get_tweet_url_columns": {"name": "get_tweet_url_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_tweet_url_columns", "macro_sql": "{% macro get_tweet_url_columns() %}\n\n{% set columns = [\n {\"name\": \"display_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"expanded_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"indices\", \"datatype\": dbt.type_string()},\n {\"name\": \"tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.63571, "supported_languages": null}, "macro.twitter_ads_source.get_promoted_tweet_report_columns": {"name": "get_promoted_tweet_report_columns", "resource_type": "macro", "package_name": "twitter_ads_source", "path": "macros/staging_columns.sql", "original_file_path": "macros/staging_columns.sql", "unique_id": "macro.twitter_ads_source.get_promoted_tweet_report_columns", "macro_sql": "{% macro get_promoted_tweet_report_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"billed_charge_local_micro\", \"datatype\": dbt.type_int()},\n {\"name\": \"clicks\", \"datatype\": dbt.type_int()},\n {\"name\": \"date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"impressions\", \"datatype\": dbt.type_int()},\n {\"name\": \"placement\", \"datatype\": dbt.type_string()},\n {\"name\": \"promoted_tweet_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"url_clicks\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('twitter_ads__promoted_tweet_report_passthrough_metrics')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6384058, "supported_languages": null}, "macro.dbt_expectations.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.type_timestamp", "macro_sql": "\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_expectations')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_expectations.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.639498, "supported_languages": null}, "macro.dbt_expectations.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() -%}\n timestamp\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.639741, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_timestamp": {"name": "snowflake__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() -%}\n timestamp_ntz\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.639966, "supported_languages": null}, "macro.dbt_expectations.postgres__type_timestamp": {"name": "postgres__type_timestamp", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() -%}\n timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.64019, "supported_languages": null}, "macro.dbt_expectations.type_datetime": {"name": "type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.type_datetime", "macro_sql": "{% macro type_datetime() -%}\n {{ return(adapter.dispatch('type_datetime', 'dbt_expectations')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__type_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.640665, "supported_languages": null}, "macro.dbt_expectations.default__type_datetime": {"name": "default__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.default__type_datetime", "macro_sql": "{% macro default__type_datetime() -%}\n datetime\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.640896, "supported_languages": null}, "macro.dbt_expectations.snowflake__type_datetime": {"name": "snowflake__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.snowflake__type_datetime", "macro_sql": "{% macro snowflake__type_datetime() -%}\n timestamp_ntz\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.64114, "supported_languages": null}, "macro.dbt_expectations.postgres__type_datetime": {"name": "postgres__type_datetime", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/datatypes.sql", "original_file_path": "macros/utils/datatypes.sql", "unique_id": "macro.dbt_expectations.postgres__type_datetime", "macro_sql": "{% macro postgres__type_datetime() -%}\n timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.641367, "supported_languages": null}, "macro.dbt_expectations.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "unique_id": "macro.dbt_expectations.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_expectations')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.642211, "supported_languages": null}, "macro.dbt_expectations.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/utils/groupby.sql", "original_file_path": "macros/utils/groupby.sql", "unique_id": "macro.dbt_expectations.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }}\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.643061, "supported_languages": null}, "macro.dbt_expectations.regexp_instr": {"name": "regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.regexp_instr", "macro_sql": "{% macro regexp_instr(source_value, regexp, position=1, occurrence=1, is_raw=False, flags=\"\") %}\n\n {{ adapter.dispatch('regexp_instr', 'dbt_expectations')(\n source_value, regexp, position, occurrence, is_raw, flags\n ) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.bigquery__regexp_instr"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.645683, "supported_languages": null}, "macro.dbt_expectations.default__regexp_instr": {"name": "default__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.default__regexp_instr", "macro_sql": "{% macro default__regexp_instr(source_value, regexp, position, occurrence, is_raw, flags) %}\n{# unclear if other databases support raw strings or flags #}\n{% if is_raw or flags %}\n {{ exceptions.warn(\n \"is_raw and flags options are not supported for this adapter \"\n ~ \"and are being ignored.\"\n ) }}\n{% endif %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6468601, "supported_languages": null}, "macro.dbt_expectations.snowflake__regexp_instr": {"name": "snowflake__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.snowflake__regexp_instr", "macro_sql": "{% macro snowflake__regexp_instr(source_value, regexp, position, occurrence, is_raw, flags) %}\n{%- set regexp = \"$$\" ~ regexp ~ \"$$\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\n{% if flags %}{{ dbt_expectations._validate_flags(flags, 'cimes') }}{% endif %}\nregexp_instr({{ source_value }}, {{ regexp }}, {{ position }}, {{ occurrence }}, 0, '{{ flags }}')\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations._validate_flags"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.648243, "supported_languages": null}, "macro.dbt_expectations.bigquery__regexp_instr": {"name": "bigquery__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.bigquery__regexp_instr", "macro_sql": "{% macro bigquery__regexp_instr(source_value, regexp, position, occurrence, is_raw, flags) %}\n{% if flags %}\n {{ exceptions.warn(\n \"The flags option is not supported for BigQuery and is being ignored.\"\n ) }}\n{% endif %}\n{%- set regexp = \"r'\" ~ regexp ~ \"'\" if is_raw else \"'\" ~ regexp ~ \"'\" -%}\nregexp_instr({{ source_value }}, {{ regexp }}, {{ position }}, {{ occurrence }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.649559, "supported_languages": null}, "macro.dbt_expectations.postgres__regexp_instr": {"name": "postgres__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.postgres__regexp_instr", "macro_sql": "{% macro postgres__regexp_instr(source_value, regexp, position, occurrence, is_raw, flags) %}\n{% if flags %}{{ dbt_expectations._validate_flags(flags, 'bcegimnpqstwx') }}{% endif %}\narray_length((select regexp_matches({{ source_value }}, '{{ regexp }}', '{{ flags }}')), 1)\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations._validate_flags"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6504672, "supported_languages": null}, "macro.dbt_expectations.redshift__regexp_instr": {"name": "redshift__regexp_instr", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations.redshift__regexp_instr", "macro_sql": "{% macro redshift__regexp_instr(source_value, regexp, position, occurrence, is_raw, flags) %}\n{% if flags %}{{ dbt_expectations._validate_flags(flags, 'ciep') }}{% endif %}\nregexp_instr({{ source_value }}, '{{ regexp }}', {{ position }}, {{ occurrence }}, 0, '{{ flags }}')\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations._validate_flags"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.651466, "supported_languages": null}, "macro.dbt_expectations._validate_flags": {"name": "_validate_flags", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/regex/regexp_instr.sql", "original_file_path": "macros/regex/regexp_instr.sql", "unique_id": "macro.dbt_expectations._validate_flags", "macro_sql": "{% macro _validate_flags(flags, alphabet) %}\n{% for flag in flags %}\n {% if flag not in alphabet %}\n {{ exceptions.raise_compiler_error(\n \"flag \" ~ flag ~ \" not in list of allowed flags for this adapter: \" ~ alphabet | join(\", \")\n ) }}\n {% endif %}\n{% endfor %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.65249, "supported_languages": null}, "macro.dbt_expectations.log_natural": {"name": "log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.log_natural", "macro_sql": "{% macro log_natural(x) -%}\n {{ adapter.dispatch('log_natural', 'dbt_expectations') (x) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.bigquery__log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6533241, "supported_languages": null}, "macro.dbt_expectations.default__log_natural": {"name": "default__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.default__log_natural", "macro_sql": "{% macro default__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.653643, "supported_languages": null}, "macro.dbt_expectations.bigquery__log_natural": {"name": "bigquery__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.bigquery__log_natural", "macro_sql": "{% macro bigquery__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.653964, "supported_languages": null}, "macro.dbt_expectations.snowflake__log_natural": {"name": "snowflake__log_natural", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/log_natural.sql", "original_file_path": "macros/math/log_natural.sql", "unique_id": "macro.dbt_expectations.snowflake__log_natural", "macro_sql": "{% macro snowflake__log_natural(x) -%}\n\n ln({{ x }})\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.65433, "supported_languages": null}, "macro.dbt_expectations.rand": {"name": "rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.rand", "macro_sql": "{% macro rand() -%}\n {{ adapter.dispatch('rand', 'dbt_expectations') () }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.bigquery__rand"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.655262, "supported_languages": null}, "macro.dbt_expectations.default__rand": {"name": "default__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.default__rand", "macro_sql": "{% macro default__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.655529, "supported_languages": null}, "macro.dbt_expectations.bigquery__rand": {"name": "bigquery__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.bigquery__rand", "macro_sql": "{% macro bigquery__rand() -%}\n\n rand()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6557598, "supported_languages": null}, "macro.dbt_expectations.snowflake__rand": {"name": "snowflake__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.snowflake__rand", "macro_sql": "{% macro snowflake__rand(seed) -%}\n\n uniform(0::float, 1::float, random())\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.656255, "supported_languages": null}, "macro.dbt_expectations.postgres__rand": {"name": "postgres__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.postgres__rand", "macro_sql": "{% macro postgres__rand() -%}\n\n random()\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.656476, "supported_languages": null}, "macro.dbt_expectations.redshift__rand": {"name": "redshift__rand", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/rand.sql", "original_file_path": "macros/math/rand.sql", "unique_id": "macro.dbt_expectations.redshift__rand", "macro_sql": "{% macro redshift__rand() -%}\n\n random()\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.65669, "supported_languages": null}, "macro.dbt_expectations.median": {"name": "median", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/median.sql", "original_file_path": "macros/math/median.sql", "unique_id": "macro.dbt_expectations.median", "macro_sql": "{% macro median(field) %}\n{{ dbt_expectations.percentile_cont(field, 0.5) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.percentile_cont"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.657237, "supported_languages": null}, "macro.dbt_expectations.percentile_cont": {"name": "percentile_cont", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.percentile_cont", "macro_sql": "{% macro percentile_cont(field, quantile, partition=None) %}\n {{ adapter.dispatch('quantile', 'dbt_expectations') (field, quantile, partition) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.bigquery__quantile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.658277, "supported_languages": null}, "macro.dbt_expectations.default__quantile": {"name": "default__quantile", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.65885, "supported_languages": null}, "macro.dbt_expectations.bigquery__quantile": {"name": "bigquery__quantile", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/math/percentile_cont.sql", "original_file_path": "macros/math/percentile_cont.sql", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.659412, "supported_languages": null}, "macro.dbt_expectations.ignore_row_if_expression": {"name": "ignore_row_if_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "unique_id": "macro.dbt_expectations.ignore_row_if_expression", "macro_sql": "{% macro ignore_row_if_expression(ignore_row_if, columns) %}\n {{ adapter.dispatch('ignore_row_if_expression', 'dbt_expectations') (ignore_row_if, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.660481, "supported_languages": null}, "macro.dbt_expectations.default__ignore_row_if_expression": {"name": "default__ignore_row_if_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_ignore_row_if_expression.sql", "unique_id": "macro.dbt_expectations.default__ignore_row_if_expression", "macro_sql": "{% macro default__ignore_row_if_expression(ignore_row_if, columns) %}\n {%- set ignore_row_if_values = [\"all_values_are_missing\", \"any_value_is_missing\"] -%}\n {% if ignore_row_if not in ignore_row_if_values %}\n {{ exceptions.raise_compiler_error(\n \"`ignore_row_if` must be one of \" ~ (ignore_row_if_values | join(\", \")) ~ \". Got: '\" ~ ignore_row_if ~\"'.'\"\n ) }}\n {% endif %}\n\n {%- set op = \"and\" if ignore_row_if == \"all_values_are_missing\" else \"or\" -%}\n not (\n {% for column in columns -%}\n {{ column }} is null{% if not loop.last %} {{ op }} {% endif %}\n {% endfor %}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.662094, "supported_languages": null}, "macro.dbt_expectations.test_expression_between": {"name": "test_expression_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.664696, "supported_languages": null}, "macro.dbt_expectations.expression_between": {"name": "expression_between", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_between.sql", "original_file_path": "macros/schema_tests/_generalized/expression_between.sql", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.667184, "supported_languages": null}, "macro.dbt_expectations.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6694028, "supported_languages": null}, "macro.dbt_expectations.expression_is_true": {"name": "expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.default__expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.670273, "supported_languages": null}, "macro.dbt_expectations.default__expression_is_true": {"name": "default__expression_is_true", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/expression_is_true.sql", "original_file_path": "macros/schema_tests/_generalized/expression_is_true.sql", "unique_id": "macro.dbt_expectations.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations.truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.672104, "supported_languages": null}, "macro.dbt_expectations.get_select": {"name": "get_select", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.default__get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6826859, "supported_languages": null}, "macro.dbt_expectations.default__get_select": {"name": "default__get_select", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.684324, "supported_languages": null}, "macro.dbt_expectations.test_equal_expression": {"name": "test_equal_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6856918, "supported_languages": null}, "macro.dbt_expectations.default__test_equal_expression": {"name": "default__test_equal_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/equal_expression.sql", "original_file_path": "macros/schema_tests/_generalized/equal_expression.sql", "unique_id": "macro.dbt_expectations.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations.get_select"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.6897511, "supported_languages": null}, "macro.dbt_expectations.truth_expression": {"name": "truth_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "unique_id": "macro.dbt_expectations.truth_expression", "macro_sql": "{% macro truth_expression(expression) %}\n {{ adapter.dispatch('truth_expression', 'dbt_expectations') (expression) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.default__truth_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.69053, "supported_languages": null}, "macro.dbt_expectations.default__truth_expression": {"name": "default__truth_expression", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/_generalized/_truth_expression.sql", "original_file_path": "macros/schema_tests/_generalized/_truth_expression.sql", "unique_id": "macro.dbt_expectations.default__truth_expression", "macro_sql": "{% macro default__truth_expression(expression) %}\n {{ expression }} as expression\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.690846, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern": {"name": "test_expect_column_values_to_match_like_pattern", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.6922328, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_like_pattern_list": {"name": "test_expect_column_values_to_match_like_pattern_list", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.6946712, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex": {"name": "test_expect_column_values_to_match_regex", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 is_raw=False,\n flags=\"\"\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw, flags=flags) }} > 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 %}", "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": 1678988311.6965911, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_equal": {"name": "test_expect_column_value_lengths_to_equal", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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 %}", "depends_on": {"macros": ["macro.dbt.length", "macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.697902, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_value_lengths_to_be_between": {"name": "test_expect_column_value_lengths_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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 %}", "depends_on": {"macros": ["macro.dbt.length", "macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.699855, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex": {"name": "test_expect_column_values_to_not_match_regex", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 is_raw=False,\n flags=\"\"\n ) %}\n\n{% set expression %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw, flags=flags) }} = 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 %}", "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": 1678988311.701527, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_regex_list": {"name": "test_expect_column_values_to_not_match_regex_list", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 is_raw=False,\n flags=\"\"\n ) %}\n\n{% set expression %}\n{% for regex in regex_list %}\n{{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw, flags=flags) }} = 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 %}", "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": 1678988311.704124, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_match_regex_list": {"name": "test_expect_column_values_to_match_regex_list", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 is_raw=False,\n flags=\"\"\n ) %}\n\n{% set expression %}\n {% for regex in regex_list %}\n {{ dbt_expectations.regexp_instr(column_name, regex, is_raw=is_raw, flags=flags) }} > 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 %}", "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": 1678988311.7069309, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern_list": {"name": "test_expect_column_values_to_not_match_like_pattern_list", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.709774, "supported_languages": null}, "macro.dbt_expectations._get_like_pattern_expression": {"name": "_get_like_pattern_expression", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations._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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7106051, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_match_like_pattern": {"name": "test_expect_column_values_to_not_match_like_pattern", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.7120261, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_recent_data": {"name": "test_expect_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.714808, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_row_values_to_have_recent_data": {"name": "default__test_expect_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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_expectations.type_timestamp() }})) as max_timestamp\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ column_name }} as {{ dbt_expectations.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_expectations.type_timestamp() }}))\n <\n cast({{ dbt.dateadd(datepart, interval * -1, dbt_date.now()) }} as {{ dbt_expectations.type_timestamp() }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.716736, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_contain_set": {"name": "test_expect_table_columns_to_contain_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7200372, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table": {"name": "test_expect_table_row_count_to_equal_other_table", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table", "macro_sql": "{%- test expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=None,\n compare_group_by=None,\n factor=1,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table',\n 'dbt_expectations') (model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7227242, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table": {"name": "default__test_expect_table_row_count_to_equal_other_table", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by,\n compare_group_by,\n factor,\n row_condition,\n compare_row_condition\n ) -%}\n{{ dbt_expectations.test_equal_expression(model, \"count(*)\",\n compare_model=compare_model,\n compare_expression=\"count(*) * \" + factor|string,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.723788, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_not_contain_set": {"name": "test_expect_table_columns_to_not_contain_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.726879, "supported_languages": null}, "macro.dbt_expectations.test_expect_grouped_row_values_to_have_recent_data": {"name": "test_expect_grouped_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.7318962, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_grouped_row_values_to_have_recent_data": {"name": "default__test_expect_grouped_row_values_to_have_recent_data", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n max(cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }})) as latest_timestamp_column\n from\n {{ model }}\n where\n -- to exclude erroneous future dates\n cast({{ timestamp_column }} as {{ dbt_expectations.type_timestamp() }}) <= {{ dbt_date.now() }}\n {% if row_condition %}\n and {{ row_condition }}\n {% endif %}\n\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n),\ntotal_row_counts as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n max(1) as join_key,\n count(*) as row_count\n from\n latest_grouped_timestamps\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\n {%- endif %}\n\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.dateadd(datepart, interval * -1, dbt_date.now()) }}\n as {{ dbt_expectations.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\n {% for g in group_by %}\n r.{{ g }} = t.{{ g }} and\n {% endfor %}\n 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 %}", "depends_on": {"macros": ["macro.dbt_expectations.type_timestamp", "macro.dbt_date.now", "macro.dbt_expectations.group_by", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.735573, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_to_exist": {"name": "test_expect_column_to_exist", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.73881, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal": {"name": "test_expect_table_row_count_to_equal", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.740392, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal": {"name": "default__test_expect_table_row_count_to_equal", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.74123, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_be_between": {"name": "test_expect_table_row_count_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 {{ adapter.dispatch('test_expect_table_row_count_to_be_between',\n 'dbt_expectations') (model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_be_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.743335, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between": {"name": "default__test_expect_table_row_count_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_be_between", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_be_between(model,\n min_value,\n max_value,\n group_by,\n row_condition,\n strictly\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{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.744368, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_row_count_to_equal_other_table_times_factor": {"name": "test_expect_table_row_count_to_equal_other_table_times_factor", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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,\n compare_model,\n factor,\n group_by=None,\n compare_group_by=None,\n row_condition=None,\n compare_row_condition=None\n ) -%}\n {{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table_times_factor',\n 'dbt_expectations') (model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7470112, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor": {"name": "default__test_expect_table_row_count_to_equal_other_table_times_factor", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.default__test_expect_table_row_count_to_equal_other_table_times_factor", "macro_sql": "\n\n{%- macro default__test_expect_table_row_count_to_equal_other_table_times_factor(model,\n compare_model,\n factor,\n group_by,\n compare_group_by,\n row_condition,\n compare_row_condition\n ) -%}\n\n{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model,\n compare_model,\n group_by=group_by,\n compare_group_by=compare_group_by,\n factor=factor,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition\n) }}\n{%- endmacro -%}", "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": 1678988311.7479308, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_set": {"name": "test_expect_table_columns_to_match_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7509792, "supported_languages": null}, "macro.dbt_expectations._get_column_list": {"name": "_get_column_list", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/_get_column_list.sql", "original_file_path": "macros/schema_tests/table_shape/_get_column_list.sql", "unique_id": "macro.dbt_expectations._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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.752118, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_columns_to_match_ordered_list": {"name": "test_expect_table_columns_to_match_ordered_list", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations._get_column_list", "macro.dbt_expectations._list_intersect", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.755929, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table": {"name": "test_expect_table_aggregation_to_equal_other_table", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "original_file_path": "macros/schema_tests/table_shape/expect_table_aggregation_to_equal_other_table.sql", "unique_id": "macro.dbt_expectations.test_expect_table_aggregation_to_equal_other_table", "macro_sql": "{%- test expect_table_aggregation_to_equal_other_table(model,\n expression,\n compare_model,\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\n{{ dbt_expectations.test_equal_expression(\n model,\n expression=expression,\n compare_model=compare_model,\n compare_expression=compare_expression,\n group_by=group_by,\n compare_group_by=compare_group_by,\n row_condition=row_condition,\n compare_row_condition=compare_row_condition,\n tolerance=tolerance,\n tolerance_percent=tolerance_percent\n) }}\n\n{%- endtest -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.757619, "supported_languages": null}, "macro.dbt_expectations._list_intersect": {"name": "_list_intersect", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/table_shape/_list_intersect.sql", "original_file_path": "macros/schema_tests/table_shape/_list_intersect.sql", "unique_id": "macro.dbt_expectations._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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.758733, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal_other_table": {"name": "test_expect_table_column_count_to_equal_other_table", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7599201, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_equal": {"name": "test_expect_table_column_count_to_equal", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.760861, "supported_languages": null}, "macro.dbt_expectations.test_expect_table_column_count_to_be_between": {"name": "test_expect_table_column_count_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.763274, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_in_set": {"name": "test_expect_column_values_to_not_be_in_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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 %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.76578, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_set": {"name": "test_expect_column_values_to_be_in_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.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 %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.767875, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_increasing": {"name": "test_expect_column_values_to_be_increasing", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.771071, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_null": {"name": "test_expect_column_values_to_be_null", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.772203, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_unique": {"name": "test_expect_column_values_to_be_unique", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.772887, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_between": {"name": "test_expect_column_values_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.77471, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_decreasing": {"name": "test_expect_column_values_to_be_decreasing", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.777898, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_in_type_list": {"name": "test_expect_column_values_to_be_in_type_list", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.type_string() }}) as relation_column,\n cast('{{ column.dtype | upper }}' as {{ dbt.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 -%}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7807128, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_of_type": {"name": "test_expect_column_values_to_be_of_type", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 -%}", "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": 1678988311.7813709, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_have_consistent_casing": {"name": "test_expect_column_values_to_have_consistent_casing", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.78239, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_not_be_null": {"name": "test_expect_column_values_to_not_be_null", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7835588, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_min_to_be_between": {"name": "test_expect_column_min_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.7854872, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_unique_value_count_to_be_between": {"name": "test_expect_column_unique_value_count_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.787313, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_quantile_values_to_be_between": {"name": "test_expect_column_quantile_values_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.789278, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_median_to_be_between": {"name": "test_expect_column_median_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.791095, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_proportion_of_unique_values_to_be_between": {"name": "test_expect_column_proportion_of_unique_values_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 }})*1.0/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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.793077, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_equal_set": {"name": "test_expect_column_distinct_values_to_equal_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.795199, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set": {"name": "test_expect_column_most_common_value_to_be_in_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.test_expect_column_most_common_value_to_be_in_set", "macro_sql": "{% test expect_column_most_common_value_to_be_in_set(model,\n column_name,\n value_set,\n top_n,\n quote_values=True,\n data_type=\"decimal\",\n row_condition=None\n ) -%}\n\n {{ adapter.dispatch('test_expect_column_most_common_value_to_be_in_set', 'dbt_expectations') (\n model, column_name, value_set, top_n, quote_values, data_type, row_condition\n ) }}\n\n{%- endtest %}", "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": 1678988311.7991538, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_most_common_value_to_be_in_set": {"name": "default__test_expect_column_most_common_value_to_be_in_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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,\n 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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.8016908, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_contain_set": {"name": "test_expect_column_distinct_values_to_contain_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.803924, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal": {"name": "test_expect_column_distinct_count_to_equal", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_equal", "macro_sql": "{% test expect_column_distinct_count_to_equal(model,\n column_name,\n value,\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 -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.805501, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than": {"name": "test_expect_column_distinct_count_to_be_less_than", "resource_type": "macro", "package_name": "dbt_expectations", "path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "original_file_path": "macros/schema_tests/aggregate_functions/expect_column_distinct_count_to_be_less_than.sql", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_count_to_be_less_than", "macro_sql": "{% test expect_column_distinct_count_to_be_less_than(model,\n column_name,\n value,\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 -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.807075, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_sum_to_be_between": {"name": "test_expect_column_sum_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.80917, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_stdev_to_be_between": {"name": "test_expect_column_stdev_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.812562, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_stdev_to_be_between": {"name": "default__test_expect_column_stdev_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.813868, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_mean_to_be_between": {"name": "test_expect_column_mean_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.815903, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_max_to_be_between": {"name": "test_expect_column_max_to_be_between", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.817981, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_be_greater_than": {"name": "test_expect_column_distinct_count_to_be_greater_than", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 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 -%}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.8196921, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set": {"name": "test_expect_column_distinct_values_to_be_in_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.test_expect_column_distinct_values_to_be_in_set", "macro_sql": "{% test expect_column_distinct_values_to_be_in_set(model,\n 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 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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.822361, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_distinct_count_to_equal_other_table": {"name": "test_expect_column_distinct_count_to_equal_other_table", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 -%}", "depends_on": {"macros": ["macro.dbt_expectations.test_equal_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.8243468, "supported_languages": null}, "macro.dbt_expectations.test_expect_row_values_to_have_data_for_every_n_datepart": {"name": "test_expect_row_values_to_have_data_for_every_n_datepart", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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.datediff(\"'\" ~ start_date ~ \"'\", 'date_' ~ date_part, date_part) }} as {{ dbt.type_int() }}),\n cast({{interval}} as {{ dbt.type_int() }})\n ) = 0\n {% endif %}\n\n),\nmodel_data as (\n\n select\n {% if not interval %}\n\n cast({{ dbt.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.dateadd(\n date_part,\n \"mod(\n cast(\" ~ dbt.datediff(\"'\" ~ start_date ~ \"'\", date_col, date_part) ~ \" as \" ~ dbt.type_int() ~ \" ),\n cast(\" ~ interval ~ \" as \" ~ dbt.type_int() ~ \" )\n ) * (-1)\",\n \"cast( \" ~ dbt.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 -%}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt_date.get_base_dates", "macro.dbt.datediff", "macro.dbt.type_int", "macro.dbt.date_trunc", "macro.dbt_expectations.type_datetime", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.833845, "supported_languages": null}, "macro.dbt_expectations._get_metric_expression": {"name": "_get_metric_expression", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations._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", "depends_on": {"macros": ["macro.dbt_expectations.log_natural"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.841792, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_moving_stdevs": {"name": "test_expect_column_values_to_be_within_n_moving_stdevs", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 group_by=None,\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 group_by,\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 %}", "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": 1678988311.843341, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_moving_stdevs": {"name": "default__test_expect_column_values_to_be_within_n_moving_stdevs", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 group_by,\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{%- set partition_by = \"partition by \" ~ (group_by | join(\",\")) if group_by -%}\n{%- set group_by_length = (group_by | length ) if group_by else 0 -%}\n\nwith metric_values as (\n\n with grouped_metric_values as (\n\n select\n {{ dbt.date_trunc(period, date_column_name) }} as metric_period,\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as agg_metric_value\n from\n {{ model }}\n {{ dbt_expectations.group_by(1 + group_by_length) }}\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(\n {{ partition_by }}\n 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({{ partition_by }}\n 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({{ partition_by }}\n 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)/\n 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.dateadd(period, -test_periods, dbt.date_trunc(period, dbt_date.now())) }}\n as {{ dbt_expectations.type_timestamp() }})\n and\n metric_period < {{ dbt.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 -%}", "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt_expectations.group_by", "macro.dbt_expectations._get_metric_expression", "macro.dbt.dateadd", "macro.dbt_date.now", "macro.dbt_expectations.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.847316, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_values_to_be_within_n_stdevs": {"name": "test_expect_column_values_to_be_within_n_stdevs", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 {{\n adapter.dispatch('test_expect_column_values_to_be_within_n_stdevs', 'dbt_expectations') (\n model, column_name, group_by, sigma_threshold\n )\n }}\n{%- endtest %}", "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": 1678988311.8491452, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_column_values_to_be_within_n_stdevs": {"name": "default__test_expect_column_values_to_be_within_n_stdevs", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 ) %}\n\nwith metric_values as (\n\n select\n {{ group_by | join(\",\") ~ \",\" if group_by }}\n sum({{ column_name }}) as {{ column_name }}\n from\n {{ model }}\n {% if group_by -%}\n {{ dbt_expectations.group_by(group_by | length) }}\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)/\n nullif({{ column_name }}_stddev, 0) 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 %}", "depends_on": {"macros": ["macro.dbt_expectations.group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.8506129, "supported_languages": null}, "macro.dbt_expectations.test_expect_select_column_values_to_be_unique_within_record": {"name": "test_expect_select_column_values_to_be_unique_within_record", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "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": 1678988311.853544, "supported_languages": null}, "macro.dbt_expectations.default__test_expect_select_column_values_to_be_unique_within_record": {"name": "default__test_expect_select_column_values_to_be_unique_within_record", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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\n{%- set row_condition_ext -%}\n\n {%- if row_condition %}\n {{ row_condition }} and\n {% endif -%}\n\n {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\n{%- endset -%}\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\n 1=1\n {%- if row_condition_ext %}\n and {{ row_condition_ext }}\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 %}", "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.85645, "supported_languages": null}, "macro.dbt_expectations.test_expect_compound_columns_to_be_unique": {"name": "test_expect_compound_columns_to_be_unique", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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\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 {{ dbt_expectations.ignore_row_if_expression(ignore_row_if, columns) }}\n\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 %}", "depends_on": {"macros": ["macro.dbt_expectations.ignore_row_if_expression"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.861241, "supported_languages": null}, "macro.dbt_expectations.test_expect_multicolumn_sum_to_equal": {"name": "test_expect_multicolumn_sum_to_equal", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.863273, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_equal": {"name": "test_expect_column_pair_values_to_be_equal", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.864782, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_A_to_be_greater_than_B": {"name": "test_expect_column_pair_values_A_to_be_greater_than_B", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.866702, "supported_languages": null}, "macro.dbt_expectations.test_expect_column_pair_values_to_be_in_set": {"name": "test_expect_column_pair_values_to_be_in_set", "resource_type": "macro", "package_name": "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", "unique_id": "macro.dbt_expectations.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 %}", "depends_on": {"macros": ["macro.dbt_expectations.expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1678988311.870091, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.microsoft_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_id", "block_contents": "The ID of the account."}, "doc.microsoft_ads_source.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_name", "block_contents": "The name of the account."}, "doc.microsoft_ads_source.account_timezone": {"name": "account_timezone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.account_timezone", "block_contents": "The time zone associated with this account."}, "doc.microsoft_ads_source.ad_distribution": {"name": "ad_distribution", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_distribution", "block_contents": "The distribution medium associated with this record."}, "doc.microsoft_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_id", "block_contents": "The ID of the corresponding ad."}, "doc.microsoft_ads_source.ad_group_status": {"name": "ad_group_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_status", "block_contents": "The status of this ad group; see the following [documentation](https://help.ads.microsoft.com/apex/index/3/en/53094) for more information on values and definitions."}, "doc.microsoft_ads_source.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_name", "block_contents": "The name of the corresponding ad; `title_part_1` is used as the ad name as a proxy as one is not provided by the data source."}, "doc.microsoft_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_id", "block_contents": "The ID of the corresponding ad group."}, "doc.microsoft_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_group_name", "block_contents": "The name of the corresponding ad group."}, "doc.microsoft_ads_source.ad_status": {"name": "ad_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_status", "block_contents": "The status of this ad; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.ad_type": {"name": "ad_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.ad_type", "block_contents": "The ad type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/adtype?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.bid_match_type": {"name": "bid_match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.bid_match_type", "block_contents": "The bid match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "doc.microsoft_ads_source.budget_association_status": {"name": "budget_association_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.budget_association_status", "block_contents": "The status of the campaign's budget."}, "doc.microsoft_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_id", "block_contents": "The ID of the campaign."}, "doc.microsoft_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_name", "block_contents": "The name of the campaign."}, "doc.microsoft_ads_source.campaign_status": {"name": "campaign_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_status", "block_contents": "The status of this campaign; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaignstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.campaign_timezone": {"name": "campaign_timezone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_timezone", "block_contents": "The time zone associated with this campaign."}, "doc.microsoft_ads_source.campaign_type": {"name": "campaign_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.campaign_type", "block_contents": "The campaign type associated with this record; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/campaigntype?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.clicks", "block_contents": "The number of clicks that occurred by the grain of the report."}, "doc.microsoft_ads_source.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.currency_code", "block_contents": "The currency code associated with spend and, if applicable, other metrics associated with currency."}, "doc.microsoft_ads_source.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.date_day", "block_contents": "The date of the performance report."}, "doc.microsoft_ads_source.delivered_match_type": {"name": "delivered_match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.delivered_match_type", "block_contents": "The delivered match type associated with this record; values include 'Broad', 'Exact', 'Phrase'."}, "doc.microsoft_ads_source.device_os": {"name": "device_os", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.device_os", "block_contents": "The device operating system associated with this record; values include but may not be limited to 'Windows', 'iOS', 'Android', 'Other', 'BlackBerry' and 'Unknown'."}, "doc.microsoft_ads_source.device_type": {"name": "device_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.device_type", "block_contents": "The device type associated with this record; values include but may not be limited to 'Computer', 'Smartphone', 'Tablet' and 'Unknown'."}, "doc.microsoft_ads_source.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.end_date", "block_contents": "The date in which this ad group will no longer run."}, "doc.microsoft_ads_source.final_url": {"name": "final_url", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.final_url", "block_contents": "The full URL that the ad links to."}, "doc.microsoft_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.impressions", "block_contents": "The number of impressions that occurred by the grain of the report."}, "doc.microsoft_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "doc.microsoft_ads_source.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_id", "block_contents": "The ID of the keyword."}, "doc.microsoft_ads_source.keyword_name": {"name": "keyword_name", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_name", "block_contents": "The keyword(s) associated with this record."}, "doc.microsoft_ads_source.keyword_status": {"name": "keyword_status", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.keyword_status", "block_contents": "The status of this keyword; see the following [documentation](https://docs.microsoft.com/en-us/advertising/campaign-management-service/keywordstatus?view=bingads-13) for more information on values and definitions."}, "doc.microsoft_ads_source.language": {"name": "language", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.language", "block_contents": "The language that the associated ad was viewed in."}, "doc.microsoft_ads_source.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.match_type", "block_contents": "The match type associated with this record; values contain but may not be limited to 'Broad', 'Exact', 'Phrase'. Please refer to Microsoft Ad's [documentation](https://help.ads.microsoft.com/#apex/ads/en/50822/1)."}, "doc.microsoft_ads_source.modified_at": {"name": "modified_at", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.modified_at", "block_contents": "The time each version of the object was last modified, i.e. when that version of the object was 'created'."}, "doc.microsoft_ads_source.network": {"name": "network", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.network", "block_contents": "The network associated with this record."}, "doc.microsoft_ads_source.search_query": {"name": "search_query", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.search_query", "block_contents": "The search query string associated with this record."}, "doc.microsoft_ads_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.spend", "block_contents": "The amount of spend that occurred by the grain of the report."}, "doc.microsoft_ads_source.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.start_date", "block_contents": "The date in which an ad group starts running."}, "doc.microsoft_ads_source.time_zone": {"name": "time_zone", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.time_zone", "block_contents": "The time zone associated with this record."}, "doc.microsoft_ads_source.top_vs_other": {"name": "top_vs_other", "resource_type": "doc", "package_name": "microsoft_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.microsoft_ads_source.top_vs_other", "block_contents": "The position of the ad associated with this record. For more information, refer to Microsoft [documentation](https://help.ads.microsoft.com/apex/index/22/en/14009)."}, "doc.reddit_ads._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads._fivetran_synced", "block_contents": "Timestamp of when Fivetran synced a record."}, "doc.reddit_ads.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.account_id", "block_contents": "The ID of the account."}, "doc.reddit_ads.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_id", "block_contents": "The ID of the ad."}, "doc.reddit_ads.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_group_id", "block_contents": "The ID of the ad group."}, "doc.reddit_ads.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.campaign_id", "block_contents": "The ID of the campaign."}, "doc.reddit_ads.post_id": {"name": "post_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.post_id", "block_contents": "The ID of the post."}, "doc.reddit_ads.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_name", "block_contents": "Name of ad."}, "doc.reddit_ads.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.ad_group_name", "block_contents": "Name of ad group."}, "doc.reddit_ads.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.campaign_name", "block_contents": "Name of campaign."}, "doc.reddit_ads.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.created_at", "block_contents": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp."}, "doc.reddit_ads.currency": {"name": "currency", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.currency", "block_contents": "The currency this account uses (ISO-4217)"}, "doc.reddit_ads.status": {"name": "status", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.status", "block_contents": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\""}, "doc.reddit_ads.time_zone_id": {"name": "time_zone_id", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.time_zone_id", "block_contents": "The time zone id preference for this account"}, "doc.reddit_ads.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.clicks", "block_contents": "The number of clicks detected for this report period"}, "doc.reddit_ads.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.date_day", "block_contents": "YYYY-MM-DD formatted date"}, "doc.reddit_ads.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.impressions", "block_contents": "The number of impressions served for this report period"}, "doc.reddit_ads.spend": {"name": "spend", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.spend", "block_contents": "The amount (in microcurrency) spent for this report period in Ad Account's currency"}, "doc.reddit_ads.click_url": {"name": "click_url", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.click_url", "block_contents": "The destination url, or the website address, that a visitor goes to when they click on the ad"}, "doc.reddit_ads.post_url": {"name": "post_url", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.post_url", "block_contents": "The URL belonging to the post."}, "doc.reddit_ads.attribution_type": {"name": "attribution_type", "resource_type": "doc", "package_name": "reddit_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads.attribution_type", "block_contents": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both."}, "doc.reddit_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source._fivetran_synced", "block_contents": "Timestamp of when Fivetran synced a record."}, "doc.reddit_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.account_id", "block_contents": "The ID of the account."}, "doc.reddit_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_id", "block_contents": "The ID of the ad."}, "doc.reddit_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_group_id", "block_contents": "The ID of the ad group."}, "doc.reddit_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.campaign_id", "block_contents": "The ID of the campaign."}, "doc.reddit_ads_source.post_id": {"name": "post_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.post_id", "block_contents": "The ID of the post."}, "doc.reddit_ads_source.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_name", "block_contents": "Name of ad."}, "doc.reddit_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ad_group_name", "block_contents": "Name of ad group."}, "doc.reddit_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.campaign_name", "block_contents": "Name of campaign."}, "doc.reddit_ads_source.attribution_type": {"name": "attribution_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.attribution_type", "block_contents": "Attribution type: \"CLICK_THROUGH_CONVERSION\", \"VIEW_THROUGH_CONVERSION\", or \"ALL_CONVERSION\".\nCLICK_THROUGH_CONVERSION: A user clicked on your ad and then completed the conversion action on your site. \nVIEW_THROUGH_CONVERSION: A user saw your ad and did not click it, but did complete the conversion action on your site.\nALL_CONVERSION: Combination of both."}, "doc.reddit_ads_source.click_attribution_window": {"name": "click_attribution_window", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_attribution_window", "block_contents": "Determines how long after clicking on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\""}, "doc.reddit_ads_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.created_at", "block_contents": "Time that the respective record (ad, ad group, campaign, post, etc) was created. ISO-8601 timestamp."}, "doc.reddit_ads_source.currency": {"name": "currency", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.currency", "block_contents": "The currency this account uses (ISO-4217)"}, "doc.reddit_ads_source.status": {"name": "status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.status", "block_contents": "The current state of the advertiser. \"PENDING_BILLING\", \"VALID\", \"TRUSTED\", \"ADMIN\", \"FAILED_BILLING\", \"SUSPICIOUS\", \"SUSPENDED\", or \"BANNED\""}, "doc.reddit_ads_source.time_zone_id": {"name": "time_zone_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.time_zone_id", "block_contents": "The time zone id preference for this account"}, "doc.reddit_ads_source.view_attribution_window": {"name": "view_attribution_window", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.view_attribution_window", "block_contents": "Determines how long after viewing on your ad you count that user\u2019s actions as a conversion. \"DAY\", \"WEEK\", or \"MONTH\""}, "doc.reddit_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.clicks", "block_contents": "The number of clicks detected for this report period"}, "doc.reddit_ads_source.comment_downvotes": {"name": "comment_downvotes", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comment_downvotes", "block_contents": "The number comment downvotes for this report period"}, "doc.reddit_ads_source.comment_upvotes": {"name": "comment_upvotes", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comment_upvotes", "block_contents": "The number comment upvotes for this report period"}, "doc.reddit_ads_source.comments_page_views": {"name": "comments_page_views", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.comments_page_views", "block_contents": "The number of times the comments page was viewed for this report period"}, "doc.reddit_ads_source.conversion_roas": {"name": "conversion_roas", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.conversion_roas", "block_contents": "Return on ad spend for purchases for this period"}, "doc.reddit_ads_source.cpc": {"name": "cpc", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.cpc", "block_contents": "The cost-per-click for this period"}, "doc.reddit_ads_source.ctr": {"name": "ctr", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ctr", "block_contents": "The click-through-rate for this period"}, "doc.reddit_ads_source.date": {"name": "date", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.date", "block_contents": "YYYY-MM-DD formatted date"}, "doc.reddit_ads_source.ecpm": {"name": "ecpm", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.ecpm", "block_contents": "The effective CPM for this period"}, "doc.reddit_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.impressions", "block_contents": "The number of impressions served for this report period"}, "doc.reddit_ads_source.region": {"name": "region", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.region", "block_contents": "The region (US state or UK country) targeted for the reports"}, "doc.reddit_ads_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.spend", "block_contents": "The amount (in microcurrency) spent for this report period in Ad Account's currency, as defined [here](https://ads-api.reddit.com/docs/#tag/Reporting/paths/~1api~1v2.0~1accounts~1{account_id}~1reports/get)"}, "doc.reddit_ads_source.video_started": {"name": "video_started", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_started", "block_contents": "The number of times the ad was served and the video began playing"}, "doc.reddit_ads_source.video_watched_25_percent": {"name": "video_watched_25_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_25_percent", "block_contents": "The number of times the ad was served and at least 25% of the video has played"}, "doc.reddit_ads_source.video_watched_3_seconds": {"name": "video_watched_3_seconds", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_3_seconds", "block_contents": "The number of times the ad was served and at least 3 seconds of the video has played"}, "doc.reddit_ads_source.video_watched_50_percent": {"name": "video_watched_50_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_50_percent", "block_contents": "The number of times the ad was served and at least 50% of the video has played"}, "doc.reddit_ads_source.video_watched_5_seconds": {"name": "video_watched_5_seconds", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_5_seconds", "block_contents": "The number of times the ad was served and at least 5 seconds of the video has played"}, "doc.reddit_ads_source.video_watched_75_percent": {"name": "video_watched_75_percent", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.video_watched_75_percent", "block_contents": "The number of times the ad was served and at least 75% of the video has played"}, "doc.reddit_ads_source.viewer_comments": {"name": "viewer_comments", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.viewer_comments", "block_contents": "The number of times a user saw the post, and also commented on it. We count per view + comment combination (similar to a conversion)"}, "doc.reddit_ads_source.click_url": {"name": "click_url", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.click_url", "block_contents": "The destination url, or the website address, that a visitor goes to when they click on the ad"}, "doc.reddit_ads_source.configured_status": {"name": "configured_status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.configured_status", "block_contents": "The status configured by the account owner. \"ACTIVE\", \"PAUSED\", \"ARCHIVED\", \"DELETED\""}, "doc.reddit_ads_source.effective_status": {"name": "effective_status", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.effective_status", "block_contents": "The calculated status determining the real status of this entity."}, "doc.reddit_ads_source.is_processing": {"name": "is_processing", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.is_processing", "block_contents": "Whether or not effective status is processing"}, "doc.reddit_ads_source.post_url": {"name": "post_url", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.post_url", "block_contents": "The URL belonging to the post."}, "doc.reddit_ads_source.rejection_reason": {"name": "rejection_reason", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.rejection_reason", "block_contents": "Reason why entity was rejected."}, "doc.reddit_ads_source.bid_strategy": {"name": "bid_strategy", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.bid_strategy", "block_contents": "The bid strategy for this entity. \"MAXIMIZE_VOLUME\", \"MANUAL_BIDDING\", or \"BIDLESS\""}, "doc.reddit_ads_source.bid_value": {"name": "bid_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.bid_value", "block_contents": "The amount to pay in microcurrency per bidding event."}, "doc.reddit_ads_source.end_time": {"name": "end_time", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.end_time", "block_contents": "When the entity will stop delivering."}, "doc.reddit_ads_source.expand_targeting": {"name": "expand_targeting", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.expand_targeting", "block_contents": "Boolean that when selected, allows Reddit to expand your targeting to maximize your results."}, "doc.reddit_ads_source.goal_type": {"name": "goal_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.goal_type", "block_contents": "The type of goal for the entity. \"IMPRESSIONS\", \"PERCENTAGE\", \"CLICKS\", \"CONVERSIONS\", \"LIFETIME_SPEND\", \"DAILY_SPEND\", or \"VIDEO_VIEWABLE_IMPRESSIONS\""}, "doc.reddit_ads_source.goal_value": {"name": "goal_value", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.goal_value", "block_contents": "The value used to determine the goal has been met. This is measured in microcurrency for monetary goals types."}, "doc.reddit_ads_source.optimization_strategy_type": {"name": "optimization_strategy_type", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.optimization_strategy_type", "block_contents": "The strategy to use when optimizing the delivery of an ad. \"DOWNSTREAM_CONVERSIONS\" or \"APP_INSTALLS\""}, "doc.reddit_ads_source.start_time": {"name": "start_time", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.start_time", "block_contents": "When the entity will begin to deliver."}, "doc.reddit_ads_source.funding_instrument_id": {"name": "funding_instrument_id", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.funding_instrument_id", "block_contents": "Campaign level funding instrument id"}, "doc.reddit_ads_source.objective": {"name": "objective", "resource_type": "doc", "package_name": "reddit_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.reddit_ads_source.objective", "block_contents": "The objective type of a campaign."}, "doc.amazon_ads_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}, "doc.amazon_ads_source._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.amazon_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.amazon_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.account_id", "block_contents": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces."}, "doc.amazon_ads_source.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.account_name", "block_contents": "Account Name. Not currently populated for sellers."}, "doc.amazon_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.amazon_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.amazon_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_id", "block_contents": "The ID of the Ad."}, "doc.amazon_ads_source.ad_keyword_status": {"name": "ad_keyword_status", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.ad_keyword_status", "block_contents": "Current status of a keyword."}, "doc.amazon_ads_source.advertised_asin": {"name": "advertised_asin", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.advertised_asin", "block_contents": "The ASIN associated to an advertised product."}, "doc.amazon_ads_source.advertised_sku": {"name": "advertised_sku", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.advertised_sku", "block_contents": "The SKU being advertised."}, "doc.amazon_ads_source.bid_keyword": {"name": "bid_keyword", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.bid_keyword", "block_contents": "Bid associated with this keyword."}, "doc.amazon_ads_source.campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_applicable_budget_rule_id", "block_contents": "The ID associated to the active budget rule for a campaign."}, "doc.amazon_ads_source.campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_applicable_budget_rule_name", "block_contents": "The name associated to the active budget rule for a campaign."}, "doc.amazon_ads_source.campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_bidding_strategy", "block_contents": "The bidding strategy associated with a campaign."}, "doc.amazon_ads_source.campaign_budget_amount": {"name": "campaign_budget_amount", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_amount", "block_contents": "Total budget allocated to the campaign."}, "doc.amazon_ads_source.campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_currency_code", "block_contents": "The currency code associated with the campaign."}, "doc.amazon_ads_source.campaign_budget_type": {"name": "campaign_budget_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_budget_type", "block_contents": "One of: daily or lifetime."}, "doc.amazon_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.amazon_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_name", "block_contents": "The name of the Campaign."}, "doc.amazon_ads_source.campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.campaign_rule_based_budget_amount", "block_contents": "The value of the rule-based budget for a campaign."}, "doc.amazon_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.clicks", "block_contents": "Total number of ad clicks."}, "doc.amazon_ads_source.cost": {"name": "cost", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.cost", "block_contents": "Total cost of ad clicks."}, "doc.amazon_ads_source.country_code": {"name": "country_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.country_code", "block_contents": "The code for a given country."}, "doc.amazon_ads_source.creation_date": {"name": "creation_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.creation_date", "block_contents": "The date of creation of the record."}, "doc.amazon_ads_source.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.currency_code", "block_contents": "The currency used for all monetary values for entities under this profile."}, "doc.amazon_ads_source.default_bid": {"name": "default_bid", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.default_bid", "block_contents": "The date of creation of the record."}, "doc.amazon_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.impressions", "block_contents": "Total number of ad impressions."}, "doc.amazon_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.is_most_recent_record", "block_contents": "Boolean indicating whether record was the most recent instance."}, "doc.amazon_ads_source.keyword_bid": {"name": "keyword_bid", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_bid", "block_contents": "Bid associated with a keyword or targeting expression."}, "doc.amazon_ads_source.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_id", "block_contents": "The ID of the keyword."}, "doc.amazon_ads_source.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_match_type", "block_contents": "One of (broad, exact, or phrase.)"}, "doc.amazon_ads_source.keyword_type": {"name": "keyword_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.keyword_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads_source.last_updated_date": {"name": "last_updated_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.last_updated_date", "block_contents": "Date of last update to record."}, "doc.amazon_ads_source.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.match_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads_source.negative_keyword_id": {"name": "negative_keyword_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.negative_keyword_id", "block_contents": "The ID of the negative keyword."}, "doc.amazon_ads_source.portfolio_id": {"name": "portfolio_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.portfolio_id", "block_contents": "The ID of the Portfolio."}, "doc.amazon_ads_source.portfolio_name": {"name": "portfolio_name", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.portfolio_name", "block_contents": "The name of the Portfolio."}, "doc.amazon_ads_source.profile_id": {"name": "profile_id", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.profile_id", "block_contents": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace."}, "doc.amazon_ads_source.report_date": {"name": "report_date", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.report_date", "block_contents": "The date of the report."}, "doc.amazon_ads_source.search_term": {"name": "search_term", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.search_term", "block_contents": "The search term used by the customer."}, "doc.amazon_ads_source.serving_status": {"name": "serving_status", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.serving_status", "block_contents": "The current serving status of the record."}, "doc.amazon_ads_source.state": {"name": "state", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.state", "block_contents": "The state of the record (enabled, paused, or archived)."}, "doc.amazon_ads_source.targeting": {"name": "targeting", "resource_type": "doc", "package_name": "amazon_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads_source.targeting", "block_contents": "A string representation of the expression object used in the targeting clause."}, "doc.amazon_ads._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_deleted", "block_contents": "Boolean created by Fivetran to indicate whether the record has been deleted."}, "doc.amazon_ads._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.amazon_ads._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.amazon_ads.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.account_id", "block_contents": "Identifier for sellers and vendors. Note that this value is not unique and may be the same across marketplaces."}, "doc.amazon_ads.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.account_name", "block_contents": "Account Name. Not currently populated for sellers."}, "doc.amazon_ads.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.amazon_ads.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.amazon_ads.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_id", "block_contents": "The ID of the Ad."}, "doc.amazon_ads.ad_keyword_status": {"name": "ad_keyword_status", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.ad_keyword_status", "block_contents": "Current status of a keyword."}, "doc.amazon_ads.advertised_asin": {"name": "advertised_asin", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.advertised_asin", "block_contents": "The ASIN associated to an advertised product."}, "doc.amazon_ads.advertised_sku": {"name": "advertised_sku", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.advertised_sku", "block_contents": "The SKU being advertised."}, "doc.amazon_ads.bid_keyword": {"name": "bid_keyword", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.bid_keyword", "block_contents": "Bid associated with this keyword."}, "doc.amazon_ads.campaign_applicable_budget_rule_id": {"name": "campaign_applicable_budget_rule_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_applicable_budget_rule_id", "block_contents": "The ID associated to the active budget rule for a campaign."}, "doc.amazon_ads.campaign_applicable_budget_rule_name": {"name": "campaign_applicable_budget_rule_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_applicable_budget_rule_name", "block_contents": "The name associated to the active budget rule for a campaign."}, "doc.amazon_ads.campaign_bidding_strategy": {"name": "campaign_bidding_strategy", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_bidding_strategy", "block_contents": "The bidding strategy associated with a campaign."}, "doc.amazon_ads.campaign_budget_amount": {"name": "campaign_budget_amount", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_amount", "block_contents": "Total budget allocated to the campaign."}, "doc.amazon_ads.campaign_budget_currency_code": {"name": "campaign_budget_currency_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_currency_code", "block_contents": "The currency code associated with the campaign."}, "doc.amazon_ads.campaign_budget_type": {"name": "campaign_budget_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_budget_type", "block_contents": "One of: daily or lifetime."}, "doc.amazon_ads.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.amazon_ads.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_name", "block_contents": "The name of the Campaign."}, "doc.amazon_ads.campaign_rule_based_budget_amount": {"name": "campaign_rule_based_budget_amount", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.campaign_rule_based_budget_amount", "block_contents": "The value of the rule-based budget for a campaign."}, "doc.amazon_ads.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.clicks", "block_contents": "Total number of ad clicks."}, "doc.amazon_ads.cost": {"name": "cost", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.cost", "block_contents": "Total cost of ad clicks."}, "doc.amazon_ads.country_code": {"name": "country_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.country_code", "block_contents": "The code for a given country."}, "doc.amazon_ads.creation_date": {"name": "creation_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.creation_date", "block_contents": "The date of creation of the record."}, "doc.amazon_ads.currency_code": {"name": "currency_code", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.currency_code", "block_contents": "The currency used for all monetary values for entities under this profile."}, "doc.amazon_ads.default_bid": {"name": "default_bid", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.default_bid", "block_contents": "The date of creation of the record."}, "doc.amazon_ads.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.impressions", "block_contents": "Total number of ad impressions."}, "doc.amazon_ads.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.is_most_recent_record", "block_contents": "Boolean indicating whether record was the most recent instance."}, "doc.amazon_ads.keyword_bid": {"name": "keyword_bid", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_bid", "block_contents": "Bid associated with a keyword or targeting expression."}, "doc.amazon_ads.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_id", "block_contents": "The ID of the keyword."}, "doc.amazon_ads.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_match_type", "block_contents": "One of (broad, exact, or phrase.)"}, "doc.amazon_ads.keyword_text": {"name": "keyword_text", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_text", "block_contents": "The exact text for the keyword."}, "doc.amazon_ads.keyword_type": {"name": "keyword_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.keyword_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads.last_updated_date": {"name": "last_updated_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.last_updated_date", "block_contents": "Date of last update to record."}, "doc.amazon_ads.match_type": {"name": "match_type", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.match_type", "block_contents": "Type of matching for the keyword used in bid. One of: BROAD, PHRASE, or EXACT."}, "doc.amazon_ads.negative_keyword_id": {"name": "negative_keyword_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.negative_keyword_id", "block_contents": "The ID of the negative keyword."}, "doc.amazon_ads.portfolio_id": {"name": "portfolio_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.portfolio_id", "block_contents": "The ID of the Portfolio."}, "doc.amazon_ads.portfolio_name": {"name": "portfolio_name", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.portfolio_name", "block_contents": "The name of the Portfolio."}, "doc.amazon_ads.profile_id": {"name": "profile_id", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.profile_id", "block_contents": "The profile ID associated with your Amazon Ads account. Advertisers who operate in more than one marketplace (for example, Amazon.com, Amazon.co.uk, Amazon.co.jp) will have one profile associated with each marketplace."}, "doc.amazon_ads.report_date": {"name": "report_date", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.report_date", "block_contents": "The date of the report."}, "doc.amazon_ads.search_term": {"name": "search_term", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.search_term", "block_contents": "The search term used by the customer."}, "doc.amazon_ads.serving_status": {"name": "serving_status", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.serving_status", "block_contents": "The current serving status of the record."}, "doc.amazon_ads.state": {"name": "state", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.state", "block_contents": "The state of the record (enabled, paused, or archived)."}, "doc.amazon_ads.targeting": {"name": "targeting", "resource_type": "doc", "package_name": "amazon_ads", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.amazon_ads.targeting", "block_contents": "A string representation of the expression object used in the targeting clause."}, "doc.google_ads_source._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.google_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.google_ads_source.account_descriptive_name": {"name": "account_descriptive_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.account_descriptive_name", "block_contents": "The descriptive name of the Customer account."}, "doc.google_ads_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_id", "block_contents": "The ID of the AdGroup."}, "doc.google_ads_source.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_name", "block_contents": "The name of the AdGroup."}, "doc.google_ads_source.ad_group_status": {"name": "ad_group_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_status", "block_contents": "Status of the ad group."}, "doc.google_ads_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_id", "block_contents": "The ID of the Campaign."}, "doc.google_ads_source.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_id", "block_contents": "The ID of the Ad."}, "doc.google_ads_source.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.account_id", "block_contents": "The ID of the Account."}, "doc.google_ads_source.ad_status": {"name": "ad_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_status", "block_contents": "Status of the Ad."}, "doc.google_ads_source.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_name", "block_contents": "The name of the Campaign."}, "doc.google_ads_source.campaign_status": {"name": "campaign_status", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.campaign_status", "block_contents": "Status of the Campaign."}, "doc.google_ads_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.clicks", "block_contents": "The number of clicks."}, "doc.google_ads_source.cost": {"name": "cost", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.cost", "block_contents": "The sum of your cost-per-click (CPC) and cost-per-thousand impressions (CPM) costs during this period."}, "doc.google_ads_source.date": {"name": "date", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.date", "block_contents": "The date being reported on."}, "doc.google_ads_source.effective_final_url": {"name": "effective_final_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.effective_final_url", "block_contents": "Effective final URL of the impressions."}, "doc.google_ads_source.external_customer_id": {"name": "external_customer_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.external_customer_id", "block_contents": "The Customer ID."}, "doc.google_ads_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.impressions", "block_contents": "Count of how often your ad has appeared on a search results page or website on the Google Network."}, "doc.google_ads_source.criteria_id": {"name": "criteria_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_id", "block_contents": "The Criterion ID."}, "doc.google_ads_source.gcl_id": {"name": "gcl_id", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.gcl_id", "block_contents": "The Google Click ID."}, "doc.google_ads_source.criteria": {"name": "criteria", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria", "block_contents": "Descriptive string for the Criterion."}, "doc.google_ads_source.criteria_destination_url": {"name": "criteria_destination_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_destination_url", "block_contents": "Destination URL of the criterion that triggered ads."}, "doc.google_ads_source.criteria_type": {"name": "criteria_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.criteria_type", "block_contents": "The type of the Criterion."}, "doc.google_ads_source.base_url": {"name": "base_url", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.base_url", "block_contents": "The base URL of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.url_host": {"name": "url_host", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.url_host", "block_contents": "The URL host of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.url_path": {"name": "url_path", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.url_path", "block_contents": "The URL path of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_source": {"name": "utm_source", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_source", "block_contents": "The utm_source parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_medium": {"name": "utm_medium", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_medium", "block_contents": "The utm_medium parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_campaign": {"name": "utm_campaign", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_campaign", "block_contents": "The utm_campaign parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_content": {"name": "utm_content", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_content", "block_contents": "The utm_content parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.utm_term": {"name": "utm_term", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.utm_term", "block_contents": "The utm_term parameter of the ad, extracted from the `final_urls`."}, "doc.google_ads_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.updated_at", "block_contents": "Timestamp of when the record was last updated in Google Ads."}, "doc.google_ads_source.ad_type": {"name": "ad_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_type", "block_contents": "The type of the ad in Google Ads."}, "doc.google_ads_source.ad_group_type": {"name": "ad_group_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_group_type", "block_contents": "The type of the ad group in Google Ads."}, "doc.google_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "doc.google_ads_source.ad_network_type": {"name": "ad_network_type", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.ad_network_type", "block_contents": "The Google Ad network type used across the account."}, "doc.google_ads_source.device": {"name": "device", "resource_type": "doc", "package_name": "google_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.google_ads_source.device", "block_contents": "Account ad performance per unique device where the ads were served."}, "doc.ad_reporting.account_id": {"name": "account_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.account_id", "block_contents": "The ID representing the account."}, "doc.ad_reporting.account_name": {"name": "account_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.account_name", "block_contents": "The name of the account, if present in the source data."}, "doc.ad_reporting.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_group_id", "block_contents": "The ID representing the ad group, if present in the source data."}, "doc.ad_reporting.ad_group_name": {"name": "ad_group_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_group_name", "block_contents": "The name of the ad group, if present in the source data."}, "doc.ad_reporting.ad_id": {"name": "ad_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_id", "block_contents": "The ID representing the ad, if present in the source data."}, "doc.ad_reporting.ad_name": {"name": "ad_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.ad_name", "block_contents": "The name of the ad, if present in the source data."}, "doc.ad_reporting.base_url": {"name": "base_url", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.base_url", "block_contents": "The base url of the ad."}, "doc.ad_reporting.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.campaign_id", "block_contents": "The ID representing the campaign, if present in the source data."}, "doc.ad_reporting.campaign_name": {"name": "campaign_name", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.campaign_name", "block_contents": "The name of the campaign, if present in the source data."}, "doc.ad_reporting.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.clicks", "block_contents": "The count of clicks."}, "doc.ad_reporting.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.date_day", "block_contents": "The date of the report."}, "doc.ad_reporting.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.impressions", "block_contents": "The count of impressions."}, "doc.ad_reporting.keyword_id": {"name": "keyword_id", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_id", "block_contents": "The ID representing the keyword, if present in the source data."}, "doc.ad_reporting.keyword_match_type": {"name": "keyword_match_type", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_match_type", "block_contents": "The keyword match type associated with this record."}, "doc.ad_reporting.keyword_text": {"name": "keyword_text", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.keyword_text", "block_contents": "The keyword text."}, "doc.ad_reporting.platform": {"name": "platform", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.platform", "block_contents": "The ad platform associated with this record."}, "doc.ad_reporting.search_match_type": {"name": "search_match_type", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.search_match_type", "block_contents": "The search match type associated with this record."}, "doc.ad_reporting.search_query": {"name": "search_query", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.search_query", "block_contents": "The search query text."}, "doc.ad_reporting.spend": {"name": "spend", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.spend", "block_contents": "The cost of the ads."}, "doc.ad_reporting.url_host": {"name": "url_host", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.url_host", "block_contents": "The URL host of the ad."}, "doc.ad_reporting.url_path": {"name": "url_path", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.url_path", "block_contents": "The URL path of the ad."}, "doc.ad_reporting.utm_campaign": {"name": "utm_campaign", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_campaign", "block_contents": "The utm_campaign parameter of the ad."}, "doc.ad_reporting.utm_content": {"name": "utm_content", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_content", "block_contents": "The utm_content parameter of the ad."}, "doc.ad_reporting.utm_medium": {"name": "utm_medium", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_medium", "block_contents": "The utm_medium parameter of the ad."}, "doc.ad_reporting.utm_source": {"name": "utm_source", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_source", "block_contents": "The utm_source parameter of the ad."}, "doc.ad_reporting.utm_term": {"name": "utm_term", "resource_type": "doc", "package_name": "ad_reporting", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.ad_reporting.utm_term", "block_contents": "The utm_term parameter of the ad."}, "doc.pinterest_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.pinterest_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.is_most_recent_record", "block_contents": "Boolean representing whether the record is the most recent version of the object."}, "doc.pinterest_source.date_day": {"name": "date_day", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.date_day", "block_contents": "The performance date of the record."}, "doc.pinterest_source.ad_group_id": {"name": "ad_group_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.ad_group_id", "block_contents": "The ID of the related Ad group."}, "doc.pinterest_source.pin_promotion_id": {"name": "pin_promotion_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.pin_promotion_id", "block_contents": "The ID of the related Pin promotion."}, "doc.pinterest_source.campaign_id": {"name": "campaign_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.campaign_id", "block_contents": "The ID of the related Campaign."}, "doc.pinterest_source.advertiser_id": {"name": "advertiser_id", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.advertiser_id", "block_contents": "The ID of the related Advertiser."}, "doc.pinterest_source.impressions": {"name": "impressions", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impressions", "block_contents": "The number of paid and earned impressions that occurred on the day of the record."}, "doc.pinterest_source.clicks": {"name": "clicks", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clicks", "block_contents": "The number of paid and earned clicks that occurred on the day of the record."}, "doc.pinterest_source.spend": {"name": "spend", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.spend", "block_contents": "The amount of spend that occurred on the day of the record."}, "doc.pinterest_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.updated_at", "block_contents": "Timestamp of when a record was last updated."}, "doc.pinterest_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.created_at", "block_contents": "Timestamp of when a record was created."}, "doc.pinterest_source.spend_in_micro_dollar": {"name": "spend_in_micro_dollar", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.spend_in_micro_dollar", "block_contents": "The amount of spend in micro dollars that occurred on the day of the record."}, "doc.pinterest_source.clickthrough_1": {"name": "clickthrough_1", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clickthrough_1", "block_contents": "The number of paid pin clicks that occurred on the day of the record."}, "doc.pinterest_source.clickthrough_2": {"name": "clickthrough_2", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.clickthrough_2", "block_contents": "The number of earned outbound clicks that occurred on the day of the record."}, "doc.pinterest_source.impression_1": {"name": "impression_1", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impression_1", "block_contents": "The number of paid pin impressions that occurred on the day of the record."}, "doc.pinterest_source.impression_2": {"name": "impression_2", "resource_type": "doc", "package_name": "pinterest_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.pinterest_source.impression_2", "block_contents": "The number of earned pin impressions that occurred on the day of the record."}, "doc.facebook_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.facebook_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record. All records should have this value set to True given we filter on it."}, "doc.facebook_ads_source.updated_time": {"name": "updated_time", "resource_type": "doc", "package_name": "facebook_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.facebook_ads_source.updated_time", "block_contents": "The timestamp of the last update of a record."}, "doc.snapchat_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.snapchat_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.snapchat_ads_source.is_most_recent_record": {"name": "is_most_recent_record", "resource_type": "doc", "package_name": "snapchat_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.snapchat_ads_source.is_most_recent_record", "block_contents": "Boolean representing whether a record is the most recent version of that record."}, "doc.twitter_ads_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source._fivetran_synced", "block_contents": "When the record was last synced by Fivetran."}, "doc.twitter_ads_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.created_at", "block_contents": "The timestamp the account was created."}, "doc.twitter_ads_source.updated_at": {"name": "updated_at", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.updated_at", "block_contents": "The timestamp the account was last updated."}, "doc.twitter_ads_source.deleted": {"name": "deleted", "resource_type": "doc", "package_name": "twitter_ads_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.twitter_ads_source.deleted", "block_contents": "Whether the record has been deleted or not."}}, "exposures": {}, "metrics": {"metric.ad_reporting.spend": {"name": "spend", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.spend", "fqn": ["ad_reporting", "spend"], "description": "Total spend (in currency of individual platforms)", "label": "Ad spend (Fivetran)", "calculation_method": "sum", "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"], "timestamp": "date_day", "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "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": 1678988323.474599}, "metric.ad_reporting.clicks": {"name": "clicks", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.clicks", "fqn": ["ad_reporting", "clicks"], "description": "Total clicks", "label": "Ad clicks (Fivetran)", "calculation_method": "sum", "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"], "timestamp": "date_day", "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "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": 1678988323.484374}, "metric.ad_reporting.impressions": {"name": "impressions", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.impressions", "fqn": ["ad_reporting", "impressions"], "description": "Total impressions", "label": "Ad impressions (Fivetran)", "calculation_method": "sum", "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"], "timestamp": "date_day", "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "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": 1678988323.4936361}, "metric.ad_reporting.cost_per_click": {"name": "cost_per_click", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.cost_per_click", "fqn": ["ad_reporting", "cost_per_click"], "description": "The ratio of spend to clicks", "label": "Average ad cost per click (Fivetran)", "calculation_method": "derived", "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"], "timestamp": "date_day", "window": null, "model": null, "model_unique_id": null, "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": 1678988323.502412}, "metric.ad_reporting.bounce_rate": {"name": "bounce_rate", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.bounce_rate", "fqn": ["ad_reporting", "bounce_rate"], "description": "Percentage of impressions that did not convert into clicks.", "label": "Average Ad Bounce Rate (Fivetran)", "calculation_method": "derived", "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"], "timestamp": "date_day", "window": null, "model": null, "model_unique_id": null, "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": 1678988323.510924}, "metric.ad_reporting.clickthrough_rate": {"name": "clickthrough_rate", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.clickthrough_rate", "fqn": ["ad_reporting", "clickthrough_rate"], "description": "Percentage of impressions that did convert into clicks.", "label": "Ad Clickthrough Rate (Fivetran)", "calculation_method": "derived", "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"], "timestamp": "date_day", "window": null, "model": null, "model_unique_id": null, "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": 1678988323.5197692}, "metric.ad_reporting.active_ads": {"name": "active_ads", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.active_ads", "fqn": ["ad_reporting", "active_ads"], "description": "Count of ads witth spend > 0.", "label": "Count of Active Ads (Fivetran)", "calculation_method": "count_distinct", "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"], "timestamp": "date_day", "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "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": 1678988323.528739}, "metric.ad_reporting.avg_spend_nonzero": {"name": "avg_spend_nonzero", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.avg_spend_nonzero", "fqn": ["ad_reporting", "avg_spend_nonzero"], "description": "Average ad spend, ignores zero-spend days.", "label": "Average Spend, Ignore Zeros (Fivetran)", "calculation_method": "average", "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"], "timestamp": "date_day", "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "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": 1678988323.536424}, "metric.ad_reporting.avg_spend": {"name": "avg_spend", "resource_type": "metric", "package_name": "ad_reporting", "path": "ad_reporting_metrics.yml", "original_file_path": "models/ad_reporting_metrics.yml", "unique_id": "metric.ad_reporting.avg_spend", "fqn": ["ad_reporting", "avg_spend"], "description": "Average ad spend, does not ignore zero-spend days.", "label": "Average Spend (Fivetran)", "calculation_method": "average", "expression": "spend", "filters": [], "time_grains": ["week", "month"], "dimensions": ["platform", "campaign_id", "campaign_name", "ad_group_id", "ad_group_name", "account_id", "account_name"], "timestamp": "date_day", "window": null, "model": "ref('ad_reporting__ad_report')", "model_unique_id": null, "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": 1678988323.543026}}, "selectors": {}, "disabled": {}, "parent_map": {"seed.my_new_project.adgroup_report_hourly": [], "seed.my_new_project.adgroup_history": [], "seed.my_new_project.campaign_history": [], "seed.my_new_project.advertiser": [], "seed.my_new_project.ad_report_hourly": [], "seed.my_new_project.ad_history": [], "seed.my_new_project.campaign_report_hourly": [], "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.twitter_ads.twitter_ads__keyword_report": ["model.twitter_ads_source.stg_twitter_ads__account_history", "model.twitter_ads_source.stg_twitter_ads__campaign_history", "model.twitter_ads_source.stg_twitter_ads__line_item_history", "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "model.reddit_ads.reddit_ads__campaign_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__campaign_report"], "model.reddit_ads.reddit_ads__url_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads.reddit_ads__account_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__account_report"], "model.reddit_ads.reddit_ads__ad_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads.reddit_ads__ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_group_report", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.pinterest.pinterest_ads__url_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "model.pinterest.pinterest_ads__campaign_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__campaign_report"], "model.pinterest.pinterest_ads__keyword_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__keyword_history", "model.pinterest_source.stg_pinterest_ads__keyword_report"], "model.pinterest.pinterest_ads__advertiser_report": ["model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__advertiser_report"], "model.pinterest.pinterest_ads__pin_promotion_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_history", "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"], "model.pinterest.pinterest_ads__ad_group_report": ["model.pinterest_source.stg_pinterest_ads__ad_group_history", "model.pinterest_source.stg_pinterest_ads__ad_group_report", "model.pinterest_source.stg_pinterest_ads__advertiser_history", "model.pinterest_source.stg_pinterest_ads__campaign_history"], "model.reddit_ads_source.stg_reddit_ads__ad_group": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp", "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp", "model.reddit_ads_source.stg_reddit_ads__ad_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp", "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__account": ["model.reddit_ads_source.stg_reddit_ads__account_tmp", "model.reddit_ads_source.stg_reddit_ads__account_tmp"], "model.reddit_ads_source.stg_reddit_ads__account_report": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp", "model.reddit_ads_source.stg_reddit_ads__account_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_report": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp", "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp", "model.reddit_ads_source.stg_reddit_ads__campaign_tmp"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp", "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"], "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": ["source.reddit_ads_source.reddit_ads.campaign"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_group_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": ["source.reddit_ads_source.reddit_ads.campaign_report"], "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": ["source.reddit_ads_source.reddit_ads.account_report"], "model.reddit_ads_source.stg_reddit_ads__account_tmp": ["source.reddit_ads_source.reddit_ads.account"], "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": ["source.reddit_ads_source.reddit_ads.ad_group"], "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": ["source.reddit_ads_source.reddit_ads.ad_report"], "model.reddit_ads_source.stg_reddit_ads__ad_tmp": ["source.reddit_ads_source.reddit_ads.ad"], "model.google_ads.google_ads__keyword_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_criterion_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__keyword_stats"], "model.google_ads.google_ads__campaign_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__campaign_history", "model.google_ads_source.stg_google_ads__campaign_stats"], "model.google_ads.google_ads__url_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history", "model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__ad_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_history", "model.google_ads_source.stg_google_ads__ad_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__ad_group_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__ad_group_history", "model.google_ads_source.stg_google_ads__ad_group_stats", "model.google_ads_source.stg_google_ads__campaign_history"], "model.google_ads.google_ads__account_report": ["model.google_ads_source.stg_google_ads__account_history", "model.google_ads_source.stg_google_ads__account_stats"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp", "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__campaign_history": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp", "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp", "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__profile": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp", "model.amazon_ads_source.stg_amazon_ads__profile_tmp"], "model.amazon_ads_source.stg_amazon_ads__keyword_history": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp", "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp", "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"], "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": ["source.amazon_ads_source.amazon_ads.keyword_history"], "model.amazon_ads_source.stg_amazon_ads__profile_tmp": ["source.amazon_ads_source.amazon_ads.profile"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": ["source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": ["source.amazon_ads_source.amazon_ads.product_ad_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": ["source.amazon_ads_source.amazon_ads.ad_group_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": ["source.amazon_ads_source.amazon_ads.campaign_level_report"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": ["source.amazon_ads_source.amazon_ads.targeting_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": ["source.amazon_ads_source.amazon_ads.portfolio_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": ["source.amazon_ads_source.amazon_ads.campaign_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": ["source.amazon_ads_source.amazon_ads.ad_group_level_report"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": ["source.amazon_ads_source.amazon_ads.advertised_product_report"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin_source.stg_linkedin_ads__creative_history_tmp", "model.linkedin_source.stg_linkedin_ads__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.amazon_ads.amazon_ads__portfolio_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__search_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "model.amazon_ads.amazon_ads__ad_group_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__keyword_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "model.amazon_ads.amazon_ads__campaign_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__account_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.amazon_ads__ad_report": ["model.amazon_ads.int_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads.int_amazon_ads__portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "model.facebook_ads.facebook_ads__url_report": ["model.facebook_ads.int_facebook_ads__creative_history", "model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__url_tags": ["model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.facebook_ads.facebook_ads__campaign_report": ["model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__account_report": ["model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad"], "model.facebook_ads.facebook_ads__ad_report": ["model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.facebook_ads__ad_set_report": ["model.facebook_ads_source.stg_facebook_ads__account_history", "model.facebook_ads_source.stg_facebook_ads__ad_history", "model.facebook_ads_source.stg_facebook_ads__ad_set_history", "model.facebook_ads_source.stg_facebook_ads__basic_ad", "model.facebook_ads_source.stg_facebook_ads__campaign_history"], "model.facebook_ads.int_facebook_ads__creative_history": ["model.facebook_ads.facebook_ads__url_tags", "model.facebook_ads_source.stg_facebook_ads__creative_history"], "model.snapchat_ads.snapchat_ads__ad_report": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report"], "model.snapchat_ads.snapchat_ads__url_report": ["model.snapchat_ads.snapchat_ads__creative_history_prep", "model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__account_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__ad_squad_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_history", "model.snapchat_ads_source.stg_snapchat_ads__ad_squad_hourly_report", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"], "model.snapchat_ads.snapchat_ads__campaign_report": ["model.snapchat_ads_source.stg_snapchat_ads__ad_account_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_history", "model.snapchat_ads_source.stg_snapchat_ads__campaign_hourly_report"], "model.snapchat_ads.snapchat_ads__creative_history_prep": ["model.snapchat_ads_source.stg_snapchat_ads__creative_history", "model.snapchat_ads_source.stg_snapchat_ads__creative_url_tag_history"], "model.google_ads_source.stg_google_ads__ad_group_stats": ["model.google_ads_source.stg_google_ads__ad_group_stats_tmp", "model.google_ads_source.stg_google_ads__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.amazon_ads.amazon_ads__campaign_report", "model.apple_search_ads.apple_search_ads__campaign_report", "model.facebook_ads.facebook_ads__campaign_report", "model.google_ads.google_ads__campaign_report", "model.linkedin.linkedin_ads__campaign_group_report", "model.microsoft_ads.microsoft_ads__campaign_report", "model.pinterest.pinterest_ads__campaign_report", "model.reddit_ads.reddit_ads__campaign_report", "model.snapchat_ads.snapchat_ads__campaign_report", "model.tiktok_ads.tiktok_ads__campaign_report", "model.twitter_ads.twitter_ads__campaign_report"], "model.ad_reporting.int_ad_reporting__keyword_report": ["model.amazon_ads.amazon_ads__keyword_report", "model.apple_search_ads.apple_search_ads__keyword_report", "model.google_ads.google_ads__keyword_report", "model.microsoft_ads.microsoft_ads__keyword_report", "model.pinterest.pinterest_ads__keyword_report", "model.twitter_ads.twitter_ads__keyword_report"], "model.ad_reporting.int_ad_reporting__ad_report": ["model.amazon_ads.amazon_ads__ad_report", "model.apple_search_ads.apple_search_ads__ad_report", "model.facebook_ads.facebook_ads__ad_report", "model.google_ads.google_ads__ad_report", "model.linkedin.linkedin_ads__creative_report", "model.microsoft_ads.microsoft_ads__ad_report", "model.pinterest.pinterest_ads__pin_promotion_report", "model.reddit_ads.reddit_ads__ad_report", "model.snapchat_ads.snapchat_ads__ad_report", "model.tiktok_ads.tiktok_ads__ad_report", "model.twitter_ads.twitter_ads__promoted_tweet_report"], "model.ad_reporting.int_ad_reporting__account_report": ["model.amazon_ads.amazon_ads__account_report", "model.apple_search_ads.apple_search_ads__organization_report", "model.facebook_ads.facebook_ads__account_report", "model.google_ads.google_ads__account_report", "model.linkedin.linkedin_ads__account_report", "model.microsoft_ads.microsoft_ads__account_report", "model.pinterest.pinterest_ads__advertiser_report", "model.reddit_ads.reddit_ads__account_report", "model.snapchat_ads.snapchat_ads__account_report", "model.tiktok_ads.tiktok_ads__advertiser_report", "model.twitter_ads.twitter_ads__account_report"], "model.ad_reporting.int_ad_reporting__url_report": ["model.facebook_ads.facebook_ads__url_report", "model.google_ads.google_ads__url_report", "model.linkedin.linkedin_ads__url_report", "model.microsoft_ads.microsoft_ads__url_report", "model.pinterest.pinterest_ads__url_report", "model.reddit_ads.reddit_ads__url_report", "model.snapchat_ads.snapchat_ads__url_report", "model.tiktok_ads.tiktok_ads__url_report", "model.twitter_ads.twitter_ads__url_report"], "model.ad_reporting.int_ad_reporting__search_report": ["model.amazon_ads.amazon_ads__search_report", "model.apple_search_ads.apple_search_ads__search_term_report", "model.microsoft_ads.microsoft_ads__search_report"], "model.ad_reporting.int_ad_reporting__ad_group_report": ["model.amazon_ads.amazon_ads__ad_group_report", "model.apple_search_ads.apple_search_ads__ad_group_report", "model.facebook_ads.facebook_ads__ad_set_report", "model.google_ads.google_ads__ad_group_report", "model.linkedin.linkedin_ads__campaign_report", "model.microsoft_ads.microsoft_ads__ad_group_report", "model.pinterest.pinterest_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_group_report", "model.snapchat_ads.snapchat_ads__ad_squad_report", "model.tiktok_ads.tiktok_ads__ad_group_report", "model.twitter_ads.twitter_ads__line_item_report"], "model.apple_search_ads_source.stg_apple_search_ads__campaign_history": ["model.apple_search_ads_source.stg_apple_search_ads__campaign_history_tmp", "model.apple_search_ads_source.stg_apple_search_ads__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__line_item_keywords_report": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp", "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp"], "model.twitter_ads_source.stg_twitter_ads__campaign_report": ["model.twitter_ads_source.stg_twitter_ads__campaign_report_tmp", "model.twitter_ads_source.stg_twitter_ads__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_keywords_report_tmp": ["source.twitter_ads_source.twitter_ads.line_item_keywords_report"], "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": ["source.twitter_ads_source.twitter_ads.line_item_report"], "model.twitter_ads_source.stg_twitter_ads__account_history_tmp": ["source.twitter_ads_source.twitter_ads.account_history"], "model.twitter_ads_source.stg_twitter_ads__promoted_tweet_history_tmp": ["source.twitter_ads_source.twitter_ads.promoted_tweet_history"], "model.linkedin.linkedin_ads__campaign_group_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__creative_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__creative_history"], "model.linkedin.linkedin_ads__campaign_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__account_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_campaign", "model.linkedin_source.stg_linkedin_ads__campaign_history"], "model.linkedin.linkedin_ads__url_report": ["model.linkedin_source.stg_linkedin_ads__account_history", "model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative", "model.linkedin_source.stg_linkedin_ads__campaign_group_history", "model.linkedin_source.stg_linkedin_ads__campaign_history", "model.linkedin_source.stg_linkedin_ads__creative_history"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": ["model.microsoft_ads_source.stg_microsoft_ads__account_history"], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_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__budget_association_status.6f2312e762": ["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.not_null_tiktok_ads__url_report_base_url.37afef2e1b": ["model.tiktok_ads.tiktok_ads__url_report"], "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__url_report_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": ["model.twitter_ads.twitter_ads__keyword_report"], "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538": ["model.twitter_ads.twitter_ads__keyword_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39": ["model.twitter_ads.twitter_ads__keyword_report"], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_placement.d89c9b27e5": ["model.twitter_ads.twitter_ads__promoted_tweet_report"], "test.twitter_ads.not_null_twitter_ads__promoted_tweet_report_promoted_tweet_id.5df08e154e": ["model.twitter_ads.twitter_ads__promoted_tweet_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_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.not_null_twitter_ads__url_report_base_url.dfd7ab549e": ["model.twitter_ads.twitter_ads__url_report"], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__url_report_date_day__promoted_tweet_id__placement__line_item_id__campaign_id__account_id.30b826d8ff": ["model.twitter_ads.twitter_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_date_day__account_id__attribution_type__currency__status__time_zone_id.3cf3359ef6": ["model.reddit_ads.reddit_ads__account_report"], "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_date_day__account_id__ad_group_id__campaign_id__currency.dfbea50191": ["model.reddit_ads.reddit_ads__ad_group_report"], "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.a428678f1d": ["model.reddit_ads.reddit_ads__ad_report"], "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_date_day__account_id__campaign_id__currency.aec7cd25af": ["model.reddit_ads.reddit_ads__campaign_report"], "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": ["model.reddit_ads.reddit_ads__url_report"], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.b14eb4e958": ["model.reddit_ads.reddit_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": ["model.pinterest.pinterest_ads__url_report"], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_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.reddit_ads_source.unique_stg_reddit_ads__account_account_id.0c6fcb698e": ["model.reddit_ads_source.stg_reddit_ads__account"], "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": ["model.reddit_ads_source.stg_reddit_ads__account"], "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": ["model.reddit_ads_source.stg_reddit_ads__account_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_account_id__date_day.74570496be": ["model.reddit_ads_source.stg_reddit_ads__account_report"], "test.reddit_ads_source.unique_stg_reddit_ads__ad_ad_id.3d62901652": ["model.reddit_ads_source.stg_reddit_ads__ad"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": ["model.reddit_ads_source.stg_reddit_ads__ad"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": ["model.reddit_ads_source.stg_reddit_ads__ad_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_ad_id__date_day.ce868b0b1a": ["model.reddit_ads_source.stg_reddit_ads__ad_report"], "test.reddit_ads_source.unique_stg_reddit_ads__ad_group_ad_group_id.d3dc0d7503": ["model.reddit_ads_source.stg_reddit_ads__ad_group"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": ["model.reddit_ads_source.stg_reddit_ads__ad_group"], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_ad_group_id__date_day.19b8b9b788": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "test.reddit_ads_source.unique_stg_reddit_ads__campaign_campaign_id.3c4fccf1e4": ["model.reddit_ads_source.stg_reddit_ads__campaign"], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": ["model.reddit_ads_source.stg_reddit_ads__campaign"], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_campaign_id__date_day.9b02fea13d": ["model.reddit_ads_source.stg_reddit_ads__campaign_report"], "test.google_ads.not_null_google_ads__url_report_base_url.e3578c0f72": ["model.google_ads.google_ads__url_report"], "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__url_report_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.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382": ["model.amazon_ads_source.stg_amazon_ads__campaign_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197": ["model.amazon_ads_source.stg_amazon_ads__keyword_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": ["model.amazon_ads_source.stg_amazon_ads__profile"], "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_creative_id.062abfe14b": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.not_null_stg_linkedin_ads__ad_analytics_by_creative_date_day.cb81bc4766": ["model.linkedin_source.stg_linkedin_ads__ad_analytics_by_creative"], "test.linkedin_source.dbt_utils_unique_combination_of_columns_stg_linkedin_ads__ad_analytics_by_creative_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.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2": ["model.amazon_ads.amazon_ads__account_report"], "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": ["model.amazon_ads.amazon_ads__ad_group_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1": ["model.amazon_ads.amazon_ads__ad_group_report"], "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": ["model.amazon_ads.amazon_ads__ad_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7": ["model.amazon_ads.amazon_ads__ad_report"], "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": ["model.amazon_ads.amazon_ads__campaign_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0": ["model.amazon_ads.amazon_ads__campaign_report"], "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": ["model.amazon_ads.amazon_ads__portfolio_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6": ["model.amazon_ads.amazon_ads__portfolio_report"], "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": ["model.amazon_ads.amazon_ads__keyword_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80": ["model.amazon_ads.amazon_ads__keyword_report"], "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": ["model.amazon_ads.amazon_ads__search_report"], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f": ["model.amazon_ads.amazon_ads__search_report"], "test.facebook_ads.not_null_facebook_ads__url_report_base_url.b7757e50be": ["model.facebook_ads.facebook_ads__url_report"], "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_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.not_null_snapchat_ads__url_report_base_url.15676dc1de": ["model.snapchat_ads.snapchat_ads__url_report"], "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__url_report_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_id.51a45fb334": ["model.ad_reporting.ad_reporting__keyword_report"], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6": ["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__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.9504d17df6": ["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__match_type.8b1ebd50a3": ["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_keyword_id.e5f015e9ec": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id.fbb70cacf6": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "test.twitter_ads_source.not_null_stg_twitter_ads__tweet_tweet_id.a0427f37cd": ["model.twitter_ads_source.stg_twitter_ads__tweet"], "test.twitter_ads_source.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.not_null_linkedin_ads__url_report_click_uri.81534087cb": ["model.linkedin.linkedin_ads__url_report"], "test.linkedin.dbt_utils_unique_combination_of_columns_linkedin_ads__url_report_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.reddit_ads_source.reddit_ads.account": [], "source.reddit_ads_source.reddit_ads.account_report": [], "source.reddit_ads_source.reddit_ads.ad": [], "source.reddit_ads_source.reddit_ads.ad_report": [], "source.reddit_ads_source.reddit_ads.ad_group": [], "source.reddit_ads_source.reddit_ads.ad_group_report": [], "source.reddit_ads_source.reddit_ads.campaign": [], "source.reddit_ads_source.reddit_ads.campaign_report": [], "source.amazon_ads_source.amazon_ads.ad_group_history": [], "source.amazon_ads_source.amazon_ads.ad_group_level_report": [], "source.amazon_ads_source.amazon_ads.advertised_product_report": [], "source.amazon_ads_source.amazon_ads.campaign_history": [], "source.amazon_ads_source.amazon_ads.campaign_level_report": [], "source.amazon_ads_source.amazon_ads.keyword_history": [], "source.amazon_ads_source.amazon_ads.portfolio_history": [], "source.amazon_ads_source.amazon_ads.product_ad_history": [], "source.amazon_ads_source.amazon_ads.profile": [], "source.amazon_ads_source.amazon_ads.targeting_keyword_report": [], "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": [], "source.linkedin_source.linkedin.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": [], "source.twitter_ads_source.twitter_ads.line_item_keywords_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.my_new_project.adgroup_report_hourly": [], "seed.my_new_project.adgroup_history": [], "seed.my_new_project.campaign_history": [], "seed.my_new_project.advertiser": [], "seed.my_new_project.ad_report_hourly": [], "seed.my_new_project.ad_history": [], "seed.my_new_project.campaign_report_hourly": [], "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__budget_association_status.6f2312e762", "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_base_url.37afef2e1b", "test.tiktok_ads.not_null_tiktok_ads__url_report_date_day.d593573eff"], "model.tiktok_ads.tiktok_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.tiktok_ads.dbt_utils_unique_combination_of_columns_tiktok_ads__campaign_report_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_base_url.dfd7ab549e", "test.twitter_ads.not_null_twitter_ads__url_report_date_day.33fcb7e04b", "test.twitter_ads.not_null_twitter_ads__url_report_placement.92ca3b192e", "test.twitter_ads.not_null_twitter_ads__url_report_promoted_tweet_id.d690f99143"], "model.twitter_ads.twitter_ads__promoted_tweet_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__promoted_tweet_report_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.twitter_ads.twitter_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39", "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec", "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538"], "model.reddit_ads.reddit_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_date_day__account_id__campaign_id__currency.aec7cd25af", "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49", "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131"], "model.reddit_ads.reddit_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.b14eb4e958", "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0", "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb", "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da"], "model.reddit_ads.reddit_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_date_day__account_id__attribution_type__currency__status__time_zone_id.3cf3359ef6", "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5", "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90"], "model.reddit_ads.reddit_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.a428678f1d", "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e", "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a"], "model.reddit_ads.reddit_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_date_day__account_id__ad_group_id__campaign_id__currency.dfbea50191", "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604", "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7"], "model.pinterest.pinterest_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_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_destination_url.0bb7f30502", "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a"], "model.pinterest.pinterest_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__campaign_report_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.reddit_ads_source.stg_reddit_ads__ad_group": ["model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2", "test.reddit_ads_source.unique_stg_reddit_ads__ad_group_ad_group_id.d3dc0d7503"], "model.reddit_ads_source.stg_reddit_ads__ad": ["model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd", "test.reddit_ads_source.unique_stg_reddit_ads__ad_ad_id.3d62901652"], "model.reddit_ads_source.stg_reddit_ads__campaign_report": ["model.reddit_ads.reddit_ads__campaign_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_campaign_id__date_day.9b02fea13d", "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f"], "model.reddit_ads_source.stg_reddit_ads__account": ["model.reddit_ads.reddit_ads__account_report", "model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__campaign_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078", "test.reddit_ads_source.unique_stg_reddit_ads__account_account_id.0c6fcb698e"], "model.reddit_ads_source.stg_reddit_ads__account_report": ["model.reddit_ads.reddit_ads__account_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_account_id__date_day.74570496be", "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de"], "model.reddit_ads_source.stg_reddit_ads__ad_report": ["model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_ad_id__date_day.ce868b0b1a", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857"], "model.reddit_ads_source.stg_reddit_ads__campaign": ["model.reddit_ads.reddit_ads__ad_group_report", "model.reddit_ads.reddit_ads__ad_report", "model.reddit_ads.reddit_ads__campaign_report", "model.reddit_ads.reddit_ads__url_report", "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682", "test.reddit_ads_source.unique_stg_reddit_ads__campaign_campaign_id.3c4fccf1e4"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report": ["model.reddit_ads.reddit_ads__ad_group_report", "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_ad_group_id__date_day.19b8b9b788", "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d"], "model.reddit_ads_source.stg_reddit_ads__campaign_tmp": ["model.reddit_ads_source.stg_reddit_ads__campaign", "model.reddit_ads_source.stg_reddit_ads__campaign"], "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report", "model.reddit_ads_source.stg_reddit_ads__ad_group_report"], "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__campaign_report", "model.reddit_ads_source.stg_reddit_ads__campaign_report"], "model.reddit_ads_source.stg_reddit_ads__account_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__account_report", "model.reddit_ads_source.stg_reddit_ads__account_report"], "model.reddit_ads_source.stg_reddit_ads__account_tmp": ["model.reddit_ads_source.stg_reddit_ads__account", "model.reddit_ads_source.stg_reddit_ads__account"], "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_group", "model.reddit_ads_source.stg_reddit_ads__ad_group"], "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad_report", "model.reddit_ads_source.stg_reddit_ads__ad_report"], "model.reddit_ads_source.stg_reddit_ads__ad_tmp": ["model.reddit_ads_source.stg_reddit_ads__ad", "model.reddit_ads_source.stg_reddit_ads__ad"], "model.google_ads.google_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.google_ads.dbt_utils_unique_combination_of_columns_google_ads__keyword_report_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.amazon_ads_source.stg_amazon_ads__campaign_level_report": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__portfolio_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313", "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report": ["model.amazon_ads.amazon_ads__ad_group_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94", "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report": ["model.amazon_ads.amazon_ads__ad_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d", "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history": ["model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.int_amazon_ads__portfolio_history", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050", "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02"], "model.amazon_ads_source.stg_amazon_ads__campaign_history": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382", "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history": ["model.amazon_ads.amazon_ads__ad_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4", "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report": ["model.amazon_ads.amazon_ads__keyword_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb", "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7"], "model.amazon_ads_source.stg_amazon_ads__profile": ["model.amazon_ads.amazon_ads__account_report", "model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__portfolio_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b"], "model.amazon_ads_source.stg_amazon_ads__keyword_history": ["model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197", "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history": ["model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9", "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report": ["model.amazon_ads.amazon_ads__search_report", "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693", "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06"], "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__keyword_history", "model.amazon_ads_source.stg_amazon_ads__keyword_history"], "model.amazon_ads_source.stg_amazon_ads__profile_tmp": ["model.amazon_ads_source.stg_amazon_ads__profile", "model.amazon_ads_source.stg_amazon_ads__profile"], "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report", "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history", "model.amazon_ads_source.stg_amazon_ads__product_ad_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history", "model.amazon_ads_source.stg_amazon_ads__ad_group_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report", "model.amazon_ads_source.stg_amazon_ads__campaign_level_report"], "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report", "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"], "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history", "model.amazon_ads_source.stg_amazon_ads__portfolio_history"], "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp": ["model.amazon_ads_source.stg_amazon_ads__campaign_history", "model.amazon_ads_source.stg_amazon_ads__campaign_history"], "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report", "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"], "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report", "model.amazon_ads_source.stg_amazon_ads__advertised_product_report"], "model.linkedin_source.stg_linkedin_ads__creative_history": ["model.linkedin.linkedin_ads__creative_report", "model.linkedin.linkedin_ads__url_report", "test.linkedin_source.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.amazon_ads.amazon_ads__portfolio_report": ["test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6", "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6"], "model.amazon_ads.amazon_ads__search_report": ["model.ad_reporting.int_ad_reporting__search_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f", "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a"], "model.amazon_ads.amazon_ads__ad_group_report": ["model.ad_reporting.int_ad_reporting__ad_group_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1", "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a"], "model.amazon_ads.amazon_ads__keyword_report": ["model.ad_reporting.int_ad_reporting__keyword_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80", "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a"], "model.amazon_ads.amazon_ads__campaign_report": ["model.ad_reporting.int_ad_reporting__campaign_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0", "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c"], "model.amazon_ads.amazon_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2", "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061", "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66"], "model.amazon_ads.amazon_ads__ad_report": ["model.ad_reporting.int_ad_reporting__ad_report", "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7", "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3"], "model.amazon_ads.int_amazon_ads__portfolio_history": ["model.amazon_ads.amazon_ads__ad_group_report", "model.amazon_ads.amazon_ads__ad_report", "model.amazon_ads.amazon_ads__campaign_report", "model.amazon_ads.amazon_ads__keyword_report", "model.amazon_ads.amazon_ads__search_report"], "model.facebook_ads.facebook_ads__url_report": ["model.ad_reporting.int_ad_reporting__url_report", "test.facebook_ads.dbt_utils_unique_combination_of_columns_facebook_ads__url_report_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_base_url.15676dc1de", "test.snapchat_ads.not_null_snapchat_ads__url_report_date_day.bcbe87a7f6"], "model.snapchat_ads.snapchat_ads__account_report": ["model.ad_reporting.int_ad_reporting__account_report", "test.snapchat_ads.dbt_utils_unique_combination_of_columns_snapchat_ads__account_report_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_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6", "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334"], "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__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.9504d17df6", "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__match_type.8b1ebd50a3", "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__line_item_keywords_report": ["model.twitter_ads.twitter_ads__keyword_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id.fbb70cacf6", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13", "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec"], "model.twitter_ads_source.stg_twitter_ads__campaign_report": ["model.twitter_ads.twitter_ads__campaign_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_report_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__keyword_report", "model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_history_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__keyword_report", "model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__campaign_history_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__keyword_report", "model.twitter_ads.twitter_ads__line_item_report", "model.twitter_ads.twitter_ads__promoted_tweet_report", "model.twitter_ads.twitter_ads__url_report", "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__account_history_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_keywords_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report", "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"], "model.twitter_ads_source.stg_twitter_ads__line_item_report_tmp": ["model.twitter_ads_source.stg_twitter_ads__line_item_report", "model.twitter_ads_source.stg_twitter_ads__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_click_uri.81534087cb", "test.linkedin.not_null_linkedin_ads__url_report_creative_id.83967fe9d2", "test.linkedin.not_null_linkedin_ads__url_report_date_day.48b540f315"], "test.microsoft_ads_source.not_null_stg_microsoft_ads__account_history_account_id.cc273ee54e": [], "test.microsoft_ads_source.dbt_utils_unique_combination_of_columns_stg_microsoft_ads__account_history_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__budget_association_status.6f2312e762": [], "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.not_null_tiktok_ads__url_report_base_url.37afef2e1b": [], "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_keyword_id.91efa0a538": [], "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39": [], "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.not_null_twitter_ads__url_report_base_url.dfd7ab549e": [], "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.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90": [], "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_date_day__account_id__attribution_type__currency__status__time_zone_id.3cf3359ef6": [], "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7": [], "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_date_day__account_id__ad_group_id__campaign_id__currency.dfbea50191": [], "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a": [], "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.a428678f1d": [], "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131": [], "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_date_day__account_id__campaign_id__currency.aec7cd25af": [], "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da": [], "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0": [], "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb": [], "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.b14eb4e958": [], "test.pinterest.not_null_pinterest_ads__url_report_date_day.b09048037e": [], "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502": [], "test.pinterest.not_null_pinterest_ads__url_report_pin_promotion_id.0da711ad6a": [], "test.pinterest.dbt_utils_unique_combination_of_columns_pinterest_ads__url_report_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.reddit_ads_source.unique_stg_reddit_ads__account_account_id.0c6fcb698e": [], "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078": [], "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_account_id__date_day.74570496be": [], "test.reddit_ads_source.unique_stg_reddit_ads__ad_ad_id.3d62901652": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_ad_id__date_day.ce868b0b1a": [], "test.reddit_ads_source.unique_stg_reddit_ads__ad_group_ad_group_id.d3dc0d7503": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2": [], "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_ad_group_id__date_day.19b8b9b788": [], "test.reddit_ads_source.unique_stg_reddit_ads__campaign_campaign_id.3c4fccf1e4": [], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682": [], "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f": [], "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_campaign_id__date_day.9b02fea13d": [], "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.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9": [], "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94": [], "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d": [], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382": [], "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313": [], "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197": [], "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050": [], "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4": [], "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b": [], "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb": [], "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06": [], "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693": [], "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.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66": [], "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2": [], "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1": [], "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7": [], "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0": [], "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6": [], "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80": [], "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a": [], "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f": [], "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.not_null_snapchat_ads__url_report_base_url.15676dc1de": [], "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_id.51a45fb334": [], "test.ad_reporting.dbt_utils_unique_combination_of_columns_ad_reporting__keyword_report_platform__date_day__keyword_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6": [], "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__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.9504d17df6": [], "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__match_type.8b1ebd50a3": [], "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_keyword_id.e5f015e9ec": [], "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13": [], "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id.fbb70cacf6": [], "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.not_null_linkedin_ads__url_report_click_uri.81534087cb": [], "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.reddit_ads_source.reddit_ads.account": ["model.reddit_ads_source.stg_reddit_ads__account_tmp"], "source.reddit_ads_source.reddit_ads.account_report": ["model.reddit_ads_source.stg_reddit_ads__account_report_tmp"], "source.reddit_ads_source.reddit_ads.ad": ["model.reddit_ads_source.stg_reddit_ads__ad_tmp"], "source.reddit_ads_source.reddit_ads.ad_report": ["model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"], "source.reddit_ads_source.reddit_ads.ad_group": ["model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"], "source.reddit_ads_source.reddit_ads.ad_group_report": ["model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"], "source.reddit_ads_source.reddit_ads.campaign": ["model.reddit_ads_source.stg_reddit_ads__campaign_tmp"], "source.reddit_ads_source.reddit_ads.campaign_report": ["model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"], "source.amazon_ads_source.amazon_ads.ad_group_history": ["model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"], "source.amazon_ads_source.amazon_ads.ad_group_level_report": ["model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"], "source.amazon_ads_source.amazon_ads.advertised_product_report": ["model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"], "source.amazon_ads_source.amazon_ads.campaign_history": ["model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"], "source.amazon_ads_source.amazon_ads.campaign_level_report": ["model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"], "source.amazon_ads_source.amazon_ads.keyword_history": ["model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"], "source.amazon_ads_source.amazon_ads.portfolio_history": ["model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"], "source.amazon_ads_source.amazon_ads.product_ad_history": ["model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"], "source.amazon_ads_source.amazon_ads.profile": ["model.amazon_ads_source.stg_amazon_ads__profile_tmp"], "source.amazon_ads_source.amazon_ads.targeting_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"], "source.amazon_ads_source.amazon_ads.search_term_ad_keyword_report": ["model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"], "source.linkedin_source.linkedin.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"], "source.twitter_ads_source.twitter_ads.line_item_keywords_report": ["model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp"], "metric.ad_reporting.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 new file mode 100644 index 0000000..b5187b7 --- /dev/null +++ b/docs/run_results.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.4.5", "generated_at": "2023-03-16T17:39:19.037941Z", "invocation_id": "23f6391d-ec02-4ce1-b01c-9e19b12ffc5f", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.473446Z", "completed_at": "2023-03-16T17:38:52.519148Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.536284Z", "completed_at": "2023-03-16T17:38:52.536327Z"}], "thread_id": "Thread-1", "execution_time": 0.07536625862121582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.503393Z", "completed_at": "2023-03-16T17:38:52.525365Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.537050Z", "completed_at": "2023-03-16T17:38:52.537074Z"}], "thread_id": "Thread-4", "execution_time": 0.0732421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.489353Z", "completed_at": "2023-03-16T17:38:52.526622Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.537570Z", "completed_at": "2023-03-16T17:38:52.537584Z"}], "thread_id": "Thread-2", "execution_time": 0.07789206504821777, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.494619Z", "completed_at": "2023-03-16T17:38:52.542288Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.553572Z", "completed_at": "2023-03-16T17:38:52.553609Z"}], "thread_id": "Thread-3", "execution_time": 0.09227609634399414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.580450Z", "completed_at": "2023-03-16T17:38:52.610428Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.632703Z", "completed_at": "2023-03-16T17:38:52.632745Z"}], "thread_id": "Thread-4", "execution_time": 0.08299016952514648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.564076Z", "completed_at": "2023-03-16T17:38:52.609141Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.636181Z", "completed_at": "2023-03-16T17:38:52.636204Z"}], "thread_id": "Thread-1", "execution_time": 0.08939385414123535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.592812Z", "completed_at": "2023-03-16T17:38:52.633321Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.642924Z", "completed_at": "2023-03-16T17:38:52.642940Z"}], "thread_id": "Thread-2", "execution_time": 0.09022903442382812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.619573Z", "completed_at": "2023-03-16T17:38:52.644240Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.652397Z", "completed_at": "2023-03-16T17:38:52.652417Z"}], "thread_id": "Thread-3", "execution_time": 0.062458038330078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.653444Z", "completed_at": "2023-03-16T17:38:52.686316Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.705792Z", "completed_at": "2023-03-16T17:38:52.705824Z"}], "thread_id": "Thread-4", "execution_time": 0.07293295860290527, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.667758Z", "completed_at": "2023-03-16T17:38:52.701675Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.706355Z", "completed_at": "2023-03-16T17:38:52.706377Z"}], "thread_id": "Thread-1", "execution_time": 0.07483386993408203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.690354Z", "completed_at": "2023-03-16T17:38:52.706805Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.732077Z", "completed_at": "2023-03-16T17:38:52.732104Z"}], "thread_id": "Thread-2", "execution_time": 0.07386994361877441, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:52.707299Z", "completed_at": "2023-03-16T17:38:52.739101Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.767781Z", "completed_at": "2023-03-16T17:38:52.767802Z"}], "thread_id": "Thread-3", "execution_time": 0.07076001167297363, "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": "2023-03-16T17:38:52.741060Z", "completed_at": "2023-03-16T17:38:52.770931Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.787886Z", "completed_at": "2023-03-16T17:38:52.787942Z"}], "thread_id": "Thread-4", "execution_time": 0.059841156005859375, "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": "2023-03-16T17:38:52.746850Z", "completed_at": "2023-03-16T17:38:52.771781Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.789669Z", "completed_at": "2023-03-16T17:38:52.789713Z"}], "thread_id": "Thread-1", "execution_time": 0.05914902687072754, "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": "2023-03-16T17:38:52.774172Z", "completed_at": "2023-03-16T17:38:52.791631Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.813578Z", "completed_at": "2023-03-16T17:38:52.813610Z"}], "thread_id": "Thread-2", "execution_time": 0.05682802200317383, "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": "2023-03-16T17:38:52.801130Z", "completed_at": "2023-03-16T17:38:52.825850Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.855247Z", "completed_at": "2023-03-16T17:38:52.855265Z"}], "thread_id": "Thread-3", "execution_time": 0.0768899917602539, "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": "2023-03-16T17:38:52.840210Z", "completed_at": "2023-03-16T17:38:52.860883Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.872832Z", "completed_at": "2023-03-16T17:38:52.872847Z"}], "thread_id": "Thread-1", "execution_time": 0.05505990982055664, "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": "2023-03-16T17:38:52.826886Z", "completed_at": "2023-03-16T17:38:52.868113Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.874058Z", "completed_at": "2023-03-16T17:38:52.874071Z"}], "thread_id": "Thread-4", "execution_time": 0.058969974517822266, "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": "2023-03-16T17:38:52.855790Z", "completed_at": "2023-03-16T17:38:52.872450Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.879929Z", "completed_at": "2023-03-16T17:38:52.879956Z"}], "thread_id": "Thread-2", "execution_time": 0.04741811752319336, "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": "2023-03-16T17:38:52.882972Z", "completed_at": "2023-03-16T17:38:52.905268Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.929857Z", "completed_at": "2023-03-16T17:38:52.929882Z"}], "thread_id": "Thread-3", "execution_time": 0.06792497634887695, "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": "2023-03-16T17:38:52.908116Z", "completed_at": "2023-03-16T17:38:52.943146Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.951277Z", "completed_at": "2023-03-16T17:38:52.951325Z"}], "thread_id": "Thread-1", "execution_time": 0.0532379150390625, "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": "2023-03-16T17:38:52.918797Z", "completed_at": "2023-03-16T17:38:52.945718Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.953133Z", "completed_at": "2023-03-16T17:38:52.953148Z"}], "thread_id": "Thread-4", "execution_time": 0.06703901290893555, "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": "2023-03-16T17:38:52.930744Z", "completed_at": "2023-03-16T17:38:52.948317Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.966460Z", "completed_at": "2023-03-16T17:38:52.966492Z"}], "thread_id": "Thread-2", "execution_time": 0.06604290008544922, "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": "2023-03-16T17:38:52.954708Z", "completed_at": "2023-03-16T17:38:52.976753Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:52.993181Z", "completed_at": "2023-03-16T17:38:52.993199Z"}], "thread_id": "Thread-3", "execution_time": 0.07268285751342773, "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": "2023-03-16T17:38:52.982280Z", "completed_at": "2023-03-16T17:38:53.020406Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.024734Z", "completed_at": "2023-03-16T17:38:53.024754Z"}], "thread_id": "Thread-1", "execution_time": 0.053140878677368164, "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": "2023-03-16T17:38:53.007382Z", "completed_at": "2023-03-16T17:38:53.023998Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.042217Z", "completed_at": "2023-03-16T17:38:53.042242Z"}], "thread_id": "Thread-2", "execution_time": 0.06869769096374512, "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": "2023-03-16T17:38:52.993547Z", "completed_at": "2023-03-16T17:38:53.024351Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.045385Z", "completed_at": "2023-03-16T17:38:53.045422Z"}], "thread_id": "Thread-4", "execution_time": 0.0735480785369873, "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": "2023-03-16T17:38:53.029744Z", "completed_at": "2023-03-16T17:38:53.057409Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.072212Z", "completed_at": "2023-03-16T17:38:53.072230Z"}], "thread_id": "Thread-3", "execution_time": 0.06977725028991699, "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": "2023-03-16T17:38:53.059384Z", "completed_at": "2023-03-16T17:38:53.084794Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.098073Z", "completed_at": "2023-03-16T17:38:53.098134Z"}], "thread_id": "Thread-1", "execution_time": 0.050817012786865234, "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": "2023-03-16T17:38:53.078943Z", "completed_at": "2023-03-16T17:38:53.101845Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.118236Z", "completed_at": "2023-03-16T17:38:53.118335Z"}], "thread_id": "Thread-4", "execution_time": 0.06705999374389648, "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": "2023-03-16T17:38:53.072792Z", "completed_at": "2023-03-16T17:38:53.103821Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.124875Z", "completed_at": "2023-03-16T17:38:53.124891Z"}], "thread_id": "Thread-2", "execution_time": 0.0709230899810791, "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": "2023-03-16T17:38:53.106807Z", "completed_at": "2023-03-16T17:38:53.138551Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.152374Z", "completed_at": "2023-03-16T17:38:53.152396Z"}], "thread_id": "Thread-3", "execution_time": 0.0656590461730957, "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": "2023-03-16T17:38:53.132253Z", "completed_at": "2023-03-16T17:38:53.152875Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.179717Z", "completed_at": "2023-03-16T17:38:53.179773Z"}], "thread_id": "Thread-1", "execution_time": 0.05945181846618652, "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": "2023-03-16T17:38:53.153698Z", "completed_at": "2023-03-16T17:38:53.181027Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.187113Z", "completed_at": "2023-03-16T17:38:53.187135Z"}], "thread_id": "Thread-4", "execution_time": 0.05840301513671875, "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": "2023-03-16T17:38:53.167092Z", "completed_at": "2023-03-16T17:38:53.185038Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.204654Z", "completed_at": "2023-03-16T17:38:53.204672Z"}], "thread_id": "Thread-2", "execution_time": 0.05801224708557129, "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": "2023-03-16T17:38:53.188205Z", "completed_at": "2023-03-16T17:38:53.216817Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.227545Z", "completed_at": "2023-03-16T17:38:53.227580Z"}], "thread_id": "Thread-3", "execution_time": 0.05953407287597656, "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": "2023-03-16T17:38:53.211693Z", "completed_at": "2023-03-16T17:38:53.233714Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.255874Z", "completed_at": "2023-03-16T17:38:53.255915Z"}], "thread_id": "Thread-1", "execution_time": 0.0608370304107666, "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": "2023-03-16T17:38:53.228364Z", "completed_at": "2023-03-16T17:38:53.258616Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.273368Z", "completed_at": "2023-03-16T17:38:53.273397Z"}], "thread_id": "Thread-4", "execution_time": 0.05425572395324707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.242153Z", "completed_at": "2023-03-16T17:38:53.259178Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.274096Z", "completed_at": "2023-03-16T17:38:53.274131Z"}], "thread_id": "Thread-2", "execution_time": 0.05196809768676758, "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": "2023-03-16T17:38:53.263382Z", "completed_at": "2023-03-16T17:38:53.280116Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.298433Z", "completed_at": "2023-03-16T17:38:53.298489Z"}], "thread_id": "Thread-3", "execution_time": 0.05559802055358887, "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": "2023-03-16T17:38:53.283113Z", "completed_at": "2023-03-16T17:38:53.306550Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.325614Z", "completed_at": "2023-03-16T17:38:53.325637Z"}], "thread_id": "Thread-1", "execution_time": 0.05504202842712402, "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": "2023-03-16T17:38:53.300934Z", "completed_at": "2023-03-16T17:38:53.326046Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.333687Z", "completed_at": "2023-03-16T17:38:53.333705Z"}], "thread_id": "Thread-4", "execution_time": 0.05684828758239746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.314124Z", "completed_at": "2023-03-16T17:38:53.327689Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.347346Z", "completed_at": "2023-03-16T17:38:53.347370Z"}], "thread_id": "Thread-2", "execution_time": 0.05637502670288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.334149Z", "completed_at": "2023-03-16T17:38:53.375360Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.399923Z", "completed_at": "2023-03-16T17:38:53.399949Z"}], "thread_id": "Thread-3", "execution_time": 0.07582521438598633, "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": "2023-03-16T17:38:53.357800Z", "completed_at": "2023-03-16T17:38:53.391713Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.403035Z", "completed_at": "2023-03-16T17:38:53.403054Z"}], "thread_id": "Thread-1", "execution_time": 0.059229135513305664, "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": "2023-03-16T17:38:53.376329Z", "completed_at": "2023-03-16T17:38:53.401337Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.408472Z", "completed_at": "2023-03-16T17:38:53.408532Z"}], "thread_id": "Thread-4", "execution_time": 0.04400491714477539, "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": "2023-03-16T17:38:53.386327Z", "completed_at": "2023-03-16T17:38:53.404375Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.414685Z", "completed_at": "2023-03-16T17:38:53.414702Z"}], "thread_id": "Thread-2", "execution_time": 0.04544520378112793, "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": "2023-03-16T17:38:53.418767Z", "completed_at": "2023-03-16T17:38:53.458168Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.482296Z", "completed_at": "2023-03-16T17:38:53.482316Z"}], "thread_id": "Thread-3", "execution_time": 0.07418513298034668, "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": "2023-03-16T17:38:53.439421Z", "completed_at": "2023-03-16T17:38:53.472112Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.484697Z", "completed_at": "2023-03-16T17:38:53.484712Z"}], "thread_id": "Thread-1", "execution_time": 0.07187485694885254, "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": "2023-03-16T17:38:53.458651Z", "completed_at": "2023-03-16T17:38:53.483289Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.488161Z", "completed_at": "2023-03-16T17:38:53.488178Z"}], "thread_id": "Thread-4", "execution_time": 0.05704498291015625, "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": "2023-03-16T17:38:53.472517Z", "completed_at": "2023-03-16T17:38:53.485473Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.493243Z", "completed_at": "2023-03-16T17:38:53.493282Z"}], "thread_id": "Thread-2", "execution_time": 0.04314708709716797, "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": "2023-03-16T17:38:53.501285Z", "completed_at": "2023-03-16T17:38:53.540720Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.555460Z", "completed_at": "2023-03-16T17:38:53.555479Z"}], "thread_id": "Thread-3", "execution_time": 0.06871414184570312, "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": "2023-03-16T17:38:53.513115Z", "completed_at": "2023-03-16T17:38:53.541274Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.556127Z", "completed_at": "2023-03-16T17:38:53.556154Z"}], "thread_id": "Thread-1", "execution_time": 0.06322002410888672, "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": "2023-03-16T17:38:53.529053Z", "completed_at": "2023-03-16T17:38:53.555099Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.559560Z", "completed_at": "2023-03-16T17:38:53.559575Z"}], "thread_id": "Thread-4", "execution_time": 0.05225801467895508, "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": "2023-03-16T17:38:53.541736Z", "completed_at": "2023-03-16T17:38:53.564189Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.570546Z", "completed_at": "2023-03-16T17:38:53.570570Z"}], "thread_id": "Thread-2", "execution_time": 0.06398725509643555, "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": "2023-03-16T17:38:53.571031Z", "completed_at": "2023-03-16T17:38:53.602038Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.605813Z", "completed_at": "2023-03-16T17:38:53.605835Z"}], "thread_id": "Thread-3", "execution_time": 0.05055403709411621, "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": "2023-03-16T17:38:53.580595Z", "completed_at": "2023-03-16T17:38:53.602964Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.606217Z", "completed_at": "2023-03-16T17:38:53.606246Z"}], "thread_id": "Thread-1", "execution_time": 0.05034995079040527, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.593130Z", "completed_at": "2023-03-16T17:38:53.605498Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.616533Z", "completed_at": "2023-03-16T17:38:53.616545Z"}], "thread_id": "Thread-4", "execution_time": 0.04883885383605957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.606680Z", "completed_at": "2023-03-16T17:38:53.619742Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.625768Z", "completed_at": "2023-03-16T17:38:53.625794Z"}], "thread_id": "Thread-2", "execution_time": 0.04383492469787598, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.626196Z", "completed_at": "2023-03-16T17:38:53.656622Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.661174Z", "completed_at": "2023-03-16T17:38:53.661194Z"}], "thread_id": "Thread-3", "execution_time": 0.05127215385437012, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.634068Z", "completed_at": "2023-03-16T17:38:53.660373Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.672531Z", "completed_at": "2023-03-16T17:38:53.672544Z"}], "thread_id": "Thread-1", "execution_time": 0.05519390106201172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.648396Z", "completed_at": "2023-03-16T17:38:53.661475Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.673911Z", "completed_at": "2023-03-16T17:38:53.673949Z"}], "thread_id": "Thread-4", "execution_time": 0.05371212959289551, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.662182Z", "completed_at": "2023-03-16T17:38:53.676880Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.683137Z", "completed_at": "2023-03-16T17:38:53.683172Z"}], "thread_id": "Thread-2", "execution_time": 0.03777027130126953, "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": "2023-03-16T17:38:53.683589Z", "completed_at": "2023-03-16T17:38:53.708835Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.727141Z", "completed_at": "2023-03-16T17:38:53.727162Z"}], "thread_id": "Thread-3", "execution_time": 0.05777478218078613, "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": "2023-03-16T17:38:53.699039Z", "completed_at": "2023-03-16T17:38:53.733784Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.739510Z", "completed_at": "2023-03-16T17:38:53.739527Z"}], "thread_id": "Thread-1", "execution_time": 0.05810093879699707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.710657Z", "completed_at": "2023-03-16T17:38:53.741599Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.749251Z", "completed_at": "2023-03-16T17:38:53.749276Z"}], "thread_id": "Thread-4", "execution_time": 0.05829906463623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.727738Z", "completed_at": "2023-03-16T17:38:53.750129Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.773792Z", "completed_at": "2023-03-16T17:38:53.773837Z"}], "thread_id": "Thread-2", "execution_time": 0.05402088165283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.752832Z", "completed_at": "2023-03-16T17:38:53.774893Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.782407Z", "completed_at": "2023-03-16T17:38:53.782468Z"}], "thread_id": "Thread-3", "execution_time": 0.053568124771118164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.763523Z", "completed_at": "2023-03-16T17:38:53.778222Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.798605Z", "completed_at": "2023-03-16T17:38:53.798729Z"}], "thread_id": "Thread-1", "execution_time": 0.053971052169799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.783426Z", "completed_at": "2023-03-16T17:38:53.809759Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.823209Z", "completed_at": "2023-03-16T17:38:53.823239Z"}], "thread_id": "Thread-4", "execution_time": 0.056610107421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.804118Z", "completed_at": "2023-03-16T17:38:53.824488Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.853058Z", "completed_at": "2023-03-16T17:38:53.853079Z"}], "thread_id": "Thread-2", "execution_time": 0.06713604927062988, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.825244Z", "completed_at": "2023-03-16T17:38:53.854978Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.870843Z", "completed_at": "2023-03-16T17:38:53.870870Z"}], "thread_id": "Thread-3", "execution_time": 0.05578017234802246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:53.838620Z", "completed_at": "2023-03-16T17:38:53.873174Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.879203Z", "completed_at": "2023-03-16T17:38:53.879249Z"}], "thread_id": "Thread-1", "execution_time": 0.07371091842651367, "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": "2023-03-16T17:38:53.859915Z", "completed_at": "2023-03-16T17:38:53.877692Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.898032Z", "completed_at": "2023-03-16T17:38:53.898060Z"}], "thread_id": "Thread-4", "execution_time": 0.05748724937438965, "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": "2023-03-16T17:38:53.880003Z", "completed_at": "2023-03-16T17:38:53.899436Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.930747Z", "completed_at": "2023-03-16T17:38:53.930770Z"}], "thread_id": "Thread-2", "execution_time": 0.07339692115783691, "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": "2023-03-16T17:38:53.899740Z", "completed_at": "2023-03-16T17:38:53.932940Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.978097Z", "completed_at": "2023-03-16T17:38:53.978128Z"}], "thread_id": "Thread-3", "execution_time": 0.08950471878051758, "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": "2023-03-16T17:38:53.934118Z", "completed_at": "2023-03-16T17:38:53.980257Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:53.998727Z", "completed_at": "2023-03-16T17:38:53.998795Z"}], "thread_id": "Thread-1", "execution_time": 0.07608580589294434, "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": "2023-03-16T17:38:53.963313Z", "completed_at": "2023-03-16T17:38:53.982508Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.000998Z", "completed_at": "2023-03-16T17:38:54.001016Z"}], "thread_id": "Thread-4", "execution_time": 0.07257604598999023, "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": "2023-03-16T17:38:53.984634Z", "completed_at": "2023-03-16T17:38:54.004978Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.019773Z", "completed_at": "2023-03-16T17:38:54.019795Z"}], "thread_id": "Thread-2", "execution_time": 0.04361605644226074, "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": "2023-03-16T17:38:54.006509Z", "completed_at": "2023-03-16T17:38:54.021461Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.057462Z", "completed_at": "2023-03-16T17:38:54.057506Z"}], "thread_id": "Thread-3", "execution_time": 0.06112480163574219, "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": "2023-03-16T17:38:54.023349Z", "completed_at": "2023-03-16T17:38:54.060020Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.241357Z", "completed_at": "2023-03-16T17:38:54.241383Z"}], "thread_id": "Thread-1", "execution_time": 0.22859811782836914, "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": "2023-03-16T17:38:54.037101Z", "completed_at": "2023-03-16T17:38:54.259069Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.292279Z", "completed_at": "2023-03-16T17:38:54.292317Z"}], "thread_id": "Thread-4", "execution_time": 0.2770650386810303, "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": "2023-03-16T17:38:54.065593Z", "completed_at": "2023-03-16T17:38:54.291494Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.307884Z", "completed_at": "2023-03-16T17:38:54.307907Z"}], "thread_id": "Thread-2", "execution_time": 0.253950834274292, "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": "2023-03-16T17:38:54.275924Z", "completed_at": "2023-03-16T17:38:54.302003Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.315374Z", "completed_at": "2023-03-16T17:38:54.315408Z"}], "thread_id": "Thread-3", "execution_time": 0.0766439437866211, "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": "2023-03-16T17:38:54.296684Z", "completed_at": "2023-03-16T17:38:54.317941Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.338346Z", "completed_at": "2023-03-16T17:38:54.338406Z"}], "thread_id": "Thread-1", "execution_time": 0.07181692123413086, "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": "2023-03-16T17:38:54.322753Z", "completed_at": "2023-03-16T17:38:54.360416Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.378472Z", "completed_at": "2023-03-16T17:38:54.378498Z"}], "thread_id": "Thread-4", "execution_time": 0.06686878204345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.342097Z", "completed_at": "2023-03-16T17:38:54.377983Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.394656Z", "completed_at": "2023-03-16T17:38:54.394717Z"}], "thread_id": "Thread-2", "execution_time": 0.07955193519592285, "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": "2023-03-16T17:38:54.362624Z", "completed_at": "2023-03-16T17:38:54.381743Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.402437Z", "completed_at": "2023-03-16T17:38:54.402453Z"}], "thread_id": "Thread-3", "execution_time": 0.06737494468688965, "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": "2023-03-16T17:38:54.382307Z", "completed_at": "2023-03-16T17:38:54.405669Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.422929Z", "completed_at": "2023-03-16T17:38:54.423048Z"}], "thread_id": "Thread-1", "execution_time": 0.0631721019744873, "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": "2023-03-16T17:38:54.409526Z", "completed_at": "2023-03-16T17:38:54.426738Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.456085Z", "completed_at": "2023-03-16T17:38:54.456104Z"}], "thread_id": "Thread-4", "execution_time": 0.05832791328430176, "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": "2023-03-16T17:38:54.427610Z", "completed_at": "2023-03-16T17:38:54.456475Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.463117Z", "completed_at": "2023-03-16T17:38:54.463139Z"}], "thread_id": "Thread-2", "execution_time": 0.06827521324157715, "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": "2023-03-16T17:38:54.446884Z", "completed_at": "2023-03-16T17:38:54.462126Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.478039Z", "completed_at": "2023-03-16T17:38:54.478061Z"}], "thread_id": "Thread-3", "execution_time": 0.06828904151916504, "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": "2023-03-16T17:38:54.463563Z", "completed_at": "2023-03-16T17:38:54.486453Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.500426Z", "completed_at": "2023-03-16T17:38:54.500487Z"}], "thread_id": "Thread-1", "execution_time": 0.05659985542297363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.479940Z", "completed_at": "2023-03-16T17:38:54.502178Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.521601Z", "completed_at": "2023-03-16T17:38:54.521622Z"}], "thread_id": "Thread-4", "execution_time": 0.057914018630981445, "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": "2023-03-16T17:38:54.502508Z", "completed_at": "2023-03-16T17:38:54.525591Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.530815Z", "completed_at": "2023-03-16T17:38:54.530827Z"}], "thread_id": "Thread-2", "execution_time": 0.04496502876281738, "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": "2023-03-16T17:38:54.515557Z", "completed_at": "2023-03-16T17:38:54.529980Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.541599Z", "completed_at": "2023-03-16T17:38:54.541620Z"}], "thread_id": "Thread-3", "execution_time": 0.05089306831359863, "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": "2023-03-16T17:38:54.531135Z", "completed_at": "2023-03-16T17:38:54.542066Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.555382Z", "completed_at": "2023-03-16T17:38:54.555400Z"}], "thread_id": "Thread-1", "execution_time": 0.03277087211608887, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.544548Z", "completed_at": "2023-03-16T17:38:54.557598Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.570647Z", "completed_at": "2023-03-16T17:38:54.570660Z"}], "thread_id": "Thread-4", "execution_time": 0.03517413139343262, "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": "2023-03-16T17:38:54.559467Z", "completed_at": "2023-03-16T17:38:54.564828Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.571699Z", "completed_at": "2023-03-16T17:38:54.571710Z"}], "thread_id": "Thread-2", "execution_time": 0.021575927734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.my_new_project.ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.567292Z", "completed_at": "2023-03-16T17:38:54.570316Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.575309Z", "completed_at": "2023-03-16T17:38:54.575332Z"}], "thread_id": "Thread-3", "execution_time": 0.025701045989990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.my_new_project.ad_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.576961Z", "completed_at": "2023-03-16T17:38:54.580495Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.585843Z", "completed_at": "2023-03-16T17:38:54.585856Z"}], "thread_id": "Thread-1", "execution_time": 0.024250030517578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.my_new_project.adgroup_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.588045Z", "completed_at": "2023-03-16T17:38:54.593006Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.608553Z", "completed_at": "2023-03-16T17:38:54.608568Z"}], "thread_id": "Thread-4", "execution_time": 0.02792501449584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.my_new_project.adgroup_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.596452Z", "completed_at": "2023-03-16T17:38:54.600731Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.609629Z", "completed_at": "2023-03-16T17:38:54.609643Z"}], "thread_id": "Thread-2", "execution_time": 0.02802896499633789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.my_new_project.advertiser"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.603191Z", "completed_at": "2023-03-16T17:38:54.608090Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.612216Z", "completed_at": "2023-03-16T17:38:54.612227Z"}], "thread_id": "Thread-3", "execution_time": 0.03148984909057617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.my_new_project.campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.613368Z", "completed_at": "2023-03-16T17:38:54.616599Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:54.621728Z", "completed_at": "2023-03-16T17:38:54.621741Z"}], "thread_id": "Thread-1", "execution_time": 0.022134065628051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.my_new_project.campaign_report_hourly"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.623078Z", "completed_at": "2023-03-16T17:38:55.260035Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:55.260636Z", "completed_at": "2023-03-16T17:38:55.260650Z"}], "thread_id": "Thread-4", "execution_time": 0.6425321102142334, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.631508Z", "completed_at": "2023-03-16T17:38:55.282412Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:55.283010Z", "completed_at": "2023-03-16T17:38:55.283022Z"}], "thread_id": "Thread-2", "execution_time": 0.6638021469116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.642712Z", "completed_at": "2023-03-16T17:38:55.325050Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:55.325677Z", "completed_at": "2023-03-16T17:38:55.325691Z"}], "thread_id": "Thread-3", "execution_time": 0.703977108001709, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__ad_group_level_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:54.656028Z", "completed_at": "2023-03-16T17:38:55.346696Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:55.347419Z", "completed_at": "2023-03-16T17:38:55.347433Z"}], "thread_id": "Thread-1", "execution_time": 0.6953949928283691, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__advertised_product_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:55.263547Z", "completed_at": "2023-03-16T17:38:55.674832Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:55.675497Z", "completed_at": "2023-03-16T17:38:55.675511Z"}], "thread_id": "Thread-4", "execution_time": 0.41360902786254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:55.286255Z", "completed_at": "2023-03-16T17:38:55.913554Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:55.914278Z", "completed_at": "2023-03-16T17:38:55.914288Z"}], "thread_id": "Thread-2", "execution_time": 0.6298911571502686, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__campaign_level_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:55.350658Z", "completed_at": "2023-03-16T17:38:56.006657Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:56.007685Z", "completed_at": "2023-03-16T17:38:56.007702Z"}], "thread_id": "Thread-1", "execution_time": 0.6589438915252686, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__product_ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:55.328912Z", "completed_at": "2023-03-16T17:38:56.026827Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:56.027637Z", "completed_at": "2023-03-16T17:38:56.027649Z"}], "thread_id": "Thread-3", "execution_time": 0.7004296779632568, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__portfolio_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:55.678854Z", "completed_at": "2023-03-16T17:38:56.348687Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:56.349302Z", "completed_at": "2023-03-16T17:38:56.349320Z"}], "thread_id": "Thread-4", "execution_time": 0.6723110675811768, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__profile"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:56.029553Z", "completed_at": "2023-03-16T17:38:56.661704Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:56.662575Z", "completed_at": "2023-03-16T17:38:56.662591Z"}], "thread_id": "Thread-3", "execution_time": 0.6346049308776855, "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": "2023-03-16T17:38:55.917309Z", "completed_at": "2023-03-16T17:38:56.665606Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:56.674495Z", "completed_at": "2023-03-16T17:38:56.674520Z"}], "thread_id": "Thread-2", "execution_time": 0.7728071212768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__search_term_ad_keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:56.010741Z", "completed_at": "2023-03-16T17:38:56.692660Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:56.697597Z", "completed_at": "2023-03-16T17:38:56.697615Z"}], "thread_id": "Thread-1", "execution_time": 0.6981749534606934, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads_source.stg_amazon_ads__targeting_keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:56.352484Z", "completed_at": "2023-03-16T17:38:56.996517Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:56.997423Z", "completed_at": "2023-03-16T17:38:56.997439Z"}], "thread_id": "Thread-4", "execution_time": 0.6470026969909668, "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": "2023-03-16T17:38:56.713302Z", "completed_at": "2023-03-16T17:38:57.364916Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:57.365542Z", "completed_at": "2023-03-16T17:38:57.365554Z"}], "thread_id": "Thread-1", "execution_time": 0.6549949645996094, "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": "2023-03-16T17:38:56.680234Z", "completed_at": "2023-03-16T17:38:57.367084Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:57.370616Z", "completed_at": "2023-03-16T17:38:57.370633Z"}], "thread_id": "Thread-3", "execution_time": 0.7050991058349609, "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": "2023-03-16T17:38:56.697995Z", "completed_at": "2023-03-16T17:38:57.404248Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:57.405076Z", "completed_at": "2023-03-16T17:38:57.405092Z"}], "thread_id": "Thread-2", "execution_time": 0.7114109992980957, "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": "2023-03-16T17:38:57.001659Z", "completed_at": "2023-03-16T17:38:57.669738Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:57.670409Z", "completed_at": "2023-03-16T17:38:57.670422Z"}], "thread_id": "Thread-4", "execution_time": 0.6711232662200928, "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": "2023-03-16T17:38:57.373406Z", "completed_at": "2023-03-16T17:38:57.795295Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:57.795942Z", "completed_at": "2023-03-16T17:38:57.795956Z"}], "thread_id": "Thread-1", "execution_time": 0.42887306213378906, "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": "2023-03-16T17:38:57.383403Z", "completed_at": "2023-03-16T17:38:58.083489Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:58.084203Z", "completed_at": "2023-03-16T17:38:58.084216Z"}], "thread_id": "Thread-3", "execution_time": 0.7037968635559082, "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": "2023-03-16T17:38:57.408725Z", "completed_at": "2023-03-16T17:38:58.085413Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:58.087877Z", "completed_at": "2023-03-16T17:38:58.087892Z"}], "thread_id": "Thread-2", "execution_time": 0.6815621852874756, "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": "2023-03-16T17:38:57.673798Z", "completed_at": "2023-03-16T17:38:58.291008Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:58.291620Z", "completed_at": "2023-03-16T17:38:58.291633Z"}], "thread_id": "Thread-4", "execution_time": 0.6196300983428955, "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": "2023-03-16T17:38:57.799395Z", "completed_at": "2023-03-16T17:38:58.409839Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:58.410451Z", "completed_at": "2023-03-16T17:38:58.410465Z"}], "thread_id": "Thread-1", "execution_time": 0.6135282516479492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:58.294623Z", "completed_at": "2023-03-16T17:38:58.689496Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:58.690160Z", "completed_at": "2023-03-16T17:38:58.690174Z"}], "thread_id": "Thread-4", "execution_time": 0.39783596992492676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__basic_ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:58.102308Z", "completed_at": "2023-03-16T17:38:58.841618Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:58.843189Z", "completed_at": "2023-03-16T17:38:58.843211Z"}], "thread_id": "Thread-2", "execution_time": 0.7440948486328125, "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": "2023-03-16T17:38:58.089407Z", "completed_at": "2023-03-16T17:38:58.843600Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:58.847421Z", "completed_at": "2023-03-16T17:38:58.847436Z"}], "thread_id": "Thread-3", "execution_time": 0.762721061706543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:58.413833Z", "completed_at": "2023-03-16T17:38:59.013348Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:59.013974Z", "completed_at": "2023-03-16T17:38:59.013987Z"}], "thread_id": "Thread-1", "execution_time": 0.6022021770477295, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:58.853132Z", "completed_at": "2023-03-16T17:38:59.569958Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:59.577998Z", "completed_at": "2023-03-16T17:38:59.578058Z"}], "thread_id": "Thread-2", "execution_time": 0.7317459583282471, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:58.693465Z", "completed_at": "2023-03-16T17:38:59.577083Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:59.580345Z", "completed_at": "2023-03-16T17:38:59.580360Z"}], "thread_id": "Thread-4", "execution_time": 0.8903810977935791, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads_source.stg_facebook_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:58.864940Z", "completed_at": "2023-03-16T17:38:59.580057Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:59.584050Z", "completed_at": "2023-03-16T17:38:59.584064Z"}], "thread_id": "Thread-3", "execution_time": 0.7254352569580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__account_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:59.017069Z", "completed_at": "2023-03-16T17:38:59.665674Z"}, {"name": "execute", "started_at": "2023-03-16T17:38:59.666462Z", "completed_at": "2023-03-16T17:38:59.666479Z"}], "thread_id": "Thread-1", "execution_time": 0.6517832279205322, "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": "2023-03-16T17:38:59.600166Z", "completed_at": "2023-03-16T17:39:00.248875Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:00.249404Z", "completed_at": "2023-03-16T17:39:00.249416Z"}], "thread_id": "Thread-4", "execution_time": 0.6628329753875732, "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": "2023-03-16T17:38:59.610570Z", "completed_at": "2023-03-16T17:39:00.289250Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:00.289776Z", "completed_at": "2023-03-16T17:39:00.289788Z"}], "thread_id": "Thread-3", "execution_time": 0.6909539699554443, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:59.669402Z", "completed_at": "2023-03-16T17:39:00.310890Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:00.311478Z", "completed_at": "2023-03-16T17:39:00.311492Z"}], "thread_id": "Thread-1", "execution_time": 0.6437959671020508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__ad_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:38:59.587824Z", "completed_at": "2023-03-16T17:39:00.342984Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:00.343630Z", "completed_at": "2023-03-16T17:39:00.343645Z"}], "thread_id": "Thread-2", "execution_time": 0.7609760761260986, "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": "2023-03-16T17:39:00.314139Z", "completed_at": "2023-03-16T17:39:00.950262Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:00.950927Z", "completed_at": "2023-03-16T17:39:00.950942Z"}], "thread_id": "Thread-1", "execution_time": 0.6385819911956787, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__keyword_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:00.292636Z", "completed_at": "2023-03-16T17:39:00.979573Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:00.980428Z", "completed_at": "2023-03-16T17:39:00.980446Z"}], "thread_id": "Thread-3", "execution_time": 0.6898839473724365, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_stats"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:00.252351Z", "completed_at": "2023-03-16T17:39:00.981766Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:00.984969Z", "completed_at": "2023-03-16T17:39:00.984988Z"}], "thread_id": "Thread-4", "execution_time": 0.734868049621582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads_source.stg_google_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:00.346509Z", "completed_at": "2023-03-16T17:39:01.036377Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:01.037028Z", "completed_at": "2023-03-16T17:39:01.037041Z"}], "thread_id": "Thread-2", "execution_time": 0.692227840423584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:00.999624Z", "completed_at": "2023-03-16T17:39:01.614908Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:01.615677Z", "completed_at": "2023-03-16T17:39:01.615691Z"}], "thread_id": "Thread-4", "execution_time": 0.625748872756958, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:00.986600Z", "completed_at": "2023-03-16T17:39:01.615954Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:01.618270Z", "completed_at": "2023-03-16T17:39:01.618283Z"}], "thread_id": "Thread-3", "execution_time": 0.6369409561157227, "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": "2023-03-16T17:39:00.955263Z", "completed_at": "2023-03-16T17:39:01.657247Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:01.668195Z", "completed_at": "2023-03-16T17:39:01.668214Z"}], "thread_id": "Thread-1", "execution_time": 0.7170062065124512, "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": "2023-03-16T17:39:01.040419Z", "completed_at": "2023-03-16T17:39:01.667248Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:01.670471Z", "completed_at": "2023-03-16T17:39:01.670484Z"}], "thread_id": "Thread-2", "execution_time": 0.633674144744873, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:01.684430Z", "completed_at": "2023-03-16T17:39:02.290047Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:02.290691Z", "completed_at": "2023-03-16T17:39:02.290706Z"}], "thread_id": "Thread-2", "execution_time": 0.6161320209503174, "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": "2023-03-16T17:39:01.657938Z", "completed_at": "2023-03-16T17:39:02.332564Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:02.333526Z", "completed_at": "2023-03-16T17:39:02.333542Z"}], "thread_id": "Thread-3", "execution_time": 0.6977031230926514, "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": "2023-03-16T17:39:01.675859Z", "completed_at": "2023-03-16T17:39:02.349647Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:02.350821Z", "completed_at": "2023-03-16T17:39:02.350838Z"}], "thread_id": "Thread-1", "execution_time": 0.6786839962005615, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:01.623245Z", "completed_at": "2023-03-16T17:39:02.384430Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:02.385313Z", "completed_at": "2023-03-16T17:39:02.385330Z"}], "thread_id": "Thread-4", "execution_time": 0.7673299312591553, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin_source.stg_linkedin_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:02.354379Z", "completed_at": "2023-03-16T17:39:02.915068Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:02.915684Z", "completed_at": "2023-03-16T17:39:02.915696Z"}], "thread_id": "Thread-1", "execution_time": 0.5635321140289307, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:02.340846Z", "completed_at": "2023-03-16T17:39:02.938678Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:02.939289Z", "completed_at": "2023-03-16T17:39:02.939302Z"}], "thread_id": "Thread-3", "execution_time": 0.6035678386688232, "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": "2023-03-16T17:39:02.293666Z", "completed_at": "2023-03-16T17:39:02.964654Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:02.965329Z", "completed_at": "2023-03-16T17:39:02.965351Z"}], "thread_id": "Thread-2", "execution_time": 0.6733288764953613, "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": "2023-03-16T17:39:02.388527Z", "completed_at": "2023-03-16T17:39:03.114791Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:03.115420Z", "completed_at": "2023-03-16T17:39:03.115433Z"}], "thread_id": "Thread-4", "execution_time": 0.7287611961364746, "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": "2023-03-16T17:39:02.968585Z", "completed_at": "2023-03-16T17:39:03.397559Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:03.398191Z", "completed_at": "2023-03-16T17:39:03.398203Z"}], "thread_id": "Thread-2", "execution_time": 0.43143796920776367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:02.942887Z", "completed_at": "2023-03-16T17:39:03.606935Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:03.607573Z", "completed_at": "2023-03-16T17:39:03.607586Z"}], "thread_id": "Thread-3", "execution_time": 0.666693925857544, "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": "2023-03-16T17:39:02.918812Z", "completed_at": "2023-03-16T17:39:03.609061Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:03.611534Z", "completed_at": "2023-03-16T17:39:03.611547Z"}], "thread_id": "Thread-1", "execution_time": 0.7029340267181396, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads_source.stg_microsoft_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:03.118248Z", "completed_at": "2023-03-16T17:39:03.748987Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:03.749627Z", "completed_at": "2023-03-16T17:39:03.749642Z"}], "thread_id": "Thread-4", "execution_time": 0.6334452629089355, "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": "2023-03-16T17:39:03.401435Z", "completed_at": "2023-03-16T17:39:04.026283Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:04.026906Z", "completed_at": "2023-03-16T17:39:04.026919Z"}], "thread_id": "Thread-2", "execution_time": 0.627439022064209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:03.624795Z", "completed_at": "2023-03-16T17:39:04.234965Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:04.235637Z", "completed_at": "2023-03-16T17:39:04.235656Z"}], "thread_id": "Thread-1", "execution_time": 0.6130280494689941, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:03.611835Z", "completed_at": "2023-03-16T17:39:04.265722Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:04.266366Z", "completed_at": "2023-03-16T17:39:04.266379Z"}], "thread_id": "Thread-3", "execution_time": 0.6571071147918701, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:03.752938Z", "completed_at": "2023-03-16T17:39:04.470837Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:04.471486Z", "completed_at": "2023-03-16T17:39:04.471501Z"}], "thread_id": "Thread-4", "execution_time": 0.7205820083618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:04.238544Z", "completed_at": "2023-03-16T17:39:04.662310Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:04.662943Z", "completed_at": "2023-03-16T17:39:04.662957Z"}], "thread_id": "Thread-1", "execution_time": 0.42642688751220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:04.029256Z", "completed_at": "2023-03-16T17:39:04.698273Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:04.698907Z", "completed_at": "2023-03-16T17:39:04.698922Z"}], "thread_id": "Thread-2", "execution_time": 0.6713159084320068, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:04.269664Z", "completed_at": "2023-03-16T17:39:04.947190Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:04.947855Z", "completed_at": "2023-03-16T17:39:04.947871Z"}], "thread_id": "Thread-3", "execution_time": 0.6801879405975342, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:04.474636Z", "completed_at": "2023-03-16T17:39:05.117707Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:05.118327Z", "completed_at": "2023-03-16T17:39:05.118341Z"}], "thread_id": "Thread-4", "execution_time": 0.6454179286956787, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:04.665993Z", "completed_at": "2023-03-16T17:39:05.427482Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:05.428143Z", "completed_at": "2023-03-16T17:39:05.428156Z"}], "thread_id": "Thread-1", "execution_time": 0.7639679908752441, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:04.702451Z", "completed_at": "2023-03-16T17:39:05.594400Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:05.594948Z", "completed_at": "2023-03-16T17:39:05.594960Z"}], "thread_id": "Thread-2", "execution_time": 0.8942139148712158, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest_source.stg_pinterest_ads__pin_promotion_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:04.951236Z", "completed_at": "2023-03-16T17:39:05.617257Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:05.617817Z", "completed_at": "2023-03-16T17:39:05.617829Z"}], "thread_id": "Thread-3", "execution_time": 0.6683859825134277, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:05.121374Z", "completed_at": "2023-03-16T17:39:05.738391Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:05.738981Z", "completed_at": "2023-03-16T17:39:05.738993Z"}], "thread_id": "Thread-4", "execution_time": 0.6192350387573242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:05.431389Z", "completed_at": "2023-03-16T17:39:06.056012Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:06.056548Z", "completed_at": "2023-03-16T17:39:06.056559Z"}], "thread_id": "Thread-1", "execution_time": 0.6270360946655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:05.597692Z", "completed_at": "2023-03-16T17:39:06.200516Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:06.201215Z", "completed_at": "2023-03-16T17:39:06.201228Z"}], "thread_id": "Thread-2", "execution_time": 0.6052777767181396, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_group"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:05.620504Z", "completed_at": "2023-03-16T17:39:06.268292Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:06.269024Z", "completed_at": "2023-03-16T17:39:06.269043Z"}], "thread_id": "Thread-3", "execution_time": 0.6502189636230469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:05.741831Z", "completed_at": "2023-03-16T17:39:06.407729Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:06.408486Z", "completed_at": "2023-03-16T17:39:06.408503Z"}], "thread_id": "Thread-4", "execution_time": 0.6683728694915771, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:06.059091Z", "completed_at": "2023-03-16T17:39:06.722719Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:06.723336Z", "completed_at": "2023-03-16T17:39:06.723350Z"}], "thread_id": "Thread-1", "execution_time": 0.6657311916351318, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:06.272063Z", "completed_at": "2023-03-16T17:39:06.960942Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:06.961554Z", "completed_at": "2023-03-16T17:39:06.961567Z"}], "thread_id": "Thread-3", "execution_time": 0.6911478042602539, "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": "2023-03-16T17:39:06.204141Z", "completed_at": "2023-03-16T17:39:07.045734Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:07.046384Z", "completed_at": "2023-03-16T17:39:07.046397Z"}], "thread_id": "Thread-2", "execution_time": 0.8440051078796387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads_source.stg_reddit_ads__campaign"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:06.429549Z", "completed_at": "2023-03-16T17:39:07.093464Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:07.094094Z", "completed_at": "2023-03-16T17:39:07.094108Z"}], "thread_id": "Thread-4", "execution_time": 0.666269063949585, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:06.725687Z", "completed_at": "2023-03-16T17:39:07.375379Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:07.376067Z", "completed_at": "2023-03-16T17:39:07.376081Z"}], "thread_id": "Thread-1", "execution_time": 0.6520538330078125, "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": "2023-03-16T17:39:06.964473Z", "completed_at": "2023-03-16T17:39:07.601687Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:07.602325Z", "completed_at": "2023-03-16T17:39:07.602339Z"}], "thread_id": "Thread-3", "execution_time": 0.639481782913208, "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": "2023-03-16T17:39:07.049816Z", "completed_at": "2023-03-16T17:39:07.720568Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:07.721180Z", "completed_at": "2023-03-16T17:39:07.721194Z"}], "thread_id": "Thread-2", "execution_time": 0.6732926368713379, "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": "2023-03-16T17:39:07.097376Z", "completed_at": "2023-03-16T17:39:07.792889Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:07.793548Z", "completed_at": "2023-03-16T17:39:07.793562Z"}], "thread_id": "Thread-4", "execution_time": 0.6982331275939941, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:07.605410Z", "completed_at": "2023-03-16T17:39:07.966463Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:07.967103Z", "completed_at": "2023-03-16T17:39:07.967117Z"}], "thread_id": "Thread-3", "execution_time": 0.3635220527648926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads_source.stg_snapchat_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:07.379147Z", "completed_at": "2023-03-16T17:39:08.033141Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:08.033864Z", "completed_at": "2023-03-16T17:39:08.033878Z"}], "thread_id": "Thread-1", "execution_time": 0.6563560962677002, "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": "2023-03-16T17:39:07.724157Z", "completed_at": "2023-03-16T17:39:08.339232Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:08.340021Z", "completed_at": "2023-03-16T17:39:08.340035Z"}], "thread_id": "Thread-2", "execution_time": 0.6174819469451904, "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": "2023-03-16T17:39:07.796650Z", "completed_at": "2023-03-16T17:39:08.434625Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:08.435598Z", "completed_at": "2023-03-16T17:39:08.435615Z"}], "thread_id": "Thread-4", "execution_time": 0.6409966945648193, "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": "2023-03-16T17:39:07.970267Z", "completed_at": "2023-03-16T17:39:08.584335Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:08.585022Z", "completed_at": "2023-03-16T17:39:08.585038Z"}], "thread_id": "Thread-3", "execution_time": 0.6166951656341553, "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": "2023-03-16T17:39:08.037566Z", "completed_at": "2023-03-16T17:39:08.648380Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:08.649197Z", "completed_at": "2023-03-16T17:39:08.649214Z"}], "thread_id": "Thread-1", "execution_time": 0.6141221523284912, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__ad_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:08.342391Z", "completed_at": "2023-03-16T17:39:08.947125Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:08.947822Z", "completed_at": "2023-03-16T17:39:08.947835Z"}], "thread_id": "Thread-2", "execution_time": 0.6071009635925293, "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": "2023-03-16T17:39:08.438948Z", "completed_at": "2023-03-16T17:39:09.122968Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:09.123679Z", "completed_at": "2023-03-16T17:39:09.123692Z"}], "thread_id": "Thread-4", "execution_time": 0.6864409446716309, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__advertiser"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:08.652425Z", "completed_at": "2023-03-16T17:39:09.202670Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:09.203296Z", "completed_at": "2023-03-16T17:39:09.203309Z"}], "thread_id": "Thread-1", "execution_time": 0.5526571273803711, "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": "2023-03-16T17:39:08.587460Z", "completed_at": "2023-03-16T17:39:09.222831Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:09.223667Z", "completed_at": "2023-03-16T17:39:09.223686Z"}], "thread_id": "Thread-3", "execution_time": 0.6378600597381592, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads_source.stg_tiktok_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:08.951214Z", "completed_at": "2023-03-16T17:39:09.624545Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:09.625260Z", "completed_at": "2023-03-16T17:39:09.625274Z"}], "thread_id": "Thread-2", "execution_time": 0.6759920120239258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__account_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:09.126780Z", "completed_at": "2023-03-16T17:39:09.739830Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:09.740495Z", "completed_at": "2023-03-16T17:39:09.740508Z"}], "thread_id": "Thread-4", "execution_time": 0.6155600547790527, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:09.206610Z", "completed_at": "2023-03-16T17:39:09.923390Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:09.924489Z", "completed_at": "2023-03-16T17:39:09.924506Z"}], "thread_id": "Thread-1", "execution_time": 0.7203772068023682, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:09.226795Z", "completed_at": "2023-03-16T17:39:09.926867Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:09.930322Z", "completed_at": "2023-03-16T17:39:09.930347Z"}], "thread_id": "Thread-3", "execution_time": 0.714439868927002, "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": "2023-03-16T17:39:09.946037Z", "completed_at": "2023-03-16T17:39:10.316600Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.317219Z", "completed_at": "2023-03-16T17:39:10.317232Z"}], "thread_id": "Thread-3", "execution_time": 0.37370896339416504, "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": "2023-03-16T17:39:09.628999Z", "completed_at": "2023-03-16T17:39:10.372747Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.373563Z", "completed_at": "2023-03-16T17:39:10.373575Z"}], "thread_id": "Thread-2", "execution_time": 0.747473955154419, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__line_item_keywords_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:09.930942Z", "completed_at": "2023-03-16T17:39:10.374676Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.377221Z", "completed_at": "2023-03-16T17:39:10.377235Z"}], "thread_id": "Thread-1", "execution_time": 0.4505481719970703, "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": "2023-03-16T17:39:10.392873Z", "completed_at": "2023-03-16T17:39:10.405198Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.405811Z", "completed_at": "2023-03-16T17:39:10.405824Z"}], "thread_id": "Thread-1", "execution_time": 0.015858888626098633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_history_ad_group_id__last_updated_date.9d2ad05ee9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.408542Z", "completed_at": "2023-03-16T17:39:10.423137Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.423757Z", "completed_at": "2023-03-16T17:39:10.423770Z"}], "thread_id": "Thread-1", "execution_time": 0.0167849063873291, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_history_ad_group_id.6b524b990b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.425994Z", "completed_at": "2023-03-16T17:39:10.434572Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.435126Z", "completed_at": "2023-03-16T17:39:10.435137Z"}], "thread_id": "Thread-1", "execution_time": 0.010580778121948242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_history_campaign_id__last_updated_date.3a70468382"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.437180Z", "completed_at": "2023-03-16T17:39:10.444536Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.445126Z", "completed_at": "2023-03-16T17:39:10.445138Z"}], "thread_id": "Thread-1", "execution_time": 0.009305953979492188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_history_campaign_id.49e395897c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.447720Z", "completed_at": "2023-03-16T17:39:10.459145Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.459740Z", "completed_at": "2023-03-16T17:39:10.459754Z"}], "thread_id": "Thread-1", "execution_time": 0.013561010360717773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__ad_group_level_report_ad_group_id__date_day.f014d2ad94"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.462379Z", "completed_at": "2023-03-16T17:39:10.469212Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.469773Z", "completed_at": "2023-03-16T17:39:10.469784Z"}], "thread_id": "Thread-1", "execution_time": 0.008997201919555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__ad_group_level_report_ad_group_id.ee4ef641c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.472474Z", "completed_at": "2023-03-16T17:39:10.480626Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.481129Z", "completed_at": "2023-03-16T17:39:10.481141Z"}], "thread_id": "Thread-1", "execution_time": 0.01014089584350586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__advertised_product_report_ad_id__date_day.866a51d99d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.483599Z", "completed_at": "2023-03-16T17:39:10.490563Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.491107Z", "completed_at": "2023-03-16T17:39:10.491118Z"}], "thread_id": "Thread-1", "execution_time": 0.00890493392944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__advertised_product_report_ad_id.307c6bc8d4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.493435Z", "completed_at": "2023-03-16T17:39:10.502465Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.503057Z", "completed_at": "2023-03-16T17:39:10.503069Z"}], "thread_id": "Thread-1", "execution_time": 0.010975837707519531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__keyword_history_keyword_id__last_updated_date.fcd76c3197"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.505899Z", "completed_at": "2023-03-16T17:39:10.512111Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.512691Z", "completed_at": "2023-03-16T17:39:10.512702Z"}], "thread_id": "Thread-1", "execution_time": 0.008233070373535156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__keyword_history_keyword_id.f21f6add6e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.515007Z", "completed_at": "2023-03-16T17:39:10.522779Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.523351Z", "completed_at": "2023-03-16T17:39:10.523363Z"}], "thread_id": "Thread-1", "execution_time": 0.01001429557800293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__campaign_level_report_campaign_id__date_day.8e5392b313"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.525338Z", "completed_at": "2023-03-16T17:39:10.532089Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.532618Z", "completed_at": "2023-03-16T17:39:10.532629Z"}], "thread_id": "Thread-1", "execution_time": 0.008613109588623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__campaign_level_report_campaign_id.1efec68194"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.535330Z", "completed_at": "2023-03-16T17:39:10.544436Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.544967Z", "completed_at": "2023-03-16T17:39:10.544979Z"}], "thread_id": "Thread-1", "execution_time": 0.011533021926879883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__product_ad_history_ad_id__last_updated_date.b0106257b4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.547680Z", "completed_at": "2023-03-16T17:39:10.554047Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.554593Z", "completed_at": "2023-03-16T17:39:10.554604Z"}], "thread_id": "Thread-1", "execution_time": 0.008272886276245117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__product_ad_history_ad_id.8744ab1cd8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.556986Z", "completed_at": "2023-03-16T17:39:10.566380Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.566927Z", "completed_at": "2023-03-16T17:39:10.566939Z"}], "thread_id": "Thread-1", "execution_time": 0.011355876922607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.int_amazon_ads__portfolio_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.569687Z", "completed_at": "2023-03-16T17:39:10.578643Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.579205Z", "completed_at": "2023-03-16T17:39:10.579216Z"}], "thread_id": "Thread-1", "execution_time": 0.011456966400146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__portfolio_history_portfolio_id__last_updated_date.72b1221050"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.581550Z", "completed_at": "2023-03-16T17:39:10.589294Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.589967Z", "completed_at": "2023-03-16T17:39:10.589979Z"}], "thread_id": "Thread-1", "execution_time": 0.010107040405273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__portfolio_history_portfolio_id.e22bb2ba02"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.592237Z", "completed_at": "2023-03-16T17:39:10.602837Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.603431Z", "completed_at": "2023-03-16T17:39:10.603444Z"}], "thread_id": "Thread-1", "execution_time": 0.012837886810302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.606240Z", "completed_at": "2023-03-16T17:39:10.625321Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.625920Z", "completed_at": "2023-03-16T17:39:10.625932Z"}], "thread_id": "Thread-1", "execution_time": 0.021584749221801758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__portfolio_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:09.743430Z", "completed_at": "2023-03-16T17:39:10.628714Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.636957Z", "completed_at": "2023-03-16T17:39:10.636974Z"}], "thread_id": "Thread-4", "execution_time": 0.8953769207000732, "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": "2023-03-16T17:39:10.628996Z", "completed_at": "2023-03-16T17:39:10.638821Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.641013Z", "completed_at": "2023-03-16T17:39:10.641025Z"}], "thread_id": "Thread-1", "execution_time": 0.02507805824279785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__profile_profile_id.bd192c102b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.641306Z", "completed_at": "2023-03-16T17:39:10.654724Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.663116Z", "completed_at": "2023-03-16T17:39:10.663133Z"}], "thread_id": "Thread-4", "execution_time": 0.024516820907592773, "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": "2023-03-16T17:39:10.656066Z", "completed_at": "2023-03-16T17:39:10.665965Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.673654Z", "completed_at": "2023-03-16T17:39:10.673671Z"}], "thread_id": "Thread-1", "execution_time": 0.02066206932067871, "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": "2023-03-16T17:39:10.666856Z", "completed_at": "2023-03-16T17:39:10.675746Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.677253Z", "completed_at": "2023-03-16T17:39:10.677263Z"}], "thread_id": "Thread-4", "execution_time": 0.02257990837097168, "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": "2023-03-16T17:39:10.677516Z", "completed_at": "2023-03-16T17:39:10.689770Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.697801Z", "completed_at": "2023-03-16T17:39:10.697815Z"}], "thread_id": "Thread-1", "execution_time": 0.022533178329467773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__search_term_ad_keyword_report_search_term__keyword_id__date_day.fb8ba99693"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.690060Z", "completed_at": "2023-03-16T17:39:10.699331Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.701030Z", "completed_at": "2023-03-16T17:39:10.701041Z"}], "thread_id": "Thread-4", "execution_time": 0.020580768585205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__search_term_ad_keyword_report_search_term.ef04af3b06"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.701268Z", "completed_at": "2023-03-16T17:39:10.711357Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.718388Z", "completed_at": "2023-03-16T17:39:10.718403Z"}], "thread_id": "Thread-1", "execution_time": 0.019241809844970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.dbt_utils_unique_combination_of_columns_stg_amazon_ads__targeting_keyword_report_keyword_id__date_day.cc516f7bcb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.712171Z", "completed_at": "2023-03-16T17:39:10.720711Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.727231Z", "completed_at": "2023-03-16T17:39:10.727247Z"}], "thread_id": "Thread-4", "execution_time": 0.017024993896484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads_source.not_null_stg_amazon_ads__targeting_keyword_report_keyword_id.101a3299d7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.721505Z", "completed_at": "2023-03-16T17:39:10.741586Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.742539Z", "completed_at": "2023-03-16T17:39:10.742582Z"}], "thread_id": "Thread-1", "execution_time": 0.02348184585571289, "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": "2023-03-16T17:39:10.732359Z", "completed_at": "2023-03-16T17:39:10.742920Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.745087Z", "completed_at": "2023-03-16T17:39:10.745097Z"}], "thread_id": "Thread-4", "execution_time": 0.015423059463500977, "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": "2023-03-16T17:39:10.747578Z", "completed_at": "2023-03-16T17:39:10.764499Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.765449Z", "completed_at": "2023-03-16T17:39:10.765466Z"}], "thread_id": "Thread-1", "execution_time": 0.020839929580688477, "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": "2023-03-16T17:39:10.756028Z", "completed_at": "2023-03-16T17:39:10.766684Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.768755Z", "completed_at": "2023-03-16T17:39:10.768768Z"}], "thread_id": "Thread-4", "execution_time": 0.014871835708618164, "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": "2023-03-16T17:39:10.770118Z", "completed_at": "2023-03-16T17:39:10.779658Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.791092Z", "completed_at": "2023-03-16T17:39:10.791114Z"}], "thread_id": "Thread-1", "execution_time": 0.023865699768066406, "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": "2023-03-16T17:39:10.779960Z", "completed_at": "2023-03-16T17:39:10.799713Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.804379Z", "completed_at": "2023-03-16T17:39:10.804394Z"}], "thread_id": "Thread-4", "execution_time": 0.02686619758605957, "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": "2023-03-16T17:39:10.794350Z", "completed_at": "2023-03-16T17:39:10.805779Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.807838Z", "completed_at": "2023-03-16T17:39:10.807850Z"}], "thread_id": "Thread-1", "execution_time": 0.015407323837280273, "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": "2023-03-16T17:39:10.809236Z", "completed_at": "2023-03-16T17:39:10.823967Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.826803Z", "completed_at": "2023-03-16T17:39:10.826818Z"}], "thread_id": "Thread-4", "execution_time": 0.02027106285095215, "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": "2023-03-16T17:39:10.818589Z", "completed_at": "2023-03-16T17:39:10.834743Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.841953Z", "completed_at": "2023-03-16T17:39:10.841970Z"}], "thread_id": "Thread-1", "execution_time": 0.025270938873291016, "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": "2023-03-16T17:39:10.829589Z", "completed_at": "2023-03-16T17:39:10.852801Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.853494Z", "completed_at": "2023-03-16T17:39:10.853507Z"}], "thread_id": "Thread-4", "execution_time": 0.026203155517578125, "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": "2023-03-16T17:39:10.844766Z", "completed_at": "2023-03-16T17:39:10.853758Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.855868Z", "completed_at": "2023-03-16T17:39:10.855878Z"}], "thread_id": "Thread-1", "execution_time": 0.01345205307006836, "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": "2023-03-16T17:39:10.858707Z", "completed_at": "2023-03-16T17:39:10.872977Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.876460Z", "completed_at": "2023-03-16T17:39:10.876478Z"}], "thread_id": "Thread-4", "execution_time": 0.021111011505126953, "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": "2023-03-16T17:39:10.867703Z", "completed_at": "2023-03-16T17:39:10.877665Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.879819Z", "completed_at": "2023-03-16T17:39:10.879835Z"}], "thread_id": "Thread-1", "execution_time": 0.014528989791870117, "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": "2023-03-16T17:39:10.881412Z", "completed_at": "2023-03-16T17:39:10.900440Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.902181Z", "completed_at": "2023-03-16T17:39:10.902201Z"}], "thread_id": "Thread-4", "execution_time": 0.02376389503479004, "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": "2023-03-16T17:39:10.894079Z", "completed_at": "2023-03-16T17:39:10.905063Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.914414Z", "completed_at": "2023-03-16T17:39:10.914430Z"}], "thread_id": "Thread-1", "execution_time": 0.025151968002319336, "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": "2023-03-16T17:39:10.905337Z", "completed_at": "2023-03-16T17:39:10.918679Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.921287Z", "completed_at": "2023-03-16T17:39:10.921301Z"}], "thread_id": "Thread-4", "execution_time": 0.01891779899597168, "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": "2023-03-16T17:39:10.320557Z", "completed_at": "2023-03-16T17:39:10.921021Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.932707Z", "completed_at": "2023-03-16T17:39:10.932725Z"}], "thread_id": "Thread-3", "execution_time": 0.6152329444885254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:10.923060Z", "completed_at": "2023-03-16T17:39:10.936648Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.949354Z", "completed_at": "2023-03-16T17:39:10.949374Z"}], "thread_id": "Thread-1", "execution_time": 0.03537702560424805, "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": "2023-03-16T17:39:10.939827Z", "completed_at": "2023-03-16T17:39:10.959951Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.971204Z", "completed_at": "2023-03-16T17:39:10.971220Z"}], "thread_id": "Thread-4", "execution_time": 0.03732705116271973, "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": "2023-03-16T17:39:10.949901Z", "completed_at": "2023-03-16T17:39:10.966181Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.973102Z", "completed_at": "2023-03-16T17:39:10.973116Z"}], "thread_id": "Thread-3", "execution_time": 0.03684401512145996, "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": "2023-03-16T17:39:10.961013Z", "completed_at": "2023-03-16T17:39:10.974324Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:10.977643Z", "completed_at": "2023-03-16T17:39:10.977660Z"}], "thread_id": "Thread-1", "execution_time": 0.029700279235839844, "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": "2023-03-16T17:39:10.978751Z", "completed_at": "2023-03-16T17:39:10.996569Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.020444Z", "completed_at": "2023-03-16T17:39:11.020459Z"}], "thread_id": "Thread-4", "execution_time": 0.058255672454833984, "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": "2023-03-16T17:39:10.990670Z", "completed_at": "2023-03-16T17:39:11.020151Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.034682Z", "completed_at": "2023-03-16T17:39:11.034699Z"}], "thread_id": "Thread-3", "execution_time": 0.058686017990112305, "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": "2023-03-16T17:39:10.378609Z", "completed_at": "2023-03-16T17:39:11.034312Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.038121Z", "completed_at": "2023-03-16T17:39:11.038134Z"}], "thread_id": "Thread-2", "execution_time": 0.6637048721313477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads_source.stg_twitter_ads__tweet_url"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.020763Z", "completed_at": "2023-03-16T17:39:11.037849Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.054604Z", "completed_at": "2023-03-16T17:39:11.054620Z"}], "thread_id": "Thread-1", "execution_time": 0.055310964584350586, "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": "2023-03-16T17:39:11.041262Z", "completed_at": "2023-03-16T17:39:11.069129Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.082683Z", "completed_at": "2023-03-16T17:39:11.082709Z"}], "thread_id": "Thread-4", "execution_time": 0.05066108703613281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.057688Z", "completed_at": "2023-03-16T17:39:11.076829Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.099245Z", "completed_at": "2023-03-16T17:39:11.099258Z"}], "thread_id": "Thread-3", "execution_time": 0.060791015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.071750Z", "completed_at": "2023-03-16T17:39:11.100453Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.104873Z", "completed_at": "2023-03-16T17:39:11.104886Z"}], "thread_id": "Thread-2", "execution_time": 0.05788111686706543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.088439Z", "completed_at": "2023-03-16T17:39:11.102619Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.114225Z", "completed_at": "2023-03-16T17:39:11.114243Z"}], "thread_id": "Thread-1", "execution_time": 0.04507708549499512, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.apple_search_ads.apple_search_ads__organization_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.105900Z", "completed_at": "2023-03-16T17:39:11.117515Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.128609Z", "completed_at": "2023-03-16T17:39:11.128626Z"}], "thread_id": "Thread-4", "execution_time": 0.038469791412353516, "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": "2023-03-16T17:39:11.117817Z", "completed_at": "2023-03-16T17:39:11.128900Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.154425Z", "completed_at": "2023-03-16T17:39:11.154441Z"}], "thread_id": "Thread-3", "execution_time": 0.05095505714416504, "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": "2023-03-16T17:39:11.129434Z", "completed_at": "2023-03-16T17:39:11.156528Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.167316Z", "completed_at": "2023-03-16T17:39:11.167335Z"}], "thread_id": "Thread-2", "execution_time": 0.042387962341308594, "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": "2023-03-16T17:39:11.144263Z", "completed_at": "2023-03-16T17:39:11.157770Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.168193Z", "completed_at": "2023-03-16T17:39:11.168207Z"}], "thread_id": "Thread-1", "execution_time": 0.05149078369140625, "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": "2023-03-16T17:39:11.158744Z", "completed_at": "2023-03-16T17:39:11.175699Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.182831Z", "completed_at": "2023-03-16T17:39:11.182849Z"}], "thread_id": "Thread-4", "execution_time": 0.030548095703125, "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": "2023-03-16T17:39:11.169380Z", "completed_at": "2023-03-16T17:39:11.183997Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.205106Z", "completed_at": "2023-03-16T17:39:11.205124Z"}], "thread_id": "Thread-3", "execution_time": 0.040667057037353516, "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": "2023-03-16T17:39:11.187268Z", "completed_at": "2023-03-16T17:39:11.207382Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.217609Z", "completed_at": "2023-03-16T17:39:11.217628Z"}], "thread_id": "Thread-2", "execution_time": 0.0377202033996582, "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": "2023-03-16T17:39:11.197602Z", "completed_at": "2023-03-16T17:39:11.208369Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.218584Z", "completed_at": "2023-03-16T17:39:11.218603Z"}], "thread_id": "Thread-1", "execution_time": 0.04840803146362305, "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": "2023-03-16T17:39:11.209335Z", "completed_at": "2023-03-16T17:39:11.220086Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.236083Z", "completed_at": "2023-03-16T17:39:11.236098Z"}], "thread_id": "Thread-4", "execution_time": 0.03208208084106445, "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": "2023-03-16T17:39:11.220362Z", "completed_at": "2023-03-16T17:39:11.238174Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.257940Z", "completed_at": "2023-03-16T17:39:11.257956Z"}], "thread_id": "Thread-3", "execution_time": 0.043028831481933594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.238765Z", "completed_at": "2023-03-16T17:39:11.258279Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.269317Z", "completed_at": "2023-03-16T17:39:11.269332Z"}], "thread_id": "Thread-2", "execution_time": 0.035865068435668945, "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": "2023-03-16T17:39:11.249830Z", "completed_at": "2023-03-16T17:39:11.259814Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.270466Z", "completed_at": "2023-03-16T17:39:11.270479Z"}], "thread_id": "Thread-1", "execution_time": 0.03608393669128418, "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": "2023-03-16T17:39:11.260377Z", "completed_at": "2023-03-16T17:39:11.271588Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.286151Z", "completed_at": "2023-03-16T17:39:11.286167Z"}], "thread_id": "Thread-4", "execution_time": 0.03065323829650879, "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": "2023-03-16T17:39:11.273961Z", "completed_at": "2023-03-16T17:39:11.288167Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.304481Z", "completed_at": "2023-03-16T17:39:11.304498Z"}], "thread_id": "Thread-3", "execution_time": 0.0361940860748291, "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": "2023-03-16T17:39:11.288770Z", "completed_at": "2023-03-16T17:39:11.304844Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.317150Z", "completed_at": "2023-03-16T17:39:11.317167Z"}], "thread_id": "Thread-2", "execution_time": 0.03354525566101074, "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": "2023-03-16T17:39:11.296723Z", "completed_at": "2023-03-16T17:39:11.306328Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.318283Z", "completed_at": "2023-03-16T17:39:11.318294Z"}], "thread_id": "Thread-1", "execution_time": 0.03375577926635742, "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": "2023-03-16T17:39:11.306918Z", "completed_at": "2023-03-16T17:39:11.319394Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.330027Z", "completed_at": "2023-03-16T17:39:11.330041Z"}], "thread_id": "Thread-4", "execution_time": 0.028371810913085938, "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": "2023-03-16T17:39:11.321614Z", "completed_at": "2023-03-16T17:39:11.332533Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.352153Z", "completed_at": "2023-03-16T17:39:11.352170Z"}], "thread_id": "Thread-3", "execution_time": 0.03613996505737305, "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": "2023-03-16T17:39:11.333067Z", "completed_at": "2023-03-16T17:39:11.352590Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.378840Z", "completed_at": "2023-03-16T17:39:11.378857Z"}], "thread_id": "Thread-2", "execution_time": 0.051492929458618164, "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": "2023-03-16T17:39:11.343593Z", "completed_at": "2023-03-16T17:39:11.354132Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.380121Z", "completed_at": "2023-03-16T17:39:11.380134Z"}], "thread_id": "Thread-1", "execution_time": 0.052091121673583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_tags"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.354723Z", "completed_at": "2023-03-16T17:39:11.381766Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.401407Z", "completed_at": "2023-03-16T17:39:11.401428Z"}], "thread_id": "Thread-4", "execution_time": 0.0523838996887207, "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": "2023-03-16T17:39:11.383809Z", "completed_at": "2023-03-16T17:39:11.410132Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.424710Z", "completed_at": "2023-03-16T17:39:11.424729Z"}], "thread_id": "Thread-3", "execution_time": 0.04678201675415039, "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": "2023-03-16T17:39:11.404795Z", "completed_at": "2023-03-16T17:39:11.425037Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.436388Z", "completed_at": "2023-03-16T17:39:11.436407Z"}], "thread_id": "Thread-2", "execution_time": 0.0388941764831543, "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": "2023-03-16T17:39:11.413656Z", "completed_at": "2023-03-16T17:39:11.426924Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.439141Z", "completed_at": "2023-03-16T17:39:11.439154Z"}], "thread_id": "Thread-1", "execution_time": 0.03969407081604004, "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": "2023-03-16T17:39:11.427205Z", "completed_at": "2023-03-16T17:39:11.439463Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.460254Z", "completed_at": "2023-03-16T17:39:11.460270Z"}], "thread_id": "Thread-4", "execution_time": 0.0383610725402832, "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": "2023-03-16T17:39:11.443049Z", "completed_at": "2023-03-16T17:39:11.468374Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.493793Z", "completed_at": "2023-03-16T17:39:11.493810Z"}], "thread_id": "Thread-3", "execution_time": 0.05827808380126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.462609Z", "completed_at": "2023-03-16T17:39:11.494213Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.506527Z", "completed_at": "2023-03-16T17:39:11.506541Z"}], "thread_id": "Thread-2", "execution_time": 0.04938864707946777, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__ad_set_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.479314Z", "completed_at": "2023-03-16T17:39:11.496074Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.507512Z", "completed_at": "2023-03-16T17:39:11.507523Z"}], "thread_id": "Thread-1", "execution_time": 0.04836297035217285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.496690Z", "completed_at": "2023-03-16T17:39:11.508520Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.519653Z", "completed_at": "2023-03-16T17:39:11.519664Z"}], "thread_id": "Thread-4", "execution_time": 0.028104305267333984, "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": "2023-03-16T17:39:11.510799Z", "completed_at": "2023-03-16T17:39:11.521514Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.539709Z", "completed_at": "2023-03-16T17:39:11.539746Z"}], "thread_id": "Thread-3", "execution_time": 0.03460884094238281, "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": "2023-03-16T17:39:11.521982Z", "completed_at": "2023-03-16T17:39:11.542025Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.555528Z", "completed_at": "2023-03-16T17:39:11.555545Z"}], "thread_id": "Thread-2", "execution_time": 0.03814387321472168, "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": "2023-03-16T17:39:11.528476Z", "completed_at": "2023-03-16T17:39:11.555185Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.566883Z", "completed_at": "2023-03-16T17:39:11.566900Z"}], "thread_id": "Thread-1", "execution_time": 0.049124956130981445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.542408Z", "completed_at": "2023-03-16T17:39:11.557718Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.570648Z", "completed_at": "2023-03-16T17:39:11.570661Z"}], "thread_id": "Thread-4", "execution_time": 0.034594058990478516, "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": "2023-03-16T17:39:11.558006Z", "completed_at": "2023-03-16T17:39:11.571479Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.583439Z", "completed_at": "2023-03-16T17:39:11.583458Z"}], "thread_id": "Thread-3", "execution_time": 0.04179525375366211, "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": "2023-03-16T17:39:11.574527Z", "completed_at": "2023-03-16T17:39:11.596871Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.608126Z", "completed_at": "2023-03-16T17:39:11.608144Z"}], "thread_id": "Thread-2", "execution_time": 0.0400693416595459, "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": "2023-03-16T17:39:11.584954Z", "completed_at": "2023-03-16T17:39:11.607819Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.622113Z", "completed_at": "2023-03-16T17:39:11.622133Z"}], "thread_id": "Thread-1", "execution_time": 0.05087113380432129, "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": "2023-03-16T17:39:11.599081Z", "completed_at": "2023-03-16T17:39:11.610204Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.625569Z", "completed_at": "2023-03-16T17:39:11.625581Z"}], "thread_id": "Thread-4", "execution_time": 0.04346299171447754, "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": "2023-03-16T17:39:11.610510Z", "completed_at": "2023-03-16T17:39:11.626226Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.638471Z", "completed_at": "2023-03-16T17:39:11.638518Z"}], "thread_id": "Thread-3", "execution_time": 0.040910959243774414, "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": "2023-03-16T17:39:11.628788Z", "completed_at": "2023-03-16T17:39:11.648447Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.661795Z", "completed_at": "2023-03-16T17:39:11.661811Z"}], "thread_id": "Thread-2", "execution_time": 0.03848910331726074, "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": "2023-03-16T17:39:11.640044Z", "completed_at": "2023-03-16T17:39:11.656298Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.663886Z", "completed_at": "2023-03-16T17:39:11.663901Z"}], "thread_id": "Thread-1", "execution_time": 0.0493011474609375, "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": "2023-03-16T17:39:11.650684Z", "completed_at": "2023-03-16T17:39:11.669748Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.679475Z", "completed_at": "2023-03-16T17:39:11.679493Z"}], "thread_id": "Thread-4", "execution_time": 0.04253792762756348, "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": "2023-03-16T17:39:11.664264Z", "completed_at": "2023-03-16T17:39:11.680211Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.691210Z", "completed_at": "2023-03-16T17:39:11.691224Z"}], "thread_id": "Thread-3", "execution_time": 0.047454833984375, "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": "2023-03-16T17:39:11.682213Z", "completed_at": "2023-03-16T17:39:11.691553Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.705758Z", "completed_at": "2023-03-16T17:39:11.705771Z"}], "thread_id": "Thread-2", "execution_time": 0.036767005920410156, "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": "2023-03-16T17:39:11.691795Z", "completed_at": "2023-03-16T17:39:11.712330Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.717003Z", "completed_at": "2023-03-16T17:39:11.717016Z"}], "thread_id": "Thread-1", "execution_time": 0.04516768455505371, "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": "2023-03-16T17:39:11.706397Z", "completed_at": "2023-03-16T17:39:11.716748Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.726375Z", "completed_at": "2023-03-16T17:39:11.726387Z"}], "thread_id": "Thread-4", "execution_time": 0.03409600257873535, "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": "2023-03-16T17:39:11.717289Z", "completed_at": "2023-03-16T17:39:11.732552Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.740353Z", "completed_at": "2023-03-16T17:39:11.740369Z"}], "thread_id": "Thread-3", "execution_time": 0.035642147064208984, "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": "2023-03-16T17:39:11.727058Z", "completed_at": "2023-03-16T17:39:11.741389Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.759911Z", "completed_at": "2023-03-16T17:39:11.759930Z"}], "thread_id": "Thread-2", "execution_time": 0.03809618949890137, "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": "2023-03-16T17:39:11.741663Z", "completed_at": "2023-03-16T17:39:11.760281Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.763864Z", "completed_at": "2023-03-16T17:39:11.763881Z"}], "thread_id": "Thread-1", "execution_time": 0.036270856857299805, "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": "2023-03-16T17:39:11.751152Z", "completed_at": "2023-03-16T17:39:11.763269Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.775039Z", "completed_at": "2023-03-16T17:39:11.775051Z"}], "thread_id": "Thread-4", "execution_time": 0.04356193542480469, "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": "2023-03-16T17:39:11.764228Z", "completed_at": "2023-03-16T17:39:11.775733Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.787242Z", "completed_at": "2023-03-16T17:39:11.787258Z"}], "thread_id": "Thread-3", "execution_time": 0.03906726837158203, "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": "2023-03-16T17:39:11.776308Z", "completed_at": "2023-03-16T17:39:11.788330Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.809670Z", "completed_at": "2023-03-16T17:39:11.809687Z"}], "thread_id": "Thread-2", "execution_time": 0.03861713409423828, "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": "2023-03-16T17:39:11.788794Z", "completed_at": "2023-03-16T17:39:11.810748Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.822325Z", "completed_at": "2023-03-16T17:39:11.822343Z"}], "thread_id": "Thread-1", "execution_time": 0.03942298889160156, "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": "2023-03-16T17:39:11.802287Z", "completed_at": "2023-03-16T17:39:11.812589Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.824632Z", "completed_at": "2023-03-16T17:39:11.824644Z"}], "thread_id": "Thread-4", "execution_time": 0.03899717330932617, "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": "2023-03-16T17:39:11.813594Z", "completed_at": "2023-03-16T17:39:11.825229Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.841975Z", "completed_at": "2023-03-16T17:39:11.841991Z"}], "thread_id": "Thread-3", "execution_time": 0.03378701210021973, "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": "2023-03-16T17:39:11.827034Z", "completed_at": "2023-03-16T17:39:11.850632Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.872091Z", "completed_at": "2023-03-16T17:39:11.872133Z"}], "thread_id": "Thread-2", "execution_time": 0.05085587501525879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.844316Z", "completed_at": "2023-03-16T17:39:11.872565Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.890844Z", "completed_at": "2023-03-16T17:39:11.890857Z"}], "thread_id": "Thread-1", "execution_time": 0.05314278602600098, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.860144Z", "completed_at": "2023-03-16T17:39:11.874610Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.894021Z", "completed_at": "2023-03-16T17:39:11.894033Z"}], "thread_id": "Thread-4", "execution_time": 0.05335283279418945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.874904Z", "completed_at": "2023-03-16T17:39:11.894321Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.916134Z", "completed_at": "2023-03-16T17:39:11.916150Z"}], "thread_id": "Thread-3", "execution_time": 0.04690122604370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.897139Z", "completed_at": "2023-03-16T17:39:11.923633Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.938104Z", "completed_at": "2023-03-16T17:39:11.938131Z"}], "thread_id": "Thread-2", "execution_time": 0.04801034927368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.google_ads.google_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:11.918585Z", "completed_at": "2023-03-16T17:39:11.938590Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.952916Z", "completed_at": "2023-03-16T17:39:11.952933Z"}], "thread_id": "Thread-1", "execution_time": 0.04161524772644043, "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": "2023-03-16T17:39:11.929026Z", "completed_at": "2023-03-16T17:39:11.941101Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.955289Z", "completed_at": "2023-03-16T17:39:11.955299Z"}], "thread_id": "Thread-4", "execution_time": 0.0404820442199707, "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": "2023-03-16T17:39:11.941436Z", "completed_at": "2023-03-16T17:39:11.956784Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.968108Z", "completed_at": "2023-03-16T17:39:11.968124Z"}], "thread_id": "Thread-3", "execution_time": 0.040180206298828125, "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": "2023-03-16T17:39:11.958046Z", "completed_at": "2023-03-16T17:39:11.969139Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:11.984766Z", "completed_at": "2023-03-16T17:39:11.984792Z"}], "thread_id": "Thread-2", "execution_time": 0.03927874565124512, "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": "2023-03-16T17:39:11.969431Z", "completed_at": "2023-03-16T17:39:11.992283Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.005009Z", "completed_at": "2023-03-16T17:39:12.005025Z"}], "thread_id": "Thread-1", "execution_time": 0.04124593734741211, "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": "2023-03-16T17:39:11.979582Z", "completed_at": "2023-03-16T17:39:11.994912Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.007728Z", "completed_at": "2023-03-16T17:39:12.007740Z"}], "thread_id": "Thread-4", "execution_time": 0.048792123794555664, "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": "2023-03-16T17:39:11.995179Z", "completed_at": "2023-03-16T17:39:12.008025Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.019921Z", "completed_at": "2023-03-16T17:39:12.019936Z"}], "thread_id": "Thread-3", "execution_time": 0.03075098991394043, "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": "2023-03-16T17:39:12.009124Z", "completed_at": "2023-03-16T17:39:12.020555Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.033077Z", "completed_at": "2023-03-16T17:39:12.033095Z"}], "thread_id": "Thread-2", "execution_time": 0.04166722297668457, "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": "2023-03-16T17:39:12.022275Z", "completed_at": "2023-03-16T17:39:12.047481Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.215829Z", "completed_at": "2023-03-16T17:39:12.215849Z"}], "thread_id": "Thread-1", "execution_time": 0.19988727569580078, "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": "2023-03-16T17:39:12.033448Z", "completed_at": "2023-03-16T17:39:12.049785Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.218757Z", "completed_at": "2023-03-16T17:39:12.218776Z"}], "thread_id": "Thread-4", "execution_time": 0.21936297416687012, "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": "2023-03-16T17:39:12.226748Z", "completed_at": "2023-03-16T17:39:12.288365Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.299910Z", "completed_at": "2023-03-16T17:39:12.299932Z"}], "thread_id": "Thread-2", "execution_time": 0.0953059196472168, "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": "2023-03-16T17:39:12.050103Z", "completed_at": "2023-03-16T17:39:12.298817Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.310434Z", "completed_at": "2023-03-16T17:39:12.310446Z"}], "thread_id": "Thread-3", "execution_time": 0.266754150390625, "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": "2023-03-16T17:39:12.289759Z", "completed_at": "2023-03-16T17:39:12.310116Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.313854Z", "completed_at": "2023-03-16T17:39:12.313873Z"}], "thread_id": "Thread-1", "execution_time": 0.03829669952392578, "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": "2023-03-16T17:39:12.300764Z", "completed_at": "2023-03-16T17:39:12.314221Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.330124Z", "completed_at": "2023-03-16T17:39:12.330140Z"}], "thread_id": "Thread-4", "execution_time": 0.043347835540771484, "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": "2023-03-16T17:39:12.317856Z", "completed_at": "2023-03-16T17:39:12.355205Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.365049Z", "completed_at": "2023-03-16T17:39:12.365063Z"}], "thread_id": "Thread-2", "execution_time": 0.06251192092895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.332759Z", "completed_at": "2023-03-16T17:39:12.364711Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.376662Z", "completed_at": "2023-03-16T17:39:12.376678Z"}], "thread_id": "Thread-3", "execution_time": 0.06217026710510254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.349946Z", "completed_at": "2023-03-16T17:39:12.371685Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.377968Z", "completed_at": "2023-03-16T17:39:12.377982Z"}], "thread_id": "Thread-1", "execution_time": 0.04958987236022949, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.365359Z", "completed_at": "2023-03-16T17:39:12.378259Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.383611Z", "completed_at": "2023-03-16T17:39:12.383629Z"}], "thread_id": "Thread-4", "execution_time": 0.030982017517089844, "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": "2023-03-16T17:39:12.385447Z", "completed_at": "2023-03-16T17:39:12.401070Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.423618Z", "completed_at": "2023-03-16T17:39:12.423638Z"}], "thread_id": "Thread-2", "execution_time": 0.05217885971069336, "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": "2023-03-16T17:39:12.395933Z", "completed_at": "2023-03-16T17:39:12.423972Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.433846Z", "completed_at": "2023-03-16T17:39:12.433863Z"}], "thread_id": "Thread-3", "execution_time": 0.05218195915222168, "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": "2023-03-16T17:39:12.404970Z", "completed_at": "2023-03-16T17:39:12.432527Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.437020Z", "completed_at": "2023-03-16T17:39:12.437036Z"}], "thread_id": "Thread-1", "execution_time": 0.04583287239074707, "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": "2023-03-16T17:39:12.424245Z", "completed_at": "2023-03-16T17:39:12.434519Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.439726Z", "completed_at": "2023-03-16T17:39:12.439739Z"}], "thread_id": "Thread-4", "execution_time": 0.041580915451049805, "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": "2023-03-16T17:39:12.440028Z", "completed_at": "2023-03-16T17:39:12.465467Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.480346Z", "completed_at": "2023-03-16T17:39:12.480362Z"}], "thread_id": "Thread-2", "execution_time": 0.05583000183105469, "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": "2023-03-16T17:39:12.459534Z", "completed_at": "2023-03-16T17:39:12.480695Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.492853Z", "completed_at": "2023-03-16T17:39:12.492869Z"}], "thread_id": "Thread-3", "execution_time": 0.04391789436340332, "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": "2023-03-16T17:39:12.470184Z", "completed_at": "2023-03-16T17:39:12.492543Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.495974Z", "completed_at": "2023-03-16T17:39:12.495984Z"}], "thread_id": "Thread-1", "execution_time": 0.04786372184753418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.481127Z", "completed_at": "2023-03-16T17:39:12.493107Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.496654Z", "completed_at": "2023-03-16T17:39:12.496667Z"}], "thread_id": "Thread-4", "execution_time": 0.03898024559020996, "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": "2023-03-16T17:39:12.497283Z", "completed_at": "2023-03-16T17:39:12.510426Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.529358Z", "completed_at": "2023-03-16T17:39:12.529375Z"}], "thread_id": "Thread-2", "execution_time": 0.061675071716308594, "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": "2023-03-16T17:39:12.511362Z", "completed_at": "2023-03-16T17:39:12.540144Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.557259Z", "completed_at": "2023-03-16T17:39:12.557275Z"}], "thread_id": "Thread-3", "execution_time": 0.05243396759033203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__creative_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.535001Z", "completed_at": "2023-03-16T17:39:12.557664Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.561459Z", "completed_at": "2023-03-16T17:39:12.561471Z"}], "thread_id": "Thread-4", "execution_time": 0.049816131591796875, "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": "2023-03-16T17:39:12.529743Z", "completed_at": "2023-03-16T17:39:12.558597Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.571289Z", "completed_at": "2023-03-16T17:39:12.571307Z"}], "thread_id": "Thread-1", "execution_time": 0.06302285194396973, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.linkedin.linkedin_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.561780Z", "completed_at": "2023-03-16T17:39:12.575643Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.587516Z", "completed_at": "2023-03-16T17:39:12.587535Z"}], "thread_id": "Thread-2", "execution_time": 0.04589366912841797, "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": "2023-03-16T17:39:12.576467Z", "completed_at": "2023-03-16T17:39:12.587824Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.608396Z", "completed_at": "2023-03-16T17:39:12.608417Z"}], "thread_id": "Thread-3", "execution_time": 0.03868913650512695, "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": "2023-03-16T17:39:12.588125Z", "completed_at": "2023-03-16T17:39:12.609568Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.624285Z", "completed_at": "2023-03-16T17:39:12.624303Z"}], "thread_id": "Thread-4", "execution_time": 0.041468143463134766, "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": "2023-03-16T17:39:12.597313Z", "completed_at": "2023-03-16T17:39:12.610804Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.625384Z", "completed_at": "2023-03-16T17:39:12.625396Z"}], "thread_id": "Thread-1", "execution_time": 0.04191708564758301, "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": "2023-03-16T17:39:12.612779Z", "completed_at": "2023-03-16T17:39:12.627849Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.640215Z", "completed_at": "2023-03-16T17:39:12.640233Z"}], "thread_id": "Thread-2", "execution_time": 0.03301119804382324, "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": "2023-03-16T17:39:12.628893Z", "completed_at": "2023-03-16T17:39:12.640919Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.668076Z", "completed_at": "2023-03-16T17:39:12.668089Z"}], "thread_id": "Thread-3", "execution_time": 0.045881032943725586, "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": "2023-03-16T17:39:12.642386Z", "completed_at": "2023-03-16T17:39:12.668834Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.673203Z", "completed_at": "2023-03-16T17:39:12.673219Z"}], "thread_id": "Thread-4", "execution_time": 0.05391287803649902, "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": "2023-03-16T17:39:12.660096Z", "completed_at": "2023-03-16T17:39:12.671099Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.691701Z", "completed_at": "2023-03-16T17:39:12.691716Z"}], "thread_id": "Thread-1", "execution_time": 0.05414080619812012, "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": "2023-03-16T17:39:12.673519Z", "completed_at": "2023-03-16T17:39:12.699787Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.706377Z", "completed_at": "2023-03-16T17:39:12.706396Z"}], "thread_id": "Thread-2", "execution_time": 0.04752993583679199, "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__budget_association_status.6f2312e762"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.694676Z", "completed_at": "2023-03-16T17:39:12.706722Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.726406Z", "completed_at": "2023-03-16T17:39:12.726424Z"}], "thread_id": "Thread-3", "execution_time": 0.044064998626708984, "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": "2023-03-16T17:39:12.707311Z", "completed_at": "2023-03-16T17:39:12.726882Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.730514Z", "completed_at": "2023-03-16T17:39:12.730526Z"}], "thread_id": "Thread-4", "execution_time": 0.05099201202392578, "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": "2023-03-16T17:39:12.717600Z", "completed_at": "2023-03-16T17:39:12.728654Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.754038Z", "completed_at": "2023-03-16T17:39:12.754053Z"}], "thread_id": "Thread-1", "execution_time": 0.051106929779052734, "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": "2023-03-16T17:39:12.730800Z", "completed_at": "2023-03-16T17:39:12.763272Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.768145Z", "completed_at": "2023-03-16T17:39:12.768160Z"}], "thread_id": "Thread-2", "execution_time": 0.05572199821472168, "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": "2023-03-16T17:39:12.757527Z", "completed_at": "2023-03-16T17:39:12.768749Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.797778Z", "completed_at": "2023-03-16T17:39:12.797793Z"}], "thread_id": "Thread-3", "execution_time": 0.05292177200317383, "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": "2023-03-16T17:39:12.769092Z", "completed_at": "2023-03-16T17:39:12.799133Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.812757Z", "completed_at": "2023-03-16T17:39:12.812771Z"}], "thread_id": "Thread-4", "execution_time": 0.04831528663635254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.783526Z", "completed_at": "2023-03-16T17:39:12.800279Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.813732Z", "completed_at": "2023-03-16T17:39:12.813742Z"}], "thread_id": "Thread-1", "execution_time": 0.0483698844909668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.801291Z", "completed_at": "2023-03-16T17:39:12.814931Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.830769Z", "completed_at": "2023-03-16T17:39:12.830781Z"}], "thread_id": "Thread-2", "execution_time": 0.03409910202026367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.816481Z", "completed_at": "2023-03-16T17:39:12.832932Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.873516Z", "completed_at": "2023-03-16T17:39:12.873534Z"}], "thread_id": "Thread-3", "execution_time": 0.06204581260681152, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.833432Z", "completed_at": "2023-03-16T17:39:12.874378Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.884846Z", "completed_at": "2023-03-16T17:39:12.884861Z"}], "thread_id": "Thread-4", "execution_time": 0.05662894248962402, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.862897Z", "completed_at": "2023-03-16T17:39:12.883410Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.887405Z", "completed_at": "2023-03-16T17:39:12.887418Z"}], "thread_id": "Thread-1", "execution_time": 0.05862998962402344, "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": "2023-03-16T17:39:12.875588Z", "completed_at": "2023-03-16T17:39:12.887138Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.909471Z", "completed_at": "2023-03-16T17:39:12.909489Z"}], "thread_id": "Thread-2", "execution_time": 0.04320788383483887, "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": "2023-03-16T17:39:12.890521Z", "completed_at": "2023-03-16T17:39:12.923851Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.945824Z", "completed_at": "2023-03-16T17:39:12.945839Z"}], "thread_id": "Thread-3", "execution_time": 0.0718541145324707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.microsoft_ads.microsoft_ads__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:12.912685Z", "completed_at": "2023-03-16T17:39:12.945528Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.957976Z", "completed_at": "2023-03-16T17:39:12.957990Z"}], "thread_id": "Thread-4", "execution_time": 0.06361603736877441, "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": "2023-03-16T17:39:12.934234Z", "completed_at": "2023-03-16T17:39:12.956592Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.960827Z", "completed_at": "2023-03-16T17:39:12.960839Z"}], "thread_id": "Thread-1", "execution_time": 0.05167412757873535, "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": "2023-03-16T17:39:12.946264Z", "completed_at": "2023-03-16T17:39:12.959669Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.964470Z", "completed_at": "2023-03-16T17:39:12.964488Z"}], "thread_id": "Thread-2", "execution_time": 0.04180288314819336, "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": "2023-03-16T17:39:12.965984Z", "completed_at": "2023-03-16T17:39:12.987678Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:12.999155Z", "completed_at": "2023-03-16T17:39:12.999169Z"}], "thread_id": "Thread-3", "execution_time": 0.04932808876037598, "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": "2023-03-16T17:39:12.977104Z", "completed_at": "2023-03-16T17:39:12.998873Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.011278Z", "completed_at": "2023-03-16T17:39:13.011290Z"}], "thread_id": "Thread-4", "execution_time": 0.048391103744506836, "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": "2023-03-16T17:39:12.988893Z", "completed_at": "2023-03-16T17:39:13.010922Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.014188Z", "completed_at": "2023-03-16T17:39:13.014197Z"}], "thread_id": "Thread-1", "execution_time": 0.0405120849609375, "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": "2023-03-16T17:39:12.999556Z", "completed_at": "2023-03-16T17:39:13.012565Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.016584Z", "completed_at": "2023-03-16T17:39:13.016597Z"}], "thread_id": "Thread-2", "execution_time": 0.03841423988342285, "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": "2023-03-16T17:39:13.017634Z", "completed_at": "2023-03-16T17:39:13.033995Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.049164Z", "completed_at": "2023-03-16T17:39:13.049178Z"}], "thread_id": "Thread-3", "execution_time": 0.04415702819824219, "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": "2023-03-16T17:39:13.028737Z", "completed_at": "2023-03-16T17:39:13.055915Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.059679Z", "completed_at": "2023-03-16T17:39:13.059707Z"}], "thread_id": "Thread-4", "execution_time": 0.04476118087768555, "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": "2023-03-16T17:39:13.038242Z", "completed_at": "2023-03-16T17:39:13.059313Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.062598Z", "completed_at": "2023-03-16T17:39:13.062609Z"}], "thread_id": "Thread-1", "execution_time": 0.04388999938964844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.049617Z", "completed_at": "2023-03-16T17:39:13.060715Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.070306Z", "completed_at": "2023-03-16T17:39:13.070322Z"}], "thread_id": "Thread-2", "execution_time": 0.03609323501586914, "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": "2023-03-16T17:39:13.063436Z", "completed_at": "2023-03-16T17:39:13.076088Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.098304Z", "completed_at": "2023-03-16T17:39:13.098331Z"}], "thread_id": "Thread-3", "execution_time": 0.048087120056152344, "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": "2023-03-16T17:39:13.076423Z", "completed_at": "2023-03-16T17:39:13.105479Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.110470Z", "completed_at": "2023-03-16T17:39:13.110483Z"}], "thread_id": "Thread-4", "execution_time": 0.04074406623840332, "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": "2023-03-16T17:39:13.086679Z", "completed_at": "2023-03-16T17:39:13.110196Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.113728Z", "completed_at": "2023-03-16T17:39:13.113744Z"}], "thread_id": "Thread-1", "execution_time": 0.0476679801940918, "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": "2023-03-16T17:39:13.099182Z", "completed_at": "2023-03-16T17:39:13.110734Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.114771Z", "completed_at": "2023-03-16T17:39:13.114782Z"}], "thread_id": "Thread-2", "execution_time": 0.042376041412353516, "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": "2023-03-16T17:39:13.115069Z", "completed_at": "2023-03-16T17:39:13.126617Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.143966Z", "completed_at": "2023-03-16T17:39:13.143982Z"}], "thread_id": "Thread-3", "execution_time": 0.05655193328857422, "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": "2023-03-16T17:39:13.127512Z", "completed_at": "2023-03-16T17:39:13.166725Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.169696Z", "completed_at": "2023-03-16T17:39:13.169711Z"}], "thread_id": "Thread-4", "execution_time": 0.04830431938171387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.157576Z", "completed_at": "2023-03-16T17:39:13.170007Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.174103Z", "completed_at": "2023-03-16T17:39:13.174118Z"}], "thread_id": "Thread-2", "execution_time": 0.042114973068237305, "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": "2023-03-16T17:39:13.144304Z", "completed_at": "2023-03-16T17:39:13.170261Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.174602Z", "completed_at": "2023-03-16T17:39:13.174615Z"}], "thread_id": "Thread-1", "execution_time": 0.05814385414123535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.174912Z", "completed_at": "2023-03-16T17:39:13.187345Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.201395Z", "completed_at": "2023-03-16T17:39:13.201411Z"}], "thread_id": "Thread-3", "execution_time": 0.05616497993469238, "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": "2023-03-16T17:39:13.187887Z", "completed_at": "2023-03-16T17:39:13.201123Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.227343Z", "completed_at": "2023-03-16T17:39:13.227357Z"}], "thread_id": "Thread-4", "execution_time": 0.04607200622558594, "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": "2023-03-16T17:39:13.201704Z", "completed_at": "2023-03-16T17:39:13.229527Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.233358Z", "completed_at": "2023-03-16T17:39:13.233377Z"}], "thread_id": "Thread-2", "execution_time": 0.04825997352600098, "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": "2023-03-16T17:39:13.210987Z", "completed_at": "2023-03-16T17:39:13.230479Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.245420Z", "completed_at": "2023-03-16T17:39:13.245441Z"}], "thread_id": "Thread-1", "execution_time": 0.04831695556640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.233753Z", "completed_at": "2023-03-16T17:39:13.256306Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.259933Z", "completed_at": "2023-03-16T17:39:13.259946Z"}], "thread_id": "Thread-3", "execution_time": 0.03969693183898926, "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__pin_promotion_id__ad_group_id__campaign_id__advertiser_id.9504d17df6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.248272Z", "completed_at": "2023-03-16T17:39:13.259307Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.278721Z", "completed_at": "2023-03-16T17:39:13.278742Z"}], "thread_id": "Thread-4", "execution_time": 0.0481867790222168, "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": "2023-03-16T17:39:13.260788Z", "completed_at": "2023-03-16T17:39:13.282054Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.292873Z", "completed_at": "2023-03-16T17:39:13.292891Z"}], "thread_id": "Thread-2", "execution_time": 0.03695106506347656, "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": "2023-03-16T17:39:13.269896Z", "completed_at": "2023-03-16T17:39:13.283186Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.293638Z", "completed_at": "2023-03-16T17:39:13.293650Z"}], "thread_id": "Thread-1", "execution_time": 0.0485692024230957, "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": "2023-03-16T17:39:13.285124Z", "completed_at": "2023-03-16T17:39:13.306420Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.314007Z", "completed_at": "2023-03-16T17:39:13.314022Z"}], "thread_id": "Thread-3", "execution_time": 0.03475213050842285, "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": "2023-03-16T17:39:13.295016Z", "completed_at": "2023-03-16T17:39:13.315085Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.345154Z", "completed_at": "2023-03-16T17:39:13.345175Z"}], "thread_id": "Thread-4", "execution_time": 0.06567692756652832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__pin_promotion_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.317161Z", "completed_at": "2023-03-16T17:39:13.350824Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.361591Z", "completed_at": "2023-03-16T17:39:13.361605Z"}], "thread_id": "Thread-2", "execution_time": 0.0499272346496582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.pinterest.pinterest_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.334730Z", "completed_at": "2023-03-16T17:39:13.359705Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.362574Z", "completed_at": "2023-03-16T17:39:13.362586Z"}], "thread_id": "Thread-1", "execution_time": 0.05804896354675293, "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": "2023-03-16T17:39:13.352040Z", "completed_at": "2023-03-16T17:39:13.362318Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.373975Z", "completed_at": "2023-03-16T17:39:13.373992Z"}], "thread_id": "Thread-3", "execution_time": 0.028263092041015625, "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": "2023-03-16T17:39:13.363646Z", "completed_at": "2023-03-16T17:39:13.375563Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.392065Z", "completed_at": "2023-03-16T17:39:13.392090Z"}], "thread_id": "Thread-4", "execution_time": 0.04077315330505371, "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": "2023-03-16T17:39:13.379224Z", "completed_at": "2023-03-16T17:39:13.403157Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.415999Z", "completed_at": "2023-03-16T17:39:13.416016Z"}], "thread_id": "Thread-2", "execution_time": 0.04954695701599121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__account_report_account_id__date_day.74570496be"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.393296Z", "completed_at": "2023-03-16T17:39:13.409375Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.416340Z", "completed_at": "2023-03-16T17:39:13.416353Z"}], "thread_id": "Thread-1", "execution_time": 0.04846000671386719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_report_account_id.1f2a0195de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.403481Z", "completed_at": "2023-03-16T17:39:13.425921Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.429854Z", "completed_at": "2023-03-16T17:39:13.429867Z"}], "thread_id": "Thread-3", "execution_time": 0.038934946060180664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.416678Z", "completed_at": "2023-03-16T17:39:13.427644Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.430731Z", "completed_at": "2023-03-16T17:39:13.430742Z"}], "thread_id": "Thread-4", "execution_time": 0.0409698486328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__account_account_id.512f0b8078"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.443318Z", "completed_at": "2023-03-16T17:39:13.458681Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.474387Z", "completed_at": "2023-03-16T17:39:13.474408Z"}], "thread_id": "Thread-1", "execution_time": 0.047746896743774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_group_report_ad_group_id__date_day.19b8b9b788"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.431941Z", "completed_at": "2023-03-16T17:39:13.458941Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.475791Z", "completed_at": "2023-03-16T17:39:13.475800Z"}], "thread_id": "Thread-2", "execution_time": 0.04935097694396973, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.unique_stg_reddit_ads__account_account_id.0c6fcb698e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.460388Z", "completed_at": "2023-03-16T17:39:13.477976Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.481766Z", "completed_at": "2023-03-16T17:39:13.481778Z"}], "thread_id": "Thread-3", "execution_time": 0.025996923446655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_report_ad_group_id.9836cd084d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.467973Z", "completed_at": "2023-03-16T17:39:13.479530Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.482605Z", "completed_at": "2023-03-16T17:39:13.482615Z"}], "thread_id": "Thread-4", "execution_time": 0.04320096969604492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_group_ad_group_id.65795d8dc2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.483654Z", "completed_at": "2023-03-16T17:39:13.504144Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.515118Z", "completed_at": "2023-03-16T17:39:13.515135Z"}], "thread_id": "Thread-1", "execution_time": 0.043547868728637695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.unique_stg_reddit_ads__ad_group_ad_group_id.d3dc0d7503"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.492012Z", "completed_at": "2023-03-16T17:39:13.506202Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.522944Z", "completed_at": "2023-03-16T17:39:13.522964Z"}], "thread_id": "Thread-2", "execution_time": 0.04406237602233887, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__ad_report_ad_id__date_day.ce868b0b1a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.507191Z", "completed_at": "2023-03-16T17:39:13.524288Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.528488Z", "completed_at": "2023-03-16T17:39:13.528504Z"}], "thread_id": "Thread-3", "execution_time": 0.02718520164489746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_report_ad_id.c4af84b857"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.515442Z", "completed_at": "2023-03-16T17:39:13.526060Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.529897Z", "completed_at": "2023-03-16T17:39:13.529909Z"}], "thread_id": "Thread-4", "execution_time": 0.03676605224609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__ad_ad_id.40188b63dd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.531491Z", "completed_at": "2023-03-16T17:39:13.555114Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.564980Z", "completed_at": "2023-03-16T17:39:13.564998Z"}], "thread_id": "Thread-1", "execution_time": 0.04797077178955078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.unique_stg_reddit_ads__ad_ad_id.3d62901652"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.543121Z", "completed_at": "2023-03-16T17:39:13.557385Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.575935Z", "completed_at": "2023-03-16T17:39:13.575949Z"}], "thread_id": "Thread-2", "execution_time": 0.04875016212463379, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.dbt_utils_unique_combination_of_columns_stg_reddit_ads__campaign_report_campaign_id__date_day.9b02fea13d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.557690Z", "completed_at": "2023-03-16T17:39:13.576207Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.580329Z", "completed_at": "2023-03-16T17:39:13.580351Z"}], "thread_id": "Thread-3", "execution_time": 0.028896093368530273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_report_campaign_id.c717612b4f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.565348Z", "completed_at": "2023-03-16T17:39:13.578021Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.582417Z", "completed_at": "2023-03-16T17:39:13.582439Z"}], "thread_id": "Thread-4", "execution_time": 0.03864407539367676, "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": "2023-03-16T17:39:13.583800Z", "completed_at": "2023-03-16T17:39:13.603417Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.607123Z", "completed_at": "2023-03-16T17:39:13.607136Z"}], "thread_id": "Thread-1", "execution_time": 0.047987937927246094, "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": "2023-03-16T17:39:13.595074Z", "completed_at": "2023-03-16T17:39:13.606508Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.636305Z", "completed_at": "2023-03-16T17:39:13.636325Z"}], "thread_id": "Thread-2", "execution_time": 0.05715513229370117, "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": "2023-03-16T17:39:13.607409Z", "completed_at": "2023-03-16T17:39:13.637681Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.641435Z", "completed_at": "2023-03-16T17:39:13.641448Z"}], "thread_id": "Thread-3", "execution_time": 0.04531598091125488, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.620711Z", "completed_at": "2023-03-16T17:39:13.640064Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.656672Z", "completed_at": "2023-03-16T17:39:13.656698Z"}], "thread_id": "Thread-4", "execution_time": 0.05388498306274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.643190Z", "completed_at": "2023-03-16T17:39:13.670328Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.690816Z", "completed_at": "2023-03-16T17:39:13.690828Z"}], "thread_id": "Thread-1", "execution_time": 0.05919599533081055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.659360Z", "completed_at": "2023-03-16T17:39:13.696476Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.707251Z", "completed_at": "2023-03-16T17:39:13.707266Z"}], "thread_id": "Thread-2", "execution_time": 0.0666959285736084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.reddit_ads.reddit_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.691116Z", "completed_at": "2023-03-16T17:39:13.707542Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.710920Z", "completed_at": "2023-03-16T17:39:13.710931Z"}], "thread_id": "Thread-3", "execution_time": 0.041079044342041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.not_null_stg_reddit_ads__campaign_campaign_id.f3f24e4682"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.698900Z", "completed_at": "2023-03-16T17:39:13.710031Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.724207Z", "completed_at": "2023-03-16T17:39:13.724223Z"}], "thread_id": "Thread-4", "execution_time": 0.03612112998962402, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads_source.unique_stg_reddit_ads__campaign_campaign_id.3c4fccf1e4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.711388Z", "completed_at": "2023-03-16T17:39:13.725395Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.738801Z", "completed_at": "2023-03-16T17:39:13.738822Z"}], "thread_id": "Thread-1", "execution_time": 0.040415287017822266, "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": "2023-03-16T17:39:13.726783Z", "completed_at": "2023-03-16T17:39:13.740013Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.756974Z", "completed_at": "2023-03-16T17:39:13.756994Z"}], "thread_id": "Thread-2", "execution_time": 0.040715694427490234, "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": "2023-03-16T17:39:13.740339Z", "completed_at": "2023-03-16T17:39:13.757319Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.765211Z", "completed_at": "2023-03-16T17:39:13.765224Z"}], "thread_id": "Thread-3", "execution_time": 0.03879189491271973, "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": "2023-03-16T17:39:13.750518Z", "completed_at": "2023-03-16T17:39:13.765481Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.776419Z", "completed_at": "2023-03-16T17:39:13.776432Z"}], "thread_id": "Thread-4", "execution_time": 0.0471038818359375, "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": "2023-03-16T17:39:13.765793Z", "completed_at": "2023-03-16T17:39:13.776692Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.788596Z", "completed_at": "2023-03-16T17:39:13.788615Z"}], "thread_id": "Thread-1", "execution_time": 0.03805398941040039, "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": "2023-03-16T17:39:13.776972Z", "completed_at": "2023-03-16T17:39:13.794481Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.801930Z", "completed_at": "2023-03-16T17:39:13.801976Z"}], "thread_id": "Thread-2", "execution_time": 0.038765907287597656, "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": "2023-03-16T17:39:13.788999Z", "completed_at": "2023-03-16T17:39:13.802279Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.814589Z", "completed_at": "2023-03-16T17:39:13.814607Z"}], "thread_id": "Thread-3", "execution_time": 0.04163980484008789, "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": "2023-03-16T17:39:13.802605Z", "completed_at": "2023-03-16T17:39:13.820583Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.825651Z", "completed_at": "2023-03-16T17:39:13.825664Z"}], "thread_id": "Thread-4", "execution_time": 0.03819704055786133, "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": "2023-03-16T17:39:13.814996Z", "completed_at": "2023-03-16T17:39:13.826202Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.838805Z", "completed_at": "2023-03-16T17:39:13.838819Z"}], "thread_id": "Thread-1", "execution_time": 0.0367429256439209, "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": "2023-03-16T17:39:13.826448Z", "completed_at": "2023-03-16T17:39:13.839106Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.850224Z", "completed_at": "2023-03-16T17:39:13.850240Z"}], "thread_id": "Thread-2", "execution_time": 0.038728952407836914, "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": "2023-03-16T17:39:13.839399Z", "completed_at": "2023-03-16T17:39:13.850655Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.863545Z", "completed_at": "2023-03-16T17:39:13.863559Z"}], "thread_id": "Thread-3", "execution_time": 0.044042110443115234, "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": "2023-03-16T17:39:13.851099Z", "completed_at": "2023-03-16T17:39:13.863880Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.881678Z", "completed_at": "2023-03-16T17:39:13.881692Z"}], "thread_id": "Thread-4", "execution_time": 0.04742908477783203, "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": "2023-03-16T17:39:13.864157Z", "completed_at": "2023-03-16T17:39:13.895671Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.906885Z", "completed_at": "2023-03-16T17:39:13.906900Z"}], "thread_id": "Thread-1", "execution_time": 0.04785799980163574, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.882038Z", "completed_at": "2023-03-16T17:39:13.902976Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.908813Z", "completed_at": "2023-03-16T17:39:13.908824Z"}], "thread_id": "Thread-2", "execution_time": 0.040112972259521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_squad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.897356Z", "completed_at": "2023-03-16T17:39:13.909071Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.921128Z", "completed_at": "2023-03-16T17:39:13.921141Z"}], "thread_id": "Thread-3", "execution_time": 0.0355682373046875, "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": "2023-03-16T17:39:13.909333Z", "completed_at": "2023-03-16T17:39:13.922688Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.944317Z", "completed_at": "2023-03-16T17:39:13.944342Z"}], "thread_id": "Thread-4", "execution_time": 0.0400090217590332, "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": "2023-03-16T17:39:13.924155Z", "completed_at": "2023-03-16T17:39:13.946636Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.957071Z", "completed_at": "2023-03-16T17:39:13.957085Z"}], "thread_id": "Thread-1", "execution_time": 0.03888511657714844, "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": "2023-03-16T17:39:13.933611Z", "completed_at": "2023-03-16T17:39:13.948598Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.959183Z", "completed_at": "2023-03-16T17:39:13.959198Z"}], "thread_id": "Thread-2", "execution_time": 0.04793405532836914, "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": "2023-03-16T17:39:13.948887Z", "completed_at": "2023-03-16T17:39:13.964893Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.972636Z", "completed_at": "2023-03-16T17:39:13.972649Z"}], "thread_id": "Thread-3", "execution_time": 0.02965998649597168, "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": "2023-03-16T17:39:13.959521Z", "completed_at": "2023-03-16T17:39:13.972369Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:13.987540Z", "completed_at": "2023-03-16T17:39:13.987558Z"}], "thread_id": "Thread-4", "execution_time": 0.042633056640625, "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": "2023-03-16T17:39:13.974899Z", "completed_at": "2023-03-16T17:39:14.000248Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.023933Z", "completed_at": "2023-03-16T17:39:14.023959Z"}], "thread_id": "Thread-1", "execution_time": 0.0551450252532959, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:13.988826Z", "completed_at": "2023-03-16T17:39:14.002986Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.035457Z", "completed_at": "2023-03-16T17:39:14.035485Z"}], "thread_id": "Thread-2", "execution_time": 0.06522798538208008, "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": "2023-03-16T17:39:14.003323Z", "completed_at": "2023-03-16T17:39:14.036012Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.041057Z", "completed_at": "2023-03-16T17:39:14.041072Z"}], "thread_id": "Thread-3", "execution_time": 0.043469905853271484, "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": "2023-03-16T17:39:14.026470Z", "completed_at": "2023-03-16T17:39:14.040136Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.054544Z", "completed_at": "2023-03-16T17:39:14.054562Z"}], "thread_id": "Thread-4", "execution_time": 0.06556487083435059, "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": "2023-03-16T17:39:14.068467Z", "completed_at": "2023-03-16T17:39:14.087651Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.634008Z", "completed_at": "2023-03-16T17:39:14.634035Z"}], "thread_id": "Thread-2", "execution_time": 0.5941100120544434, "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": "2023-03-16T17:39:14.080312Z", "completed_at": "2023-03-16T17:39:14.632578Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.636754Z", "completed_at": "2023-03-16T17:39:14.636773Z"}], "thread_id": "Thread-3", "execution_time": 0.5719499588012695, "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": "2023-03-16T17:39:14.089467Z", "completed_at": "2023-03-16T17:39:14.642688Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.648892Z", "completed_at": "2023-03-16T17:39:14.648907Z"}], "thread_id": "Thread-4", "execution_time": 0.5713450908660889, "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": "2023-03-16T17:39:14.637213Z", "completed_at": "2023-03-16T17:39:14.649185Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.661293Z", "completed_at": "2023-03-16T17:39:14.661328Z"}], "thread_id": "Thread-1", "execution_time": 0.03694796562194824, "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": "2023-03-16T17:39:14.651699Z", "completed_at": "2023-03-16T17:39:14.669287Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.680162Z", "completed_at": "2023-03-16T17:39:14.680180Z"}], "thread_id": "Thread-2", "execution_time": 0.03471088409423828, "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": "2023-03-16T17:39:14.661757Z", "completed_at": "2023-03-16T17:39:14.671792Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.682874Z", "completed_at": "2023-03-16T17:39:14.682886Z"}], "thread_id": "Thread-3", "execution_time": 0.04294705390930176, "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": "2023-03-16T17:39:14.672057Z", "completed_at": "2023-03-16T17:39:14.683156Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.694789Z", "completed_at": "2023-03-16T17:39:14.694801Z"}], "thread_id": "Thread-4", "execution_time": 0.02783799171447754, "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": "2023-03-16T17:39:14.684045Z", "completed_at": "2023-03-16T17:39:14.695400Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.704739Z", "completed_at": "2023-03-16T17:39:14.704754Z"}], "thread_id": "Thread-1", "execution_time": 0.03287792205810547, "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": "2023-03-16T17:39:14.696807Z", "completed_at": "2023-03-16T17:39:14.712852Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.722528Z", "completed_at": "2023-03-16T17:39:14.722539Z"}], "thread_id": "Thread-2", "execution_time": 0.030501127243041992, "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": "2023-03-16T17:39:14.705065Z", "completed_at": "2023-03-16T17:39:14.720612Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.724684Z", "completed_at": "2023-03-16T17:39:14.724695Z"}], "thread_id": "Thread-3", "execution_time": 0.03670310974121094, "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": "2023-03-16T17:39:14.714845Z", "completed_at": "2023-03-16T17:39:14.724896Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.734769Z", "completed_at": "2023-03-16T17:39:14.734789Z"}], "thread_id": "Thread-4", "execution_time": 0.02482295036315918, "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": "2023-03-16T17:39:14.725638Z", "completed_at": "2023-03-16T17:39:14.735589Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.751511Z", "completed_at": "2023-03-16T17:39:14.751529Z"}], "thread_id": "Thread-1", "execution_time": 0.03832507133483887, "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": "2023-03-16T17:39:14.737757Z", "completed_at": "2023-03-16T17:39:14.761737Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.774279Z", "completed_at": "2023-03-16T17:39:14.774297Z"}], "thread_id": "Thread-2", "execution_time": 0.04273414611816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__advertiser_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:14.752199Z", "completed_at": "2023-03-16T17:39:14.763074Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.775124Z", "completed_at": "2023-03-16T17:39:14.775136Z"}], "thread_id": "Thread-3", "execution_time": 0.05183720588684082, "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": "2023-03-16T17:39:14.763719Z", "completed_at": "2023-03-16T17:39:14.776293Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.791557Z", "completed_at": "2023-03-16T17:39:14.791575Z"}], "thread_id": "Thread-4", "execution_time": 0.033564090728759766, "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": "2023-03-16T17:39:14.776567Z", "completed_at": "2023-03-16T17:39:14.791894Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.803171Z", "completed_at": "2023-03-16T17:39:14.803186Z"}], "thread_id": "Thread-1", "execution_time": 0.03854990005493164, "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": "2023-03-16T17:39:14.803525Z", "completed_at": "2023-03-16T17:39:14.812990Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.830228Z", "completed_at": "2023-03-16T17:39:14.830248Z"}], "thread_id": "Thread-3", "execution_time": 0.039804935455322266, "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": "2023-03-16T17:39:14.794527Z", "completed_at": "2023-03-16T17:39:14.813634Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.831070Z", "completed_at": "2023-03-16T17:39:14.831088Z"}], "thread_id": "Thread-2", "execution_time": 0.05382204055786133, "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": "2023-03-16T17:39:14.814187Z", "completed_at": "2023-03-16T17:39:14.832435Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.853018Z", "completed_at": "2023-03-16T17:39:14.853033Z"}], "thread_id": "Thread-4", "execution_time": 0.0443568229675293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:14.832814Z", "completed_at": "2023-03-16T17:39:14.854026Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.884304Z", "completed_at": "2023-03-16T17:39:14.884324Z"}], "thread_id": "Thread-1", "execution_time": 0.05706071853637695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:14.856071Z", "completed_at": "2023-03-16T17:39:14.887500Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.899933Z", "completed_at": "2023-03-16T17:39:14.899949Z"}], "thread_id": "Thread-3", "execution_time": 0.056120872497558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:14.868825Z", "completed_at": "2023-03-16T17:39:14.894165Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.900223Z", "completed_at": "2023-03-16T17:39:14.900231Z"}], "thread_id": "Thread-2", "execution_time": 0.05578804016113281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.tiktok_ads.tiktok_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:14.887826Z", "completed_at": "2023-03-16T17:39:14.905718Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.911329Z", "completed_at": "2023-03-16T17:39:14.911342Z"}], "thread_id": "Thread-4", "execution_time": 0.029011964797973633, "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": "2023-03-16T17:39:14.900543Z", "completed_at": "2023-03-16T17:39:14.912460Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.925159Z", "completed_at": "2023-03-16T17:39:14.925175Z"}], "thread_id": "Thread-1", "execution_time": 0.03534722328186035, "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": "2023-03-16T17:39:14.915940Z", "completed_at": "2023-03-16T17:39:14.935442Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.947425Z", "completed_at": "2023-03-16T17:39:14.947441Z"}], "thread_id": "Thread-3", "execution_time": 0.0437619686126709, "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": "2023-03-16T17:39:14.925489Z", "completed_at": "2023-03-16T17:39:14.935694Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.947973Z", "completed_at": "2023-03-16T17:39:14.947987Z"}], "thread_id": "Thread-2", "execution_time": 0.04398989677429199, "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": "2023-03-16T17:39:14.935925Z", "completed_at": "2023-03-16T17:39:14.947736Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.957904Z", "completed_at": "2023-03-16T17:39:14.957919Z"}], "thread_id": "Thread-4", "execution_time": 0.028079748153686523, "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": "2023-03-16T17:39:14.948259Z", "completed_at": "2023-03-16T17:39:14.959613Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:14.974243Z", "completed_at": "2023-03-16T17:39:14.974260Z"}], "thread_id": "Thread-1", "execution_time": 0.03991079330444336, "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": "2023-03-16T17:39:14.975256Z", "completed_at": "2023-03-16T17:39:14.998280Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.008516Z", "completed_at": "2023-03-16T17:39:15.008530Z"}], "thread_id": "Thread-2", "execution_time": 0.04934096336364746, "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": "2023-03-16T17:39:14.962861Z", "completed_at": "2023-03-16T17:39:14.998567Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.008840Z", "completed_at": "2023-03-16T17:39:15.008850Z"}], "thread_id": "Thread-3", "execution_time": 0.05178999900817871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:14.987404Z", "completed_at": "2023-03-16T17:39:15.000231Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.011187Z", "completed_at": "2023-03-16T17:39:15.011200Z"}], "thread_id": "Thread-4", "execution_time": 0.03889894485473633, "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": "2023-03-16T17:39:15.000547Z", "completed_at": "2023-03-16T17:39:15.011511Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.016435Z", "completed_at": "2023-03-16T17:39:15.016449Z"}], "thread_id": "Thread-1", "execution_time": 0.02115488052368164, "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": "2023-03-16T17:39:15.019181Z", "completed_at": "2023-03-16T17:39:15.048489Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.059871Z", "completed_at": "2023-03-16T17:39:15.059887Z"}], "thread_id": "Thread-2", "execution_time": 0.04662513732910156, "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": "2023-03-16T17:39:15.026835Z", "completed_at": "2023-03-16T17:39:15.048894Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.060155Z", "completed_at": "2023-03-16T17:39:15.060163Z"}], "thread_id": "Thread-3", "execution_time": 0.04665493965148926, "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": "2023-03-16T17:39:15.037696Z", "completed_at": "2023-03-16T17:39:15.050116Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.062118Z", "completed_at": "2023-03-16T17:39:15.062125Z"}], "thread_id": "Thread-4", "execution_time": 0.04655003547668457, "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": "2023-03-16T17:39:15.050408Z", "completed_at": "2023-03-16T17:39:15.063317Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.066713Z", "completed_at": "2023-03-16T17:39:15.066725Z"}], "thread_id": "Thread-1", "execution_time": 0.035932064056396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.076572Z", "completed_at": "2023-03-16T17:39:15.093718Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.101808Z", "completed_at": "2023-03-16T17:39:15.101858Z"}], "thread_id": "Thread-3", "execution_time": 0.03881216049194336, "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": "2023-03-16T17:39:15.067593Z", "completed_at": "2023-03-16T17:39:15.094090Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.103037Z", "completed_at": "2023-03-16T17:39:15.103049Z"}], "thread_id": "Thread-2", "execution_time": 0.04036879539489746, "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": "2023-03-16T17:39:15.085264Z", "completed_at": "2023-03-16T17:39:15.094886Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.104137Z", "completed_at": "2023-03-16T17:39:15.104148Z"}], "thread_id": "Thread-4", "execution_time": 0.03925037384033203, "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": "2023-03-16T17:39:15.095336Z", "completed_at": "2023-03-16T17:39:15.105436Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.109276Z", "completed_at": "2023-03-16T17:39:15.109288Z"}], "thread_id": "Thread-1", "execution_time": 0.028628826141357422, "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": "2023-03-16T17:39:15.110329Z", "completed_at": "2023-03-16T17:39:15.138872Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.140933Z", "completed_at": "2023-03-16T17:39:15.140947Z"}], "thread_id": "Thread-3", "execution_time": 0.04120612144470215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.122462Z", "completed_at": "2023-03-16T17:39:15.140402Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.148687Z", "completed_at": "2023-03-16T17:39:15.148699Z"}], "thread_id": "Thread-2", "execution_time": 0.04193902015686035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.dbt_utils_unique_combination_of_columns_stg_twitter_ads__line_item_keywords_report_date_day__keyword_id.fbb70cacf6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.132230Z", "completed_at": "2023-03-16T17:39:15.141725Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.150974Z", "completed_at": "2023-03-16T17:39:15.150982Z"}], "thread_id": "Thread-4", "execution_time": 0.04332685470581055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_date_day.c7e7155b13"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.141931Z", "completed_at": "2023-03-16T17:39:15.150767Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.153965Z", "completed_at": "2023-03-16T17:39:15.153973Z"}], "thread_id": "Thread-1", "execution_time": 0.023813724517822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads_source.not_null_stg_twitter_ads__line_item_keywords_report_keyword_id.e5f015e9ec"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.154680Z", "completed_at": "2023-03-16T17:39:15.174432Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.189603Z", "completed_at": "2023-03-16T17:39:15.189618Z"}], "thread_id": "Thread-3", "execution_time": 0.05063486099243164, "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": "2023-03-16T17:39:15.164219Z", "completed_at": "2023-03-16T17:39:15.187261Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.195333Z", "completed_at": "2023-03-16T17:39:15.195349Z"}], "thread_id": "Thread-2", "execution_time": 0.05093193054199219, "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": "2023-03-16T17:39:15.175623Z", "completed_at": "2023-03-16T17:39:15.203760Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.206990Z", "completed_at": "2023-03-16T17:39:15.206999Z"}], "thread_id": "Thread-4", "execution_time": 0.0451047420501709, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.189882Z", "completed_at": "2023-03-16T17:39:15.206248Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.209145Z", "completed_at": "2023-03-16T17:39:15.209155Z"}], "thread_id": "Thread-1", "execution_time": 0.05845189094543457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.209404Z", "completed_at": "2023-03-16T17:39:15.236890Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.255482Z", "completed_at": "2023-03-16T17:39:15.255494Z"}], "thread_id": "Thread-3", "execution_time": 0.057366132736206055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.220035Z", "completed_at": "2023-03-16T17:39:15.238380Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.263181Z", "completed_at": "2023-03-16T17:39:15.263192Z"}], "thread_id": "Thread-2", "execution_time": 0.057637929916381836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.238843Z", "completed_at": "2023-03-16T17:39:15.264263Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.268346Z", "completed_at": "2023-03-16T17:39:15.268361Z"}], "thread_id": "Thread-4", "execution_time": 0.03613901138305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.amazon_ads.amazon_ads__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.255838Z", "completed_at": "2023-03-16T17:39:15.266777Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.270925Z", "completed_at": "2023-03-16T17:39:15.270936Z"}], "thread_id": "Thread-1", "execution_time": 0.05028414726257324, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__account_report_date_day__profile_id.3d2673ade2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.271176Z", "completed_at": "2023-03-16T17:39:15.291149Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.307225Z", "completed_at": "2023-03-16T17:39:15.307240Z"}], "thread_id": "Thread-3", "execution_time": 0.040834903717041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_account_id.83adef7061"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.277677Z", "completed_at": "2023-03-16T17:39:15.291458Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.307563Z", "completed_at": "2023-03-16T17:39:15.307574Z"}], "thread_id": "Thread-2", "execution_time": 0.04043102264404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__account_report_profile_id.87fb8dbe66"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.291716Z", "completed_at": "2023-03-16T17:39:15.307916Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.310900Z", "completed_at": "2023-03-16T17:39:15.310908Z"}], "thread_id": "Thread-4", "execution_time": 0.02429485321044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__portfolio_report_date_day__portfolio_id.1a53f40fd6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.300347Z", "completed_at": "2023-03-16T17:39:15.309777Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.313154Z", "completed_at": "2023-03-16T17:39:15.313162Z"}], "thread_id": "Thread-1", "execution_time": 0.02427077293395996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__portfolio_report_profile_id.1a910441c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.315114Z", "completed_at": "2023-03-16T17:39:15.344343Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.352912Z", "completed_at": "2023-03-16T17:39:15.352923Z"}], "thread_id": "Thread-3", "execution_time": 0.04271411895751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__line_item_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.325717Z", "completed_at": "2023-03-16T17:39:15.350537Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.353189Z", "completed_at": "2023-03-16T17:39:15.353199Z"}], "thread_id": "Thread-2", "execution_time": 0.04299211502075195, "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": "2023-03-16T17:39:15.338489Z", "completed_at": "2023-03-16T17:39:15.352682Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.355370Z", "completed_at": "2023-03-16T17:39:15.355379Z"}], "thread_id": "Thread-4", "execution_time": 0.021641969680786133, "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": "2023-03-16T17:39:15.345423Z", "completed_at": "2023-03-16T17:39:15.354444Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.358446Z", "completed_at": "2023-03-16T17:39:15.358455Z"}], "thread_id": "Thread-1", "execution_time": 0.0226290225982666, "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": "2023-03-16T17:39:15.361509Z", "completed_at": "2023-03-16T17:39:15.393822Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.401060Z", "completed_at": "2023-03-16T17:39:15.401075Z"}], "thread_id": "Thread-3", "execution_time": 0.04472208023071289, "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": "2023-03-16T17:39:15.369071Z", "completed_at": "2023-03-16T17:39:15.394235Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.401673Z", "completed_at": "2023-03-16T17:39:15.401683Z"}], "thread_id": "Thread-2", "execution_time": 0.04501032829284668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__promoted_tweet_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.386543Z", "completed_at": "2023-03-16T17:39:15.401362Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.404820Z", "completed_at": "2023-03-16T17:39:15.404828Z"}], "thread_id": "Thread-4", "execution_time": 0.045977115631103516, "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": "2023-03-16T17:39:15.394459Z", "completed_at": "2023-03-16T17:39:15.402943Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.406307Z", "completed_at": "2023-03-16T17:39:15.406320Z"}], "thread_id": "Thread-1", "execution_time": 0.022999048233032227, "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": "2023-03-16T17:39:15.409593Z", "completed_at": "2023-03-16T17:39:15.440294Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.459931Z", "completed_at": "2023-03-16T17:39:15.459950Z"}], "thread_id": "Thread-3", "execution_time": 0.05610489845275879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.twitter_ads.twitter_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.425862Z", "completed_at": "2023-03-16T17:39:15.457838Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.460498Z", "completed_at": "2023-03-16T17:39:15.460512Z"}], "thread_id": "Thread-2", "execution_time": 0.05508303642272949, "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": "2023-03-16T17:39:15.440815Z", "completed_at": "2023-03-16T17:39:15.460768Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.465050Z", "completed_at": "2023-03-16T17:39:15.465065Z"}], "thread_id": "Thread-4", "execution_time": 0.042186737060546875, "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": "2023-03-16T17:39:15.451526Z", "completed_at": "2023-03-16T17:39:15.463197Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.467874Z", "completed_at": "2023-03-16T17:39:15.467886Z"}], "thread_id": "Thread-1", "execution_time": 0.03403902053833008, "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": "2023-03-16T17:39:15.470705Z", "completed_at": "2023-03-16T17:39:15.495818Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.516112Z", "completed_at": "2023-03-16T17:39:15.516132Z"}], "thread_id": "Thread-3", "execution_time": 0.051892995834350586, "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": "2023-03-16T17:39:15.481526Z", "completed_at": "2023-03-16T17:39:15.496096Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.516491Z", "completed_at": "2023-03-16T17:39:15.516503Z"}], "thread_id": "Thread-2", "execution_time": 0.0521397590637207, "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": "2023-03-16T17:39:15.496368Z", "completed_at": "2023-03-16T17:39:15.516797Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.520927Z", "completed_at": "2023-03-16T17:39:15.520941Z"}], "thread_id": "Thread-4", "execution_time": 0.030291080474853516, "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": "2023-03-16T17:39:15.504860Z", "completed_at": "2023-03-16T17:39:15.519417Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.523681Z", "completed_at": "2023-03-16T17:39:15.523695Z"}], "thread_id": "Thread-1", "execution_time": 0.030961990356445312, "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": "2023-03-16T17:39:15.526567Z", "completed_at": "2023-03-16T17:39:15.545712Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.562962Z", "completed_at": "2023-03-16T17:39:15.562995Z"}], "thread_id": "Thread-3", "execution_time": 0.043135881423950195, "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": "2023-03-16T17:39:15.533995Z", "completed_at": "2023-03-16T17:39:15.551449Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.563796Z", "completed_at": "2023-03-16T17:39:15.563809Z"}], "thread_id": "Thread-2", "execution_time": 0.04326891899108887, "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": "2023-03-16T17:39:15.546032Z", "completed_at": "2023-03-16T17:39:15.564064Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.567881Z", "completed_at": "2023-03-16T17:39:15.567896Z"}], "thread_id": "Thread-4", "execution_time": 0.027553796768188477, "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": "2023-03-16T17:39:15.556814Z", "completed_at": "2023-03-16T17:39:15.566845Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.571614Z", "completed_at": "2023-03-16T17:39:15.571628Z"}], "thread_id": "Thread-1", "execution_time": 0.03518509864807129, "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": "2023-03-16T17:39:15.572898Z", "completed_at": "2023-03-16T17:39:15.594534Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.602853Z", "completed_at": "2023-03-16T17:39:15.602866Z"}], "thread_id": "Thread-3", "execution_time": 0.04230999946594238, "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": "2023-03-16T17:39:15.580643Z", "completed_at": "2023-03-16T17:39:15.602096Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.610985Z", "completed_at": "2023-03-16T17:39:15.610996Z"}], "thread_id": "Thread-2", "execution_time": 0.04328584671020508, "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": "2023-03-16T17:39:15.595359Z", "completed_at": "2023-03-16T17:39:15.611230Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.614801Z", "completed_at": "2023-03-16T17:39:15.614813Z"}], "thread_id": "Thread-4", "execution_time": 0.023797988891601562, "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": "2023-03-16T17:39:15.603458Z", "completed_at": "2023-03-16T17:39:15.613344Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.616796Z", "completed_at": "2023-03-16T17:39:15.616806Z"}], "thread_id": "Thread-1", "execution_time": 0.032086849212646484, "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": "2023-03-16T17:39:15.617042Z", "completed_at": "2023-03-16T17:39:15.639513Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.650235Z", "completed_at": "2023-03-16T17:39:15.650250Z"}], "thread_id": "Thread-3", "execution_time": 0.04697585105895996, "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": "2023-03-16T17:39:15.642176Z", "completed_at": "2023-03-16T17:39:15.661001Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.664332Z", "completed_at": "2023-03-16T17:39:15.664346Z"}], "thread_id": "Thread-4", "execution_time": 0.027009010314941406, "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": "2023-03-16T17:39:15.627379Z", "completed_at": "2023-03-16T17:39:15.641897Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.661283Z", "completed_at": "2023-03-16T17:39:15.661293Z"}], "thread_id": "Thread-2", "execution_time": 0.05042886734008789, "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": "2023-03-16T17:39:15.650978Z", "completed_at": "2023-03-16T17:39:15.662581Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.681077Z", "completed_at": "2023-03-16T17:39:15.681098Z"}], "thread_id": "Thread-1", "execution_time": 0.042448997497558594, "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": "2023-03-16T17:39:15.670336Z", "completed_at": "2023-03-16T17:39:15.682346Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.709978Z", "completed_at": "2023-03-16T17:39:15.709998Z"}], "thread_id": "Thread-3", "execution_time": 0.042742013931274414, "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": "2023-03-16T17:39:15.693550Z", "completed_at": "2023-03-16T17:39:15.710357Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.713865Z", "completed_at": "2023-03-16T17:39:15.713877Z"}], "thread_id": "Thread-4", "execution_time": 0.04289817810058594, "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": "2023-03-16T17:39:15.687139Z", "completed_at": "2023-03-16T17:39:15.712610Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.723546Z", "completed_at": "2023-03-16T17:39:15.723558Z"}], "thread_id": "Thread-2", "execution_time": 0.04604291915893555, "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": "2023-03-16T17:39:15.714488Z", "completed_at": "2023-03-16T17:39:15.725922Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.756754Z", "completed_at": "2023-03-16T17:39:15.756768Z"}], "thread_id": "Thread-1", "execution_time": 0.0589299201965332, "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": "2023-03-16T17:39:15.726192Z", "completed_at": "2023-03-16T17:39:15.768760Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.779029Z", "completed_at": "2023-03-16T17:39:15.779045Z"}], "thread_id": "Thread-3", "execution_time": 0.05948185920715332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.int_facebook_ads__creative_history"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:15.757093Z", "completed_at": "2023-03-16T17:39:15.778488Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.782265Z", "completed_at": "2023-03-16T17:39:15.782278Z"}], "thread_id": "Thread-4", "execution_time": 0.06350994110107422, "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": "2023-03-16T17:39:15.770213Z", "completed_at": "2023-03-16T17:39:15.780674Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.795512Z", "completed_at": "2023-03-16T17:39:15.795522Z"}], "thread_id": "Thread-2", "execution_time": 0.04144406318664551, "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": "2023-03-16T17:39:15.783530Z", "completed_at": "2023-03-16T17:39:15.798342Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.812114Z", "completed_at": "2023-03-16T17:39:15.812130Z"}], "thread_id": "Thread-1", "execution_time": 0.044291019439697266, "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": "2023-03-16T17:39:15.799926Z", "completed_at": "2023-03-16T17:39:15.824105Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.834258Z", "completed_at": "2023-03-16T17:39:15.834282Z"}], "thread_id": "Thread-3", "execution_time": 0.04059910774230957, "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": "2023-03-16T17:39:15.812473Z", "completed_at": "2023-03-16T17:39:15.833038Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.836806Z", "completed_at": "2023-03-16T17:39:15.836816Z"}], "thread_id": "Thread-4", "execution_time": 0.050382137298583984, "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": "2023-03-16T17:39:15.824552Z", "completed_at": "2023-03-16T17:39:15.835183Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.849419Z", "completed_at": "2023-03-16T17:39:15.849431Z"}], "thread_id": "Thread-2", "execution_time": 0.040258169174194336, "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": "2023-03-16T17:39:15.837420Z", "completed_at": "2023-03-16T17:39:15.851936Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.863982Z", "completed_at": "2023-03-16T17:39:15.864000Z"}], "thread_id": "Thread-1", "execution_time": 0.041236162185668945, "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": "2023-03-16T17:39:15.854092Z", "completed_at": "2023-03-16T17:39:15.875194Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.886376Z", "completed_at": "2023-03-16T17:39:15.886401Z"}], "thread_id": "Thread-3", "execution_time": 0.038294076919555664, "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": "2023-03-16T17:39:15.864479Z", "completed_at": "2023-03-16T17:39:15.886787Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.900148Z", "completed_at": "2023-03-16T17:39:15.900162Z"}], "thread_id": "Thread-4", "execution_time": 0.0498199462890625, "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": "2023-03-16T17:39:15.875626Z", "completed_at": "2023-03-16T17:39:15.888713Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.901454Z", "completed_at": "2023-03-16T17:39:15.901465Z"}], "thread_id": "Thread-2", "execution_time": 0.04047799110412598, "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": "2023-03-16T17:39:15.889461Z", "completed_at": "2023-03-16T17:39:15.902776Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.915222Z", "completed_at": "2023-03-16T17:39:15.915240Z"}], "thread_id": "Thread-1", "execution_time": 0.03212594985961914, "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": "2023-03-16T17:39:15.905126Z", "completed_at": "2023-03-16T17:39:15.917766Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.938862Z", "completed_at": "2023-03-16T17:39:15.938880Z"}], "thread_id": "Thread-3", "execution_time": 0.03992605209350586, "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": "2023-03-16T17:39:15.918441Z", "completed_at": "2023-03-16T17:39:15.939355Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.953219Z", "completed_at": "2023-03-16T17:39:15.953237Z"}], "thread_id": "Thread-4", "execution_time": 0.040641069412231445, "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": "2023-03-16T17:39:15.929061Z", "completed_at": "2023-03-16T17:39:15.941434Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.955617Z", "completed_at": "2023-03-16T17:39:15.955630Z"}], "thread_id": "Thread-2", "execution_time": 0.041838884353637695, "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": "2023-03-16T17:39:15.941746Z", "completed_at": "2023-03-16T17:39:15.955943Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.969053Z", "completed_at": "2023-03-16T17:39:15.969077Z"}], "thread_id": "Thread-1", "execution_time": 0.03331303596496582, "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": "2023-03-16T17:39:15.958266Z", "completed_at": "2023-03-16T17:39:15.971769Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:15.992362Z", "completed_at": "2023-03-16T17:39:15.992379Z"}], "thread_id": "Thread-3", "execution_time": 0.03977489471435547, "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": "2023-03-16T17:39:15.972089Z", "completed_at": "2023-03-16T17:39:15.992662Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.005617Z", "completed_at": "2023-03-16T17:39:16.005635Z"}], "thread_id": "Thread-4", "execution_time": 0.04024481773376465, "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": "2023-03-16T17:39:15.984020Z", "completed_at": "2023-03-16T17:39:15.994602Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.008220Z", "completed_at": "2023-03-16T17:39:16.008233Z"}], "thread_id": "Thread-2", "execution_time": 0.03999495506286621, "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": "2023-03-16T17:39:15.994880Z", "completed_at": "2023-03-16T17:39:16.008831Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.022353Z", "completed_at": "2023-03-16T17:39:16.022374Z"}], "thread_id": "Thread-1", "execution_time": 0.03264498710632324, "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": "2023-03-16T17:39:16.010584Z", "completed_at": "2023-03-16T17:39:16.034329Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.044798Z", "completed_at": "2023-03-16T17:39:16.044816Z"}], "thread_id": "Thread-3", "execution_time": 0.03994393348693848, "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": "2023-03-16T17:39:16.024724Z", "completed_at": "2023-03-16T17:39:16.045302Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.056342Z", "completed_at": "2023-03-16T17:39:16.056355Z"}], "thread_id": "Thread-4", "execution_time": 0.037447214126586914, "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": "2023-03-16T17:39:16.036377Z", "completed_at": "2023-03-16T17:39:16.046860Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.057456Z", "completed_at": "2023-03-16T17:39:16.057469Z"}], "thread_id": "Thread-2", "execution_time": 0.036486148834228516, "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": "2023-03-16T17:39:16.047571Z", "completed_at": "2023-03-16T17:39:16.058642Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.075008Z", "completed_at": "2023-03-16T17:39:16.075022Z"}], "thread_id": "Thread-1", "execution_time": 0.03276801109313965, "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": "2023-03-16T17:39:16.060912Z", "completed_at": "2023-03-16T17:39:16.077285Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.096850Z", "completed_at": "2023-03-16T17:39:16.096867Z"}], "thread_id": "Thread-3", "execution_time": 0.04176497459411621, "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": "2023-03-16T17:39:16.077991Z", "completed_at": "2023-03-16T17:39:16.097167Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.111116Z", "completed_at": "2023-03-16T17:39:16.111130Z"}], "thread_id": "Thread-4", "execution_time": 0.03870105743408203, "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": "2023-03-16T17:39:16.087994Z", "completed_at": "2023-03-16T17:39:16.105182Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.113499Z", "completed_at": "2023-03-16T17:39:16.113512Z"}], "thread_id": "Thread-2", "execution_time": 0.0399169921875, "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": "2023-03-16T17:39:16.099485Z", "completed_at": "2023-03-16T17:39:16.113778Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.126626Z", "completed_at": "2023-03-16T17:39:16.126643Z"}], "thread_id": "Thread-1", "execution_time": 0.03240704536437988, "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": "2023-03-16T17:39:16.116123Z", "completed_at": "2023-03-16T17:39:16.128887Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.153487Z", "completed_at": "2023-03-16T17:39:16.153505Z"}], "thread_id": "Thread-3", "execution_time": 0.04319190979003906, "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": "2023-03-16T17:39:16.129115Z", "completed_at": "2023-03-16T17:39:16.154004Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.164000Z", "completed_at": "2023-03-16T17:39:16.164014Z"}], "thread_id": "Thread-4", "execution_time": 0.04076695442199707, "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": "2023-03-16T17:39:16.140446Z", "completed_at": "2023-03-16T17:39:16.163513Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.167112Z", "completed_at": "2023-03-16T17:39:16.167126Z"}], "thread_id": "Thread-2", "execution_time": 0.05521798133850098, "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": "2023-03-16T17:39:16.155861Z", "completed_at": "2023-03-16T17:39:16.166801Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.184070Z", "completed_at": "2023-03-16T17:39:16.184087Z"}], "thread_id": "Thread-1", "execution_time": 0.03395485877990723, "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": "2023-03-16T17:39:16.167978Z", "completed_at": "2023-03-16T17:39:16.185480Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.196192Z", "completed_at": "2023-03-16T17:39:16.196205Z"}], "thread_id": "Thread-3", "execution_time": 0.040766000747680664, "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": "2023-03-16T17:39:16.188206Z", "completed_at": "2023-03-16T17:39:16.206032Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.220116Z", "completed_at": "2023-03-16T17:39:16.220132Z"}], "thread_id": "Thread-4", "execution_time": 0.03842520713806152, "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": "2023-03-16T17:39:16.197291Z", "completed_at": "2023-03-16T17:39:16.218167Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.221024Z", "completed_at": "2023-03-16T17:39:16.221035Z"}], "thread_id": "Thread-2", "execution_time": 0.04483485221862793, "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": "2023-03-16T17:39:16.207050Z", "completed_at": "2023-03-16T17:39:16.220458Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.233149Z", "completed_at": "2023-03-16T17:39:16.233163Z"}], "thread_id": "Thread-1", "execution_time": 0.038758277893066406, "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": "2023-03-16T17:39:16.222470Z", "completed_at": "2023-03-16T17:39:16.235766Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.383699Z", "completed_at": "2023-03-16T17:39:16.383723Z"}], "thread_id": "Thread-3", "execution_time": 0.17528295516967773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.linkedin.not_null_linkedin_ads__url_report_click_uri.81534087cb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.384155Z", "completed_at": "2023-03-16T17:39:16.416232Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.420043Z", "completed_at": "2023-03-16T17:39:16.420060Z"}], "thread_id": "Thread-2", "execution_time": 0.18570375442504883, "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": "2023-03-16T17:39:16.238196Z", "completed_at": "2023-03-16T17:39:16.419211Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.422153Z", "completed_at": "2023-03-16T17:39:16.422164Z"}], "thread_id": "Thread-4", "execution_time": 0.18977689743041992, "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": "2023-03-16T17:39:16.407765Z", "completed_at": "2023-03-16T17:39:16.419700Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.422753Z", "completed_at": "2023-03-16T17:39:16.422764Z"}], "thread_id": "Thread-3", "execution_time": 0.024506092071533203, "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": "2023-03-16T17:39:16.394711Z", "completed_at": "2023-03-16T17:39:16.420682Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.424390Z", "completed_at": "2023-03-16T17:39:16.424399Z"}], "thread_id": "Thread-1", "execution_time": 0.04691314697265625, "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": "2023-03-16T17:39:16.430019Z", "completed_at": "2023-03-16T17:39:16.464461Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.473653Z", "completed_at": "2023-03-16T17:39:16.473667Z"}], "thread_id": "Thread-2", "execution_time": 0.04969906806945801, "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": "2023-03-16T17:39:16.445616Z", "completed_at": "2023-03-16T17:39:16.473295Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.475756Z", "completed_at": "2023-03-16T17:39:16.475766Z"}], "thread_id": "Thread-4", "execution_time": 0.04908895492553711, "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": "2023-03-16T17:39:16.453228Z", "completed_at": "2023-03-16T17:39:16.473928Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.476745Z", "completed_at": "2023-03-16T17:39:16.476755Z"}], "thread_id": "Thread-3", "execution_time": 0.04944777488708496, "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": "2023-03-16T17:39:16.464901Z", "completed_at": "2023-03-16T17:39:16.474503Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.477667Z", "completed_at": "2023-03-16T17:39:16.477675Z"}], "thread_id": "Thread-1", "execution_time": 0.03523111343383789, "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": "2023-03-16T17:39:16.482505Z", "completed_at": "2023-03-16T17:39:16.517019Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.529805Z", "completed_at": "2023-03-16T17:39:16.529829Z"}], "thread_id": "Thread-2", "execution_time": 0.05340099334716797, "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": "2023-03-16T17:39:16.498381Z", "completed_at": "2023-03-16T17:39:16.530232Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.534233Z", "completed_at": "2023-03-16T17:39:16.534250Z"}], "thread_id": "Thread-4", "execution_time": 0.05516386032104492, "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": "2023-03-16T17:39:16.505863Z", "completed_at": "2023-03-16T17:39:16.532015Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.535624Z", "completed_at": "2023-03-16T17:39:16.535635Z"}], "thread_id": "Thread-3", "execution_time": 0.04143095016479492, "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": "2023-03-16T17:39:16.519888Z", "completed_at": "2023-03-16T17:39:16.533581Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.536986Z", "completed_at": "2023-03-16T17:39:16.536997Z"}], "thread_id": "Thread-1", "execution_time": 0.04752182960510254, "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": "2023-03-16T17:39:16.538741Z", "completed_at": "2023-03-16T17:39:16.560149Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.587597Z", "completed_at": "2023-03-16T17:39:16.587617Z"}], "thread_id": "Thread-2", "execution_time": 0.05441999435424805, "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__match_type.8b1ebd50a3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.560435Z", "completed_at": "2023-03-16T17:39:16.587277Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.589729Z", "completed_at": "2023-03-16T17:39:16.589744Z"}], "thread_id": "Thread-4", "execution_time": 0.035095930099487305, "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": "2023-03-16T17:39:16.568454Z", "completed_at": "2023-03-16T17:39:16.589442Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.593287Z", "completed_at": "2023-03-16T17:39:16.593300Z"}], "thread_id": "Thread-3", "execution_time": 0.037034034729003906, "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": "2023-03-16T17:39:16.577684Z", "completed_at": "2023-03-16T17:39:16.590562Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.594523Z", "completed_at": "2023-03-16T17:39:16.594534Z"}], "thread_id": "Thread-1", "execution_time": 0.04269218444824219, "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": "2023-03-16T17:39:16.596248Z", "completed_at": "2023-03-16T17:39:16.617785Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.628157Z", "completed_at": "2023-03-16T17:39:16.628176Z"}], "thread_id": "Thread-2", "execution_time": 0.04791879653930664, "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": "2023-03-16T17:39:16.607319Z", "completed_at": "2023-03-16T17:39:16.628447Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.644803Z", "completed_at": "2023-03-16T17:39:16.644863Z"}], "thread_id": "Thread-4", "execution_time": 0.05188894271850586, "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": "2023-03-16T17:39:16.620017Z", "completed_at": "2023-03-16T17:39:16.642404Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.648266Z", "completed_at": "2023-03-16T17:39:16.648277Z"}], "thread_id": "Thread-3", "execution_time": 0.054100990295410156, "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": "2023-03-16T17:39:16.628748Z", "completed_at": "2023-03-16T17:39:16.643711Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.648546Z", "completed_at": "2023-03-16T17:39:16.648555Z"}], "thread_id": "Thread-1", "execution_time": 0.04342985153198242, "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": "2023-03-16T17:39:16.649378Z", "completed_at": "2023-03-16T17:39:16.663572Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.675539Z", "completed_at": "2023-03-16T17:39:16.675558Z"}], "thread_id": "Thread-2", "execution_time": 0.040146827697753906, "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": "2023-03-16T17:39:16.676532Z", "completed_at": "2023-03-16T17:39:16.702185Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.704965Z", "completed_at": "2023-03-16T17:39:16.704981Z"}], "thread_id": "Thread-3", "execution_time": 0.04026603698730469, "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": "2023-03-16T17:39:16.667001Z", "completed_at": "2023-03-16T17:39:16.698733Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.707498Z", "completed_at": "2023-03-16T17:39:16.707511Z"}], "thread_id": "Thread-4", "execution_time": 0.05570411682128906, "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": "2023-03-16T17:39:16.686433Z", "completed_at": "2023-03-16T17:39:16.706001Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.716979Z", "completed_at": "2023-03-16T17:39:16.716998Z"}], "thread_id": "Thread-1", "execution_time": 0.052845001220703125, "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": "2023-03-16T17:39:16.707797Z", "completed_at": "2023-03-16T17:39:16.725685Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.731429Z", "completed_at": "2023-03-16T17:39:16.731450Z"}], "thread_id": "Thread-2", "execution_time": 0.04085969924926758, "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": "2023-03-16T17:39:16.720299Z", "completed_at": "2023-03-16T17:39:16.732190Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.757951Z", "completed_at": "2023-03-16T17:39:16.757965Z"}], "thread_id": "Thread-3", "execution_time": 0.04424095153808594, "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": "2023-03-16T17:39:16.732563Z", "completed_at": "2023-03-16T17:39:16.758587Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.762890Z", "completed_at": "2023-03-16T17:39:16.762901Z"}], "thread_id": "Thread-4", "execution_time": 0.04343104362487793, "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": "2023-03-16T17:39:16.745456Z", "completed_at": "2023-03-16T17:39:16.761592Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.772729Z", "completed_at": "2023-03-16T17:39:16.772741Z"}], "thread_id": "Thread-1", "execution_time": 0.04432106018066406, "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": "2023-03-16T17:39:16.763587Z", "completed_at": "2023-03-16T17:39:16.774934Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.791130Z", "completed_at": "2023-03-16T17:39:16.791163Z"}], "thread_id": "Thread-2", "execution_time": 0.04154014587402344, "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": "2023-03-16T17:39:16.775171Z", "completed_at": "2023-03-16T17:39:16.796884Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.810875Z", "completed_at": "2023-03-16T17:39:16.810888Z"}], "thread_id": "Thread-3", "execution_time": 0.04185128211975098, "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": "2023-03-16T17:39:16.791581Z", "completed_at": "2023-03-16T17:39:16.810644Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.814129Z", "completed_at": "2023-03-16T17:39:16.814141Z"}], "thread_id": "Thread-4", "execution_time": 0.036958932876586914, "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": "2023-03-16T17:39:16.801525Z", "completed_at": "2023-03-16T17:39:16.813580Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.824561Z", "completed_at": "2023-03-16T17:39:16.824573Z"}], "thread_id": "Thread-1", "execution_time": 0.03641700744628906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.pinterest.not_null_pinterest_ads__url_report_destination_url.0bb7f30502"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.815487Z", "completed_at": "2023-03-16T17:39:16.826844Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.842511Z", "completed_at": "2023-03-16T17:39:16.842526Z"}], "thread_id": "Thread-2", "execution_time": 0.04230093955993652, "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": "2023-03-16T17:39:16.827822Z", "completed_at": "2023-03-16T17:39:16.852297Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.864856Z", "completed_at": "2023-03-16T17:39:16.864870Z"}], "thread_id": "Thread-3", "execution_time": 0.042777061462402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__account_report_date_day__account_id__attribution_type__currency__status__time_zone_id.3cf3359ef6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.843168Z", "completed_at": "2023-03-16T17:39:16.864617Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.867675Z", "completed_at": "2023-03-16T17:39:16.867685Z"}], "thread_id": "Thread-4", "execution_time": 0.05361509323120117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_account_id.16f11188c5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.854329Z", "completed_at": "2023-03-16T17:39:16.867132Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.882369Z", "completed_at": "2023-03-16T17:39:16.882384Z"}], "thread_id": "Thread-1", "execution_time": 0.04269719123840332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__account_report_date_day.7b43e6cb90"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.868958Z", "completed_at": "2023-03-16T17:39:16.884798Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.900598Z", "completed_at": "2023-03-16T17:39:16.900628Z"}], "thread_id": "Thread-2", "execution_time": 0.049638986587524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_group_report_date_day__account_id__ad_group_id__campaign_id__currency.dfbea50191"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.885789Z", "completed_at": "2023-03-16T17:39:16.906660Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.931211Z", "completed_at": "2023-03-16T17:39:16.931231Z"}], "thread_id": "Thread-3", "execution_time": 0.051602840423583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_ad_group_id.057bd60604"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.901212Z", "completed_at": "2023-03-16T17:39:16.931717Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.936127Z", "completed_at": "2023-03-16T17:39:16.936143Z"}], "thread_id": "Thread-4", "execution_time": 0.06241106986999512, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_group_report_date_day.6463e6f6f7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.915472Z", "completed_at": "2023-03-16T17:39:16.934795Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.948147Z", "completed_at": "2023-03-16T17:39:16.948164Z"}], "thread_id": "Thread-1", "execution_time": 0.05117368698120117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__ad_report_date_day__ad_id__post_id__account_id__ad_group_id__campaign_id__currency.a428678f1d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.936605Z", "completed_at": "2023-03-16T17:39:16.956524Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.965363Z", "completed_at": "2023-03-16T17:39:16.965376Z"}], "thread_id": "Thread-2", "execution_time": 0.046209096908569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_ad_id.1da054a14e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.951196Z", "completed_at": "2023-03-16T17:39:16.965610Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.988784Z", "completed_at": "2023-03-16T17:39:16.988801Z"}], "thread_id": "Thread-3", "execution_time": 0.04492497444152832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__ad_report_date_day.608b21c69a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.965817Z", "completed_at": "2023-03-16T17:39:16.989266Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:16.993061Z", "completed_at": "2023-03-16T17:39:16.993073Z"}], "thread_id": "Thread-4", "execution_time": 0.041126251220703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__campaign_report_date_day__account_id__campaign_id__currency.aec7cd25af"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.978774Z", "completed_at": "2023-03-16T17:39:16.991163Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.001836Z", "completed_at": "2023-03-16T17:39:17.001851Z"}], "thread_id": "Thread-1", "execution_time": 0.03931713104248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_campaign_id.f5491a0b49"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:16.993346Z", "completed_at": "2023-03-16T17:39:17.004815Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.022507Z", "completed_at": "2023-03-16T17:39:17.022525Z"}], "thread_id": "Thread-2", "execution_time": 0.04172515869140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__campaign_report_date_day.f79cca4131"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.005163Z", "completed_at": "2023-03-16T17:39:17.022882Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.043377Z", "completed_at": "2023-03-16T17:39:17.043393Z"}], "thread_id": "Thread-3", "execution_time": 0.044515132904052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.dbt_utils_unique_combination_of_columns_reddit_ads__url_report_date_day__click_url__ad_id__account_id__ad_group_id__campaign_id__post_id__currency.b14eb4e958"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.023464Z", "completed_at": "2023-03-16T17:39:17.043869Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.047600Z", "completed_at": "2023-03-16T17:39:17.047614Z"}], "thread_id": "Thread-4", "execution_time": 0.03693079948425293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_ad_id.8ff83da2b0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.032434Z", "completed_at": "2023-03-16T17:39:17.046307Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.057533Z", "completed_at": "2023-03-16T17:39:17.057549Z"}], "thread_id": "Thread-1", "execution_time": 0.039019107818603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_base_url.2f585bebcb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.048262Z", "completed_at": "2023-03-16T17:39:17.059526Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.072910Z", "completed_at": "2023-03-16T17:39:17.072928Z"}], "thread_id": "Thread-2", "execution_time": 0.038336992263793945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.reddit_ads.not_null_reddit_ads__url_report_date_day.4b0f6363da"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.060662Z", "completed_at": "2023-03-16T17:39:17.083039Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.095280Z", "completed_at": "2023-03-16T17:39:17.095297Z"}], "thread_id": "Thread-3", "execution_time": 0.040862321853637695, "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": "2023-03-16T17:39:17.074003Z", "completed_at": "2023-03-16T17:39:17.090116Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.097485Z", "completed_at": "2023-03-16T17:39:17.097502Z"}], "thread_id": "Thread-4", "execution_time": 0.037917137145996094, "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": "2023-03-16T17:39:17.084798Z", "completed_at": "2023-03-16T17:39:17.097822Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.110918Z", "completed_at": "2023-03-16T17:39:17.110932Z"}], "thread_id": "Thread-1", "execution_time": 0.03977394104003906, "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": "2023-03-16T17:39:17.098165Z", "completed_at": "2023-03-16T17:39:17.110621Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.121555Z", "completed_at": "2023-03-16T17:39:17.121573Z"}], "thread_id": "Thread-2", "execution_time": 0.03558611869812012, "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": "2023-03-16T17:39:17.113559Z", "completed_at": "2023-03-16T17:39:17.131719Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.146382Z", "completed_at": "2023-03-16T17:39:17.146396Z"}], "thread_id": "Thread-3", "execution_time": 0.03874802589416504, "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": "2023-03-16T17:39:17.122592Z", "completed_at": "2023-03-16T17:39:17.133243Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.147209Z", "completed_at": "2023-03-16T17:39:17.147223Z"}], "thread_id": "Thread-4", "execution_time": 0.04557394981384277, "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": "2023-03-16T17:39:17.134600Z", "completed_at": "2023-03-16T17:39:17.153710Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.159887Z", "completed_at": "2023-03-16T17:39:17.159901Z"}], "thread_id": "Thread-1", "execution_time": 0.031026840209960938, "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": "2023-03-16T17:39:17.148657Z", "completed_at": "2023-03-16T17:39:17.160193Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.171248Z", "completed_at": "2023-03-16T17:39:17.171263Z"}], "thread_id": "Thread-2", "execution_time": 0.0693361759185791, "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": "2023-03-16T17:39:17.162933Z", "completed_at": "2023-03-16T17:39:17.203564Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.233475Z", "completed_at": "2023-03-16T17:39:17.233500Z"}], "thread_id": "Thread-3", "execution_time": 0.09106922149658203, "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": "2023-03-16T17:39:17.171593Z", "completed_at": "2023-03-16T17:39:17.205521Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.250827Z", "completed_at": "2023-03-16T17:39:17.250842Z"}], "thread_id": "Thread-4", "execution_time": 0.10073399543762207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.205782Z", "completed_at": "2023-03-16T17:39:17.260232Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.264591Z", "completed_at": "2023-03-16T17:39:17.264606Z"}], "thread_id": "Thread-1", "execution_time": 0.08232903480529785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.snapchat_ads.snapchat_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.251238Z", "completed_at": "2023-03-16T17:39:17.266010Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.291515Z", "completed_at": "2023-03-16T17:39:17.291536Z"}], "thread_id": "Thread-2", "execution_time": 0.07709503173828125, "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": "2023-03-16T17:39:17.266458Z", "completed_at": "2023-03-16T17:39:17.291889Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.295806Z", "completed_at": "2023-03-16T17:39:17.295822Z"}], "thread_id": "Thread-3", "execution_time": 0.04760026931762695, "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": "2023-03-16T17:39:17.278373Z", "completed_at": "2023-03-16T17:39:17.294835Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.310349Z", "completed_at": "2023-03-16T17:39:17.310363Z"}], "thread_id": "Thread-4", "execution_time": 0.04739499092102051, "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": "2023-03-16T17:39:17.296191Z", "completed_at": "2023-03-16T17:39:17.311712Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.323441Z", "completed_at": "2023-03-16T17:39:17.323458Z"}], "thread_id": "Thread-1", "execution_time": 0.04135894775390625, "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": "2023-03-16T17:39:17.312836Z", "completed_at": "2023-03-16T17:39:17.324454Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.342888Z", "completed_at": "2023-03-16T17:39:17.342906Z"}], "thread_id": "Thread-2", "execution_time": 0.04487419128417969, "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": "2023-03-16T17:39:17.324717Z", "completed_at": "2023-03-16T17:39:17.342480Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.354393Z", "completed_at": "2023-03-16T17:39:17.354408Z"}], "thread_id": "Thread-3", "execution_time": 0.04241585731506348, "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": "2023-03-16T17:39:17.335978Z", "completed_at": "2023-03-16T17:39:17.355216Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.365993Z", "completed_at": "2023-03-16T17:39:17.366023Z"}], "thread_id": "Thread-4", "execution_time": 0.051422119140625, "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": "2023-03-16T17:39:17.355609Z", "completed_at": "2023-03-16T17:39:17.366293Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.377313Z", "completed_at": "2023-03-16T17:39:17.377328Z"}], "thread_id": "Thread-1", "execution_time": 0.03793215751647949, "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": "2023-03-16T17:39:17.367216Z", "completed_at": "2023-03-16T17:39:17.389270Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.401443Z", "completed_at": "2023-03-16T17:39:17.401461Z"}], "thread_id": "Thread-2", "execution_time": 0.039501190185546875, "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": "2023-03-16T17:39:17.377656Z", "completed_at": "2023-03-16T17:39:17.391788Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.404221Z", "completed_at": "2023-03-16T17:39:17.404235Z"}], "thread_id": "Thread-3", "execution_time": 0.04688215255737305, "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": "2023-03-16T17:39:17.392086Z", "completed_at": "2023-03-16T17:39:17.404550Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.415757Z", "completed_at": "2023-03-16T17:39:17.415772Z"}], "thread_id": "Thread-4", "execution_time": 0.02932596206665039, "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": "2023-03-16T17:39:17.405419Z", "completed_at": "2023-03-16T17:39:17.416444Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.432341Z", "completed_at": "2023-03-16T17:39:17.432358Z"}], "thread_id": "Thread-1", "execution_time": 0.04028511047363281, "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": "2023-03-16T17:39:17.418299Z", "completed_at": "2023-03-16T17:39:17.442626Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.455179Z", "completed_at": "2023-03-16T17:39:17.455196Z"}], "thread_id": "Thread-2", "execution_time": 0.04250001907348633, "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": "2023-03-16T17:39:17.432846Z", "completed_at": "2023-03-16T17:39:17.444529Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.457277Z", "completed_at": "2023-03-16T17:39:17.457293Z"}], "thread_id": "Thread-3", "execution_time": 0.05016183853149414, "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": "2023-03-16T17:39:17.444839Z", "completed_at": "2023-03-16T17:39:17.457630Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.469177Z", "completed_at": "2023-03-16T17:39:17.469192Z"}], "thread_id": "Thread-4", "execution_time": 0.030352354049682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.tiktok_ads.not_null_tiktok_ads__url_report_base_url.37afef2e1b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.457926Z", "completed_at": "2023-03-16T17:39:17.469438Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.484761Z", "completed_at": "2023-03-16T17:39:17.484778Z"}], "thread_id": "Thread-1", "execution_time": 0.040220022201538086, "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": "2023-03-16T17:39:17.472107Z", "completed_at": "2023-03-16T17:39:17.495617Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.507851Z", "completed_at": "2023-03-16T17:39:17.507869Z"}], "thread_id": "Thread-2", "execution_time": 0.041940927505493164, "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": "2023-03-16T17:39:17.485102Z", "completed_at": "2023-03-16T17:39:17.502836Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.508646Z", "completed_at": "2023-03-16T17:39:17.508661Z"}], "thread_id": "Thread-3", "execution_time": 0.04862713813781738, "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": "2023-03-16T17:39:17.496448Z", "completed_at": "2023-03-16T17:39:17.509007Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.521396Z", "completed_at": "2023-03-16T17:39:17.521417Z"}], "thread_id": "Thread-4", "execution_time": 0.03043818473815918, "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": "2023-03-16T17:39:17.510211Z", "completed_at": "2023-03-16T17:39:17.523219Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.563943Z", "completed_at": "2023-03-16T17:39:17.563964Z"}], "thread_id": "Thread-1", "execution_time": 0.08939385414123535, "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": "2023-03-16T17:39:17.531346Z", "completed_at": "2023-03-16T17:39:17.597304Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.607190Z", "completed_at": "2023-03-16T17:39:17.607206Z"}], "thread_id": "Thread-3", "execution_time": 0.09383702278137207, "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": "2023-03-16T17:39:17.597759Z", "completed_at": "2023-03-16T17:39:17.613096Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.620109Z", "completed_at": "2023-03-16T17:39:17.620123Z"}], "thread_id": "Thread-4", "execution_time": 0.0414118766784668, "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": "2023-03-16T17:39:17.607879Z", "completed_at": "2023-03-16T17:39:17.619847Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.623675Z", "completed_at": "2023-03-16T17:39:17.623688Z"}], "thread_id": "Thread-1", "execution_time": 0.03599405288696289, "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": "2023-03-16T17:39:17.624440Z", "completed_at": "2023-03-16T17:39:17.649859Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.660103Z", "completed_at": "2023-03-16T17:39:17.660118Z"}], "thread_id": "Thread-3", "execution_time": 0.04896903038024902, "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": "2023-03-16T17:39:17.634624Z", "completed_at": "2023-03-16T17:39:17.650939Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.668683Z", "completed_at": "2023-03-16T17:39:17.668699Z"}], "thread_id": "Thread-2", "execution_time": 0.04937887191772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.dbt_utils_unique_combination_of_columns_twitter_ads__keyword_report_date_day__keyword_id__campaign_id.bb43190c39"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.651249Z", "completed_at": "2023-03-16T17:39:17.669869Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.673589Z", "completed_at": "2023-03-16T17:39:17.673602Z"}], "thread_id": "Thread-4", "execution_time": 0.028525829315185547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_date_day.e0ce90c1ec"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.660437Z", "completed_at": "2023-03-16T17:39:17.673290Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.688915Z", "completed_at": "2023-03-16T17:39:17.688946Z"}], "thread_id": "Thread-1", "execution_time": 0.04810500144958496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__keyword_report_keyword_id.91efa0a538"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.676584Z", "completed_at": "2023-03-16T17:39:17.699659Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.711438Z", "completed_at": "2023-03-16T17:39:17.711458Z"}], "thread_id": "Thread-3", "execution_time": 0.04040789604187012, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_group_report_date_day__ad_group_id.e2963c59e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.690068Z", "completed_at": "2023-03-16T17:39:17.701331Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.713597Z", "completed_at": "2023-03-16T17:39:17.713610Z"}], "thread_id": "Thread-2", "execution_time": 0.04912590980529785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_group_report_ad_group_id.8a23dc123a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.702227Z", "completed_at": "2023-03-16T17:39:17.718998Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.725303Z", "completed_at": "2023-03-16T17:39:17.725318Z"}], "thread_id": "Thread-4", "execution_time": 0.028512239456176758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__ad_report_date_day__ad_id.cb64b8d0f7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.713934Z", "completed_at": "2023-03-16T17:39:17.725623Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.787445Z", "completed_at": "2023-03-16T17:39:17.787494Z"}], "thread_id": "Thread-1", "execution_time": 0.10665702819824219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__ad_report_ad_id.93728159b3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.797410Z", "completed_at": "2023-03-16T17:39:17.815355Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.821367Z", "completed_at": "2023-03-16T17:39:17.821381Z"}], "thread_id": "Thread-2", "execution_time": 0.14415693283081055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__campaign_report_date_day__campaign_id.32a2e699e0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.810290Z", "completed_at": "2023-03-16T17:39:17.821083Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.872305Z", "completed_at": "2023-03-16T17:39:17.872320Z"}], "thread_id": "Thread-4", "execution_time": 0.0762937068939209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__campaign_report_campaign_id.a9cabadd7c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.873290Z", "completed_at": "2023-03-16T17:39:17.887360Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.916132Z", "completed_at": "2023-03-16T17:39:17.916146Z"}], "thread_id": "Thread-3", "execution_time": 0.10295867919921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__keyword_report_date_day__keyword_id.2f70b31a80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.887611Z", "completed_at": "2023-03-16T17:39:17.915783Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.947031Z", "completed_at": "2023-03-16T17:39:17.947057Z"}], "thread_id": "Thread-2", "execution_time": 0.06534194946289062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__keyword_report_keyword_id.303f680e4a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.935740Z", "completed_at": "2023-03-16T17:39:17.950495Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.963524Z", "completed_at": "2023-03-16T17:39:17.963542Z"}], "thread_id": "Thread-1", "execution_time": 0.06750226020812988, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.dbt_utils_unique_combination_of_columns_amazon_ads__search_report_date_day__search_term__keyword_id.be92659f9f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.954222Z", "completed_at": "2023-03-16T17:39:17.972119Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:17.990108Z", "completed_at": "2023-03-16T17:39:17.990126Z"}], "thread_id": "Thread-3", "execution_time": 0.04223299026489258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.amazon_ads.not_null_amazon_ads__search_report_search_term.3c23d4658a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:17.966731Z", "completed_at": "2023-03-16T17:39:17.989725Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.000346Z", "completed_at": "2023-03-16T17:39:18.000365Z"}], "thread_id": "Thread-2", "execution_time": 0.0489499568939209, "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": "2023-03-16T17:39:17.979425Z", "completed_at": "2023-03-16T17:39:17.991274Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.002824Z", "completed_at": "2023-03-16T17:39:18.002835Z"}], "thread_id": "Thread-4", "execution_time": 0.04117608070373535, "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": "2023-03-16T17:39:17.992509Z", "completed_at": "2023-03-16T17:39:18.004418Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.017171Z", "completed_at": "2023-03-16T17:39:18.017191Z"}], "thread_id": "Thread-1", "execution_time": 0.052001953125, "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": "2023-03-16T17:39:18.007306Z", "completed_at": "2023-03-16T17:39:18.046707Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.109317Z", "completed_at": "2023-03-16T17:39:18.109342Z"}], "thread_id": "Thread-3", "execution_time": 0.10774397850036621, "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": "2023-03-16T17:39:18.096454Z", "completed_at": "2023-03-16T17:39:18.116684Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.123155Z", "completed_at": "2023-03-16T17:39:18.123171Z"}], "thread_id": "Thread-4", "execution_time": 0.10772204399108887, "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": "2023-03-16T17:39:18.111341Z", "completed_at": "2023-03-16T17:39:18.123540Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.136462Z", "completed_at": "2023-03-16T17:39:18.136482Z"}], "thread_id": "Thread-1", "execution_time": 0.04305291175842285, "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": "2023-03-16T17:39:18.126481Z", "completed_at": "2023-03-16T17:39:18.152381Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.165452Z", "completed_at": "2023-03-16T17:39:18.165471Z"}], "thread_id": "Thread-3", "execution_time": 0.045059919357299805, "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": "2023-03-16T17:39:18.136819Z", "completed_at": "2023-03-16T17:39:18.162866Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.166468Z", "completed_at": "2023-03-16T17:39:18.166486Z"}], "thread_id": "Thread-2", "execution_time": 0.19299888610839844, "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": "2023-03-16T17:39:18.153362Z", "completed_at": "2023-03-16T17:39:18.166192Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.317945Z", "completed_at": "2023-03-16T17:39:18.317960Z"}], "thread_id": "Thread-4", "execution_time": 0.17014312744140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.twitter_ads.not_null_twitter_ads__url_report_base_url.dfd7ab549e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.167841Z", "completed_at": "2023-03-16T17:39:18.320650Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.333115Z", "completed_at": "2023-03-16T17:39:18.333138Z"}], "thread_id": "Thread-1", "execution_time": 0.1853628158569336, "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": "2023-03-16T17:39:18.323376Z", "completed_at": "2023-03-16T17:39:18.349710Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.371451Z", "completed_at": "2023-03-16T17:39:18.371472Z"}], "thread_id": "Thread-3", "execution_time": 0.0543670654296875, "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": "2023-03-16T17:39:18.333555Z", "completed_at": "2023-03-16T17:39:18.369218Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.372271Z", "completed_at": "2023-03-16T17:39:18.372284Z"}], "thread_id": "Thread-2", "execution_time": 0.06494379043579102, "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": "2023-03-16T17:39:18.350159Z", "completed_at": "2023-03-16T17:39:18.372586Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.465248Z", "completed_at": "2023-03-16T17:39:18.465266Z"}], "thread_id": "Thread-4", "execution_time": 0.13519692420959473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.facebook_ads.facebook_ads__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.479869Z", "completed_at": "2023-03-16T17:39:18.496318Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.501289Z", "completed_at": "2023-03-16T17:39:18.501314Z"}], "thread_id": "Thread-2", "execution_time": 0.046137094497680664, "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": "2023-03-16T17:39:18.469650Z", "completed_at": "2023-03-16T17:39:18.496742Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.501706Z", "completed_at": "2023-03-16T17:39:18.501720Z"}], "thread_id": "Thread-3", "execution_time": 0.04779696464538574, "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": "2023-03-16T17:39:18.490915Z", "completed_at": "2023-03-16T17:39:18.507306Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.515547Z", "completed_at": "2023-03-16T17:39:18.515567Z"}], "thread_id": "Thread-4", "execution_time": 0.03015613555908203, "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": "2023-03-16T17:39:18.502021Z", "completed_at": "2023-03-16T17:39:18.515906Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.520158Z", "completed_at": "2023-03-16T17:39:18.520173Z"}], "thread_id": "Thread-1", "execution_time": 0.04137396812438965, "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": "2023-03-16T17:39:18.530442Z", "completed_at": "2023-03-16T17:39:18.562719Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.569593Z", "completed_at": "2023-03-16T17:39:18.569614Z"}], "thread_id": "Thread-3", "execution_time": 0.054090023040771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.snapchat_ads.not_null_snapchat_ads__url_report_base_url.15676dc1de"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.520484Z", "completed_at": "2023-03-16T17:39:18.566950Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.569898Z", "completed_at": "2023-03-16T17:39:18.569927Z"}], "thread_id": "Thread-2", "execution_time": 0.055632829666137695, "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": "2023-03-16T17:39:18.542291Z", "completed_at": "2023-03-16T17:39:18.567250Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.570173Z", "completed_at": "2023-03-16T17:39:18.570182Z"}], "thread_id": "Thread-4", "execution_time": 0.03351020812988281, "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": "2023-03-16T17:39:18.549294Z", "completed_at": "2023-03-16T17:39:18.569084Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.573188Z", "completed_at": "2023-03-16T17:39:18.573200Z"}], "thread_id": "Thread-1", "execution_time": 0.026911020278930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__account_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.579229Z", "completed_at": "2023-03-16T17:39:18.644532Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.647733Z", "completed_at": "2023-03-16T17:39:18.647755Z"}], "thread_id": "Thread-3", "execution_time": 0.07455706596374512, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__campaign_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.590902Z", "completed_at": "2023-03-16T17:39:18.646749Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.650451Z", "completed_at": "2023-03-16T17:39:18.650461Z"}], "thread_id": "Thread-2", "execution_time": 0.07625436782836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__keyword_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.600245Z", "completed_at": "2023-03-16T17:39:18.647093Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.650744Z", "completed_at": "2023-03-16T17:39:18.650751Z"}], "thread_id": "Thread-4", "execution_time": 0.07687997817993164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__search_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.627895Z", "completed_at": "2023-03-16T17:39:18.649242Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.654140Z", "completed_at": "2023-03-16T17:39:18.654150Z"}], "thread_id": "Thread-1", "execution_time": 0.0786280632019043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_group_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.714123Z", "completed_at": "2023-03-16T17:39:18.790164Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.791974Z", "completed_at": "2023-03-16T17:39:18.791988Z"}], "thread_id": "Thread-2", "execution_time": 0.1359081268310547, "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": "2023-03-16T17:39:18.730921Z", "completed_at": "2023-03-16T17:39:18.791632Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.795316Z", "completed_at": "2023-03-16T17:39:18.795345Z"}], "thread_id": "Thread-4", "execution_time": 0.14007019996643066, "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": "2023-03-16T17:39:18.770333Z", "completed_at": "2023-03-16T17:39:18.794906Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.801153Z", "completed_at": "2023-03-16T17:39:18.801185Z"}], "thread_id": "Thread-1", "execution_time": 0.10569906234741211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__ad_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.805349Z", "completed_at": "2023-03-16T17:39:18.837993Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.850028Z", "completed_at": "2023-03-16T17:39:18.850048Z"}], "thread_id": "Thread-2", "execution_time": 0.052186012268066406, "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": "2023-03-16T17:39:18.818257Z", "completed_at": "2023-03-16T17:39:18.843885Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.850451Z", "completed_at": "2023-03-16T17:39:18.850462Z"}], "thread_id": "Thread-3", "execution_time": 0.05058479309082031, "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": "2023-03-16T17:39:18.826866Z", "completed_at": "2023-03-16T17:39:18.849555Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.853247Z", "completed_at": "2023-03-16T17:39:18.853254Z"}], "thread_id": "Thread-4", "execution_time": 0.05118894577026367, "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": "2023-03-16T17:39:18.838438Z", "completed_at": "2023-03-16T17:39:18.850739Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.854313Z", "completed_at": "2023-03-16T17:39:18.854320Z"}], "thread_id": "Thread-1", "execution_time": 0.03170323371887207, "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": "2023-03-16T17:39:18.861226Z", "completed_at": "2023-03-16T17:39:18.886215Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.912927Z", "completed_at": "2023-03-16T17:39:18.912942Z"}], "thread_id": "Thread-2", "execution_time": 0.05869483947753906, "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_id__keyword_match_type__ad_group_id__campaign_id__account_id.49b7b978b6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.872815Z", "completed_at": "2023-03-16T17:39:18.892270Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.913352Z", "completed_at": "2023-03-16T17:39:18.913364Z"}], "thread_id": "Thread-3", "execution_time": 0.05838584899902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__keyword_report_keyword_id.51a45fb334"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.886446Z", "completed_at": "2023-03-16T17:39:18.913785Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.917109Z", "completed_at": "2023-03-16T17:39:18.917119Z"}], "thread_id": "Thread-4", "execution_time": 0.05886697769165039, "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": "2023-03-16T17:39:18.898106Z", "completed_at": "2023-03-16T17:39:18.915464Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.918624Z", "completed_at": "2023-03-16T17:39:18.918637Z"}], "thread_id": "Thread-1", "execution_time": 0.03597211837768555, "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": "2023-03-16T17:39:18.921320Z", "completed_at": "2023-03-16T17:39:18.946040Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.979050Z", "completed_at": "2023-03-16T17:39:18.979068Z"}], "thread_id": "Thread-2", "execution_time": 0.06294798851013184, "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": "2023-03-16T17:39:18.932599Z", "completed_at": "2023-03-16T17:39:18.951599Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.979426Z", "completed_at": "2023-03-16T17:39:18.979456Z"}], "thread_id": "Thread-3", "execution_time": 0.06328010559082031, "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": "2023-03-16T17:39:18.946265Z", "completed_at": "2023-03-16T17:39:18.981643Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.984694Z", "completed_at": "2023-03-16T17:39:18.984717Z"}], "thread_id": "Thread-4", "execution_time": 0.042758941650390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.ad_reporting.ad_reporting__url_report"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:18.963023Z", "completed_at": "2023-03-16T17:39:18.982069Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:18.985146Z", "completed_at": "2023-03-16T17:39:18.985157Z"}], "thread_id": "Thread-1", "execution_time": 0.04248523712158203, "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": "2023-03-16T17:39:18.988034Z", "completed_at": "2023-03-16T17:39:19.001506Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:19.028603Z", "completed_at": "2023-03-16T17:39:19.028619Z"}], "thread_id": "Thread-2", "execution_time": 0.04591798782348633, "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": "2023-03-16T17:39:19.014174Z", "completed_at": "2023-03-16T17:39:19.030237Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:19.031203Z", "completed_at": "2023-03-16T17:39:19.031219Z"}], "thread_id": "Thread-4", "execution_time": 0.03131914138793945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.ad_reporting.not_null_ad_reporting__url_report_base_url.a29864e5b6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-03-16T17:39:19.002946Z", "completed_at": "2023-03-16T17:39:19.032490Z"}, {"name": "execute", "started_at": "2023-03-16T17:39:19.033394Z", "completed_at": "2023-03-16T17:39:19.033407Z"}], "thread_id": "Thread-3", "execution_time": 0.03479504585266113, "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"}], "elapsed_time": 31.305304765701294, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/renee.li/.dbt", "send_anonymous_usage_stats": true, "quiet": false, "no_print": false, "cache_selected_only": false, "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file From 8841013c3c5b2b540d8832ae9424689e7dd49c58 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 16 Mar 2023 14:16:01 -0500 Subject: [PATCH 17/20] kick off From 521b4993b642d5bbfb33ef578834b446663799e6 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 16 Mar 2023 14:45:39 -0500 Subject: [PATCH 18/20] change back google ads --- packages.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages.yml b/packages.yml index 5bd095b..7455289 100644 --- a/packages.yml +++ b/packages.yml @@ -8,12 +8,8 @@ packages: - package: fivetran/facebook_ads version: [">=0.6.0", "<0.7.0"] - # - package: fivetran/google_ads - # version: [">=0.9.0", "<0.10.0"] - - - git: https://github.com/fivetran/dbt_google_ads.git - revision: hotfix/dbt-expectations-macro - warn-unpinned: false + - package: fivetran/google_ads + version: [">=0.9.0", "<0.10.0"] - package: fivetran/pinterest version: [">=0.7.0", "<0.8.0"] From c889c4cd46511b4c653d16a4c1bd301d655bdf39 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 16 Mar 2023 14:48:54 -0500 Subject: [PATCH 19/20] new schema --- integration_tests/dbt_project.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 991cb63..cda1b04 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -16,7 +16,7 @@ vars: twitter_ads__using_keywords: False apple_search_ads_source: - apple_search_ads_schema: ad_reporting_integration_tests_2 + apple_search_ads_schema: ad_reporting_integration_tests_3 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" @@ -30,7 +30,7 @@ vars: apple_search_ads__using_search_terms: True google_ads_source: - google_ads_schema: ad_reporting_integration_tests_2 + google_ads_schema: ad_reporting_integration_tests_3 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" @@ -43,7 +43,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_2 + microsoft_ads_schema: ad_reporting_integration_tests_3 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" @@ -57,7 +57,7 @@ vars: microsoft_ads_search_daily_report_identifier: "microsoft_ads_search_performance_daily_report_data" linkedin_source: - linkedin_ads_schema: ad_reporting_integration_tests_2 + linkedin_ads_schema: ad_reporting_integration_tests_3 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" @@ -66,7 +66,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_2 + twitter_ads_schema: ad_reporting_integration_tests_3 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" @@ -80,7 +80,7 @@ vars: twitter_ads_line_item_keywords_report_identifier: "twitter_line_item_keywords_report_data" pinterest_source: - pinterest_schema: ad_reporting_integration_tests_2 + pinterest_schema: ad_reporting_integration_tests_3 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" @@ -93,7 +93,7 @@ vars: pinterest_advertiser_report_identifier: "pinterest_ads_advertiser_report_data" facebook_ads_source: - facebook_ads_schema: ad_reporting_integration_tests_2 + facebook_ads_schema: ad_reporting_integration_tests_3 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" @@ -102,7 +102,7 @@ vars: facebook_ads_creative_history_identifier: "facebook_ads_creative_history_data" snapchat_ads_source: - snapchat_ads_schema: ad_reporting_integration_tests_2 + snapchat_ads_schema: ad_reporting_integration_tests_3 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" @@ -114,7 +114,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_2 + tiktok_ads_schema: ad_reporting_integration_tests_3 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" @@ -124,7 +124,7 @@ vars: tiktok_ads__campaign_report_hourly_identifier: "tiktok_campaign_report_hourly_data" amazon_ads_source: - amazon_ads_schema: ad_reporting_integration_tests_2 + amazon_ads_schema: ad_reporting_integration_tests_3 amazon_ads_ad_group_history_identifier: "amazon_ads_ad_group_history_data" amazon_ads_ad_group_level_report_identifier: "amazon_ads_ad_group_level_report_data" amazon_ads_advertised_product_report_identifier: "amazon_ads_advertised_product_report_data" @@ -138,7 +138,7 @@ vars: amazon_ads_search_term_ad_keyword_report_identifier: "amazon_ads_search_term_ad_keyword_report_data" reddit_ads_source: - reddit_ads_schema: ad_reporting_integration_tests_2 + reddit_ads_schema: ad_reporting_integration_tests_3 reddit_ads_account_identifier: "reddit_ads_account_data" reddit_ads_account_report_identifier: "reddit_ads_account_report_data" reddit_ads_ad_identifier: "reddit_ads_ad_data" From 7f52c95ffba8aea0f428f9d63822fd5128749915 Mon Sep 17 00:00:00 2001 From: fivetran-reneeli Date: Thu, 16 Mar 2023 16:26:32 -0500 Subject: [PATCH 20/20] try new schema --- integration_tests/ci/sample.profiles.yml | 10 +++++----- integration_tests/dbt_project.yml | 22 +++++++++++----------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 88636fa..132d6ed 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_3 + schema: ad_reporting_integration_tests_4 threads: 8 bigquery: type: bigquery method: service-account-json project: 'dbt-package-testing' - schema: ad_reporting_integration_tests_3 + schema: ad_reporting_integration_tests_4 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_3 + schema: ad_reporting_integration_tests_4 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_3 + schema: ad_reporting_integration_tests_4 threads: 8 databricks: catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}" host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: ad_reporting_integration_tests_3 + schema: ad_reporting_integration_tests_4 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 cda1b04..34da11a 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -16,7 +16,7 @@ vars: twitter_ads__using_keywords: False apple_search_ads_source: - apple_search_ads_schema: ad_reporting_integration_tests_3 + apple_search_ads_schema: ad_reporting_integration_tests_4 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" @@ -30,7 +30,7 @@ vars: apple_search_ads__using_search_terms: True google_ads_source: - google_ads_schema: ad_reporting_integration_tests_3 + google_ads_schema: ad_reporting_integration_tests_4 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" @@ -43,7 +43,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_3 + microsoft_ads_schema: ad_reporting_integration_tests_4 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" @@ -57,7 +57,7 @@ vars: microsoft_ads_search_daily_report_identifier: "microsoft_ads_search_performance_daily_report_data" linkedin_source: - linkedin_ads_schema: ad_reporting_integration_tests_3 + linkedin_ads_schema: ad_reporting_integration_tests_4 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" @@ -66,7 +66,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_3 + twitter_ads_schema: ad_reporting_integration_tests_4 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" @@ -80,7 +80,7 @@ vars: twitter_ads_line_item_keywords_report_identifier: "twitter_line_item_keywords_report_data" pinterest_source: - pinterest_schema: ad_reporting_integration_tests_3 + pinterest_schema: ad_reporting_integration_tests_4 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" @@ -93,7 +93,7 @@ vars: pinterest_advertiser_report_identifier: "pinterest_ads_advertiser_report_data" facebook_ads_source: - facebook_ads_schema: ad_reporting_integration_tests_3 + facebook_ads_schema: ad_reporting_integration_tests_4 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" @@ -102,7 +102,7 @@ vars: facebook_ads_creative_history_identifier: "facebook_ads_creative_history_data" snapchat_ads_source: - snapchat_ads_schema: ad_reporting_integration_tests_3 + snapchat_ads_schema: ad_reporting_integration_tests_4 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" @@ -114,7 +114,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_3 + tiktok_ads_schema: ad_reporting_integration_tests_4 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" @@ -124,7 +124,7 @@ vars: tiktok_ads__campaign_report_hourly_identifier: "tiktok_campaign_report_hourly_data" amazon_ads_source: - amazon_ads_schema: ad_reporting_integration_tests_3 + amazon_ads_schema: ad_reporting_integration_tests_4 amazon_ads_ad_group_history_identifier: "amazon_ads_ad_group_history_data" amazon_ads_ad_group_level_report_identifier: "amazon_ads_ad_group_level_report_data" amazon_ads_advertised_product_report_identifier: "amazon_ads_advertised_product_report_data" @@ -138,7 +138,7 @@ vars: amazon_ads_search_term_ad_keyword_report_identifier: "amazon_ads_search_term_ad_keyword_report_data" reddit_ads_source: - reddit_ads_schema: ad_reporting_integration_tests_3 + reddit_ads_schema: ad_reporting_integration_tests_4 reddit_ads_account_identifier: "reddit_ads_account_data" reddit_ads_account_report_identifier: "reddit_ads_account_report_data" reddit_ads_ad_identifier: "reddit_ads_ad_data"